[2025-01-18 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:00:06 [end_date_ymd] => 2025-01-18 00:00:06 [RateCDR] => 1 ) [2025-01-18 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:00:06' and `end` < '2025-01-18 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:00:19] Production.INFO: count ==974 [2025-01-18 00:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 21:00:06 - End Time 2025-01-18 00:00:06 [2025-01-18 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271820', 'tblTempUsageDetail_20' ) start [2025-01-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271820', 'tblTempUsageDetail_20' ) end [2025-01-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271820', 'tblTempVendorCDR_20' ) start [2025-01-18 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271820', 'tblTempVendorCDR_20' ) end [2025-01-18 00:00:19] Production.INFO: ProcessCDR(1,14271820,1,1,2) [2025-01-18 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271820', 'tblTempUsageDetail_20' ) start [2025-01-18 00:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271820', 'tblTempUsageDetail_20' ) end [2025-01-18 00:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:00:30] Production.INFO: ==25801== Releasing lock... [2025-01-18 00:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:00:30] Production.INFO: 36.5 MB #Memory Used# [2025-01-18 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:01:05 [end_date_ymd] => 2025-01-18 00:01:05 [RateCDR] => 1 ) [2025-01-18 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:01:05' and `end` < '2025-01-18 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:01:18] Production.INFO: count ==950 [2025-01-18 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:01:05 - End Time 2025-01-18 00:01:05 [2025-01-18 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271826', 'tblTempUsageDetail_20' ) start [2025-01-18 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271826', 'tblTempUsageDetail_20' ) end [2025-01-18 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271826', 'tblTempVendorCDR_20' ) start [2025-01-18 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271826', 'tblTempVendorCDR_20' ) end [2025-01-18 00:01:18] Production.INFO: ProcessCDR(1,14271826,1,1,2) [2025-01-18 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271826', 'tblTempUsageDetail_20' ) start [2025-01-18 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271826', 'tblTempUsageDetail_20' ) end [2025-01-18 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:01:22] Production.INFO: ==25951== Releasing lock... [2025-01-18 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:01:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-18 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:02:05 [end_date_ymd] => 2025-01-18 00:02:05 [RateCDR] => 1 ) [2025-01-18 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:02:05' and `end` < '2025-01-18 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:02:30] Production.INFO: count ==236 [2025-01-18 00:02:30] Production.ERROR: pbx CDR StartTime 2025-01-17 21:02:05 - End Time 2025-01-18 00:02:05 [2025-01-18 00:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271831', 'tblTempUsageDetail_20' ) start [2025-01-18 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271831', 'tblTempUsageDetail_20' ) end [2025-01-18 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271831', 'tblTempVendorCDR_20' ) start [2025-01-18 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271831', 'tblTempVendorCDR_20' ) end [2025-01-18 00:02:30] Production.INFO: ProcessCDR(1,14271831,1,1,2) [2025-01-18 00:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:02:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271831', 'tblTempUsageDetail_20' ) start [2025-01-18 00:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271831', 'tblTempUsageDetail_20' ) end [2025-01-18 00:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:02:34] Production.INFO: ==26065== Releasing lock... [2025-01-18 00:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:02:34] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:03:05 [end_date_ymd] => 2025-01-18 00:03:05 [RateCDR] => 1 ) [2025-01-18 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:03:05' and `end` < '2025-01-18 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:03:39] Production.INFO: count ==232 [2025-01-18 00:03:40] Production.ERROR: pbx CDR StartTime 2025-01-17 21:03:05 - End Time 2025-01-18 00:03:05 [2025-01-18 00:03:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271836', 'tblTempUsageDetail_20' ) start [2025-01-18 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271836', 'tblTempUsageDetail_20' ) end [2025-01-18 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271836', 'tblTempVendorCDR_20' ) start [2025-01-18 00:03:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271836', 'tblTempVendorCDR_20' ) end [2025-01-18 00:03:40] Production.INFO: ProcessCDR(1,14271836,1,1,2) [2025-01-18 00:03:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:03:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:03:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:03:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:03:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271836', 'tblTempUsageDetail_20' ) start [2025-01-18 00:03:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271836', 'tblTempUsageDetail_20' ) end [2025-01-18 00:03:43] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:03:43] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:03:43] Production.INFO: ==26169== Releasing lock... [2025-01-18 00:03:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:03:43] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:04:05 [end_date_ymd] => 2025-01-18 00:04:05 [RateCDR] => 1 ) [2025-01-18 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:04:05' and `end` < '2025-01-18 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:04:26] Production.INFO: count ==228 [2025-01-18 00:04:26] Production.ERROR: pbx CDR StartTime 2025-01-17 21:04:05 - End Time 2025-01-18 00:04:05 [2025-01-18 00:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271841', 'tblTempUsageDetail_20' ) start [2025-01-18 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271841', 'tblTempUsageDetail_20' ) end [2025-01-18 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271841', 'tblTempVendorCDR_20' ) start [2025-01-18 00:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271841', 'tblTempVendorCDR_20' ) end [2025-01-18 00:04:26] Production.INFO: ProcessCDR(1,14271841,1,1,2) [2025-01-18 00:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271841', 'tblTempUsageDetail_20' ) start [2025-01-18 00:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271841', 'tblTempUsageDetail_20' ) end [2025-01-18 00:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:04:29] Production.INFO: ==26277== Releasing lock... [2025-01-18 00:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:04:29] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:05:05 [end_date_ymd] => 2025-01-18 00:05:05 [RateCDR] => 1 ) [2025-01-18 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:05:05' and `end` < '2025-01-18 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:05:34] Production.INFO: count ==219 [2025-01-18 00:05:34] Production.ERROR: pbx CDR StartTime 2025-01-17 21:05:05 - End Time 2025-01-18 00:05:05 [2025-01-18 00:05:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271846', 'tblTempUsageDetail_20' ) start [2025-01-18 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271846', 'tblTempUsageDetail_20' ) end [2025-01-18 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271846', 'tblTempVendorCDR_20' ) start [2025-01-18 00:05:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271846', 'tblTempVendorCDR_20' ) end [2025-01-18 00:05:34] Production.INFO: ProcessCDR(1,14271846,1,1,2) [2025-01-18 00:05:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271846', 'tblTempUsageDetail_20' ) start [2025-01-18 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271846', 'tblTempUsageDetail_20' ) end [2025-01-18 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:05:37] Production.INFO: ==26428== Releasing lock... [2025-01-18 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:05:37] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:06:04 [end_date_ymd] => 2025-01-18 00:06:04 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:06:04' and `end` < '2025-01-18 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-01-18 00:06:27] Production.INFO: count ==217 [2025-01-18 00:06:27] Production.ERROR: pbx CDR StartTime 2025-01-17 21:06:04 - End Time 2025-01-18 00:06:04 [2025-01-18 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271851', 'tblTempUsageDetail_20' ) start [2025-01-18 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271851', 'tblTempUsageDetail_20' ) end [2025-01-18 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271851', 'tblTempVendorCDR_20' ) start [2025-01-18 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271851', 'tblTempVendorCDR_20' ) end [2025-01-18 00:06:27] Production.INFO: ProcessCDR(1,14271851,1,1,2) [2025-01-18 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271851', 'tblTempUsageDetail_20' ) start [2025-01-18 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271851', 'tblTempUsageDetail_20' ) end [2025-01-18 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:06:32] Production.INFO: ==26533== Releasing lock... [2025-01-18 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:06:32] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:07:05 [end_date_ymd] => 2025-01-18 00:07:05 [RateCDR] => 1 ) [2025-01-18 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:07:05' and `end` < '2025-01-18 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:07:25] Production.INFO: count ==214 [2025-01-18 00:07:25] Production.ERROR: pbx CDR StartTime 2025-01-17 21:07:05 - End Time 2025-01-18 00:07:05 [2025-01-18 00:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271856', 'tblTempUsageDetail_20' ) start [2025-01-18 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271856', 'tblTempUsageDetail_20' ) end [2025-01-18 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271856', 'tblTempVendorCDR_20' ) start [2025-01-18 00:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271856', 'tblTempVendorCDR_20' ) end [2025-01-18 00:07:25] Production.INFO: ProcessCDR(1,14271856,1,1,2) [2025-01-18 00:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271856', 'tblTempUsageDetail_20' ) start [2025-01-18 00:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271856', 'tblTempUsageDetail_20' ) end [2025-01-18 00:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:07:29] Production.INFO: ==26639== Releasing lock... [2025-01-18 00:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:07:29] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:08:05 [end_date_ymd] => 2025-01-18 00:08:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:08:05' and `end` < '2025-01-18 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-01-18 00:08:21] Production.INFO: count ==214 [2025-01-18 00:08:21] Production.ERROR: pbx CDR StartTime 2025-01-17 21:08:05 - End Time 2025-01-18 00:08:05 [2025-01-18 00:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271861', 'tblTempUsageDetail_20' ) start [2025-01-18 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271861', 'tblTempUsageDetail_20' ) end [2025-01-18 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271861', 'tblTempVendorCDR_20' ) start [2025-01-18 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271861', 'tblTempVendorCDR_20' ) end [2025-01-18 00:08:21] Production.INFO: ProcessCDR(1,14271861,1,1,2) [2025-01-18 00:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271861', 'tblTempUsageDetail_20' ) start [2025-01-18 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271861', 'tblTempUsageDetail_20' ) end [2025-01-18 00:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:08:24] Production.INFO: ==26737== Releasing lock... [2025-01-18 00:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:08:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:09:05 [end_date_ymd] => 2025-01-18 00:09:05 [RateCDR] => 1 ) [2025-01-18 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:09:05' and `end` < '2025-01-18 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:09:17] Production.INFO: count ==214 [2025-01-18 00:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:09:05 - End Time 2025-01-18 00:09:05 [2025-01-18 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271866', 'tblTempUsageDetail_20' ) start [2025-01-18 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271866', 'tblTempUsageDetail_20' ) end [2025-01-18 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271866', 'tblTempVendorCDR_20' ) start [2025-01-18 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271866', 'tblTempVendorCDR_20' ) end [2025-01-18 00:09:18] Production.INFO: ProcessCDR(1,14271866,1,1,2) [2025-01-18 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271866', 'tblTempUsageDetail_20' ) start [2025-01-18 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271866', 'tblTempUsageDetail_20' ) end [2025-01-18 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:09:21] Production.INFO: ==26840== Releasing lock... [2025-01-18 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:10:06 [end_date_ymd] => 2025-01-18 00:10:06 [RateCDR] => 1 ) [2025-01-18 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:10:06' and `end` < '2025-01-18 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:10:20] Production.INFO: count ==222 [2025-01-18 00:10:20] Production.ERROR: pbx CDR StartTime 2025-01-17 21:10:06 - End Time 2025-01-18 00:10:06 [2025-01-18 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271872', 'tblTempUsageDetail_20' ) start [2025-01-18 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271872', 'tblTempUsageDetail_20' ) end [2025-01-18 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271872', 'tblTempVendorCDR_20' ) start [2025-01-18 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271872', 'tblTempVendorCDR_20' ) end [2025-01-18 00:10:20] Production.INFO: ProcessCDR(1,14271872,1,1,2) [2025-01-18 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271872', 'tblTempUsageDetail_20' ) start [2025-01-18 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271872', 'tblTempUsageDetail_20' ) end [2025-01-18 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:10:24] Production.INFO: ==26949== Releasing lock... [2025-01-18 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:11:05 [end_date_ymd] => 2025-01-18 00:11:05 [RateCDR] => 1 ) [2025-01-18 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:11:05' and `end` < '2025-01-18 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:11:18] Production.INFO: count ==224 [2025-01-18 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:11:05 - End Time 2025-01-18 00:11:05 [2025-01-18 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271877', 'tblTempUsageDetail_20' ) start [2025-01-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271877', 'tblTempUsageDetail_20' ) end [2025-01-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271877', 'tblTempVendorCDR_20' ) start [2025-01-18 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271877', 'tblTempVendorCDR_20' ) end [2025-01-18 00:11:18] Production.INFO: ProcessCDR(1,14271877,1,1,2) [2025-01-18 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271877', 'tblTempUsageDetail_20' ) start [2025-01-18 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271877', 'tblTempUsageDetail_20' ) end [2025-01-18 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:11:21] Production.INFO: ==27061== Releasing lock... [2025-01-18 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:12:05 [end_date_ymd] => 2025-01-18 00:12:05 [RateCDR] => 1 ) [2025-01-18 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:12:05' and `end` < '2025-01-18 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:12:38] Production.INFO: count ==224 [2025-01-18 00:12:38] Production.ERROR: pbx CDR StartTime 2025-01-17 21:12:05 - End Time 2025-01-18 00:12:05 [2025-01-18 00:12:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271882', 'tblTempUsageDetail_20' ) start [2025-01-18 00:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271882', 'tblTempUsageDetail_20' ) end [2025-01-18 00:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271882', 'tblTempVendorCDR_20' ) start [2025-01-18 00:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271882', 'tblTempVendorCDR_20' ) end [2025-01-18 00:12:38] Production.INFO: ProcessCDR(1,14271882,1,1,2) [2025-01-18 00:12:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271882', 'tblTempUsageDetail_20' ) start [2025-01-18 00:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271882', 'tblTempUsageDetail_20' ) end [2025-01-18 00:12:42] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:12:42] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:12:42] Production.INFO: ==27163== Releasing lock... [2025-01-18 00:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:12:42] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:13:06 [end_date_ymd] => 2025-01-18 00:13:06 [RateCDR] => 1 ) [2025-01-18 00: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-01-17 21:13:06' and `end` < '2025-01-18 00: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-01-18 00:13:20] Production.INFO: count ==224 [2025-01-18 00:13:20] Production.ERROR: pbx CDR StartTime 2025-01-17 21:13:06 - End Time 2025-01-18 00:13:06 [2025-01-18 00:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271887', 'tblTempUsageDetail_20' ) start [2025-01-18 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271887', 'tblTempUsageDetail_20' ) end [2025-01-18 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271887', 'tblTempVendorCDR_20' ) start [2025-01-18 00:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271887', 'tblTempVendorCDR_20' ) end [2025-01-18 00:13:20] Production.INFO: ProcessCDR(1,14271887,1,1,2) [2025-01-18 00:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271887', 'tblTempUsageDetail_20' ) start [2025-01-18 00:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271887', 'tblTempUsageDetail_20' ) end [2025-01-18 00:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:13:24] Production.INFO: ==27266== Releasing lock... [2025-01-18 00:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:13:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:14:05 [end_date_ymd] => 2025-01-18 00:14:05 [RateCDR] => 1 ) [2025-01-18 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:14:05' and `end` < '2025-01-18 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:14:19] Production.INFO: count ==224 [2025-01-18 00:14:19] Production.ERROR: pbx CDR StartTime 2025-01-17 21:14:05 - End Time 2025-01-18 00:14:05 [2025-01-18 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271892', 'tblTempUsageDetail_20' ) start [2025-01-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271892', 'tblTempUsageDetail_20' ) end [2025-01-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271892', 'tblTempVendorCDR_20' ) start [2025-01-18 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271892', 'tblTempVendorCDR_20' ) end [2025-01-18 00:14:19] Production.INFO: ProcessCDR(1,14271892,1,1,2) [2025-01-18 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271892', 'tblTempUsageDetail_20' ) start [2025-01-18 00:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271892', 'tblTempUsageDetail_20' ) end [2025-01-18 00:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:14:23] Production.INFO: ==27369== Releasing lock... [2025-01-18 00:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:14:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:15:05 [end_date_ymd] => 2025-01-18 00:15:05 [RateCDR] => 1 ) [2025-01-18 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:15:05' and `end` < '2025-01-18 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:15:17] Production.INFO: count ==224 [2025-01-18 00:15:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:15:05 - End Time 2025-01-18 00:15:05 [2025-01-18 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271897', 'tblTempUsageDetail_20' ) start [2025-01-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271897', 'tblTempUsageDetail_20' ) end [2025-01-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271897', 'tblTempVendorCDR_20' ) start [2025-01-18 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271897', 'tblTempVendorCDR_20' ) end [2025-01-18 00:15:18] Production.INFO: ProcessCDR(1,14271897,1,1,2) [2025-01-18 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271897', 'tblTempUsageDetail_20' ) start [2025-01-18 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271897', 'tblTempUsageDetail_20' ) end [2025-01-18 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:15:21] Production.INFO: ==27473== Releasing lock... [2025-01-18 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:16:05 [end_date_ymd] => 2025-01-18 00:16:05 [RateCDR] => 1 ) [2025-01-18 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:16:05' and `end` < '2025-01-18 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:16:17] Production.INFO: count ==224 [2025-01-18 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:16:05 - End Time 2025-01-18 00:16:05 [2025-01-18 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271902', 'tblTempUsageDetail_20' ) start [2025-01-18 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271902', 'tblTempUsageDetail_20' ) end [2025-01-18 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271902', 'tblTempVendorCDR_20' ) start [2025-01-18 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271902', 'tblTempVendorCDR_20' ) end [2025-01-18 00:16:17] Production.INFO: ProcessCDR(1,14271902,1,1,2) [2025-01-18 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271902', 'tblTempUsageDetail_20' ) start [2025-01-18 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271902', 'tblTempUsageDetail_20' ) end [2025-01-18 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:16:21] Production.INFO: ==27576== Releasing lock... [2025-01-18 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:17:06 [end_date_ymd] => 2025-01-18 00:17:06 [RateCDR] => 1 ) [2025-01-18 00: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-01-17 21:17:06' and `end` < '2025-01-18 00: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-01-18 00:17:18] Production.INFO: count ==224 [2025-01-18 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:17:06 - End Time 2025-01-18 00:17:06 [2025-01-18 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271907', 'tblTempUsageDetail_20' ) start [2025-01-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271907', 'tblTempUsageDetail_20' ) end [2025-01-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271907', 'tblTempVendorCDR_20' ) start [2025-01-18 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271907', 'tblTempVendorCDR_20' ) end [2025-01-18 00:17:18] Production.INFO: ProcessCDR(1,14271907,1,1,2) [2025-01-18 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271907', 'tblTempUsageDetail_20' ) start [2025-01-18 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271907', 'tblTempUsageDetail_20' ) end [2025-01-18 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:17:21] Production.INFO: ==27684== Releasing lock... [2025-01-18 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:18:05 [end_date_ymd] => 2025-01-18 00:18:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:18:05' and `end` < '2025-01-18 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-01-18 00:18:17] Production.INFO: count ==221 [2025-01-18 00:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:18:05 - End Time 2025-01-18 00:18:05 [2025-01-18 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271912', 'tblTempUsageDetail_20' ) start [2025-01-18 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271912', 'tblTempUsageDetail_20' ) end [2025-01-18 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271912', 'tblTempVendorCDR_20' ) start [2025-01-18 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271912', 'tblTempVendorCDR_20' ) end [2025-01-18 00:18:17] Production.INFO: ProcessCDR(1,14271912,1,1,2) [2025-01-18 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271912', 'tblTempUsageDetail_20' ) start [2025-01-18 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271912', 'tblTempUsageDetail_20' ) end [2025-01-18 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:18:21] Production.INFO: ==27802== Releasing lock... [2025-01-18 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:19:04 [end_date_ymd] => 2025-01-18 00:19:04 [RateCDR] => 1 ) [2025-01-18 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:19:04' and `end` < '2025-01-18 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:19:29] Production.INFO: count ==224 [2025-01-18 00:19:29] Production.ERROR: pbx CDR StartTime 2025-01-17 21:19:04 - End Time 2025-01-18 00:19:04 [2025-01-18 00:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271917', 'tblTempUsageDetail_20' ) start [2025-01-18 00:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271917', 'tblTempUsageDetail_20' ) end [2025-01-18 00:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271917', 'tblTempVendorCDR_20' ) start [2025-01-18 00:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271917', 'tblTempVendorCDR_20' ) end [2025-01-18 00:19:29] Production.INFO: ProcessCDR(1,14271917,1,1,2) [2025-01-18 00:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271917', 'tblTempUsageDetail_20' ) start [2025-01-18 00:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271917', 'tblTempUsageDetail_20' ) end [2025-01-18 00:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:19:34] Production.INFO: ==27908== Releasing lock... [2025-01-18 00:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:19:34] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:20:05 [end_date_ymd] => 2025-01-18 00:20:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:20:05' and `end` < '2025-01-18 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-01-18 00:20:26] Production.INFO: count ==232 [2025-01-18 00:20:26] Production.ERROR: pbx CDR StartTime 2025-01-17 21:20:05 - End Time 2025-01-18 00:20:05 [2025-01-18 00:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271923', 'tblTempUsageDetail_20' ) start [2025-01-18 00:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271923', 'tblTempUsageDetail_20' ) end [2025-01-18 00:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271923', 'tblTempVendorCDR_20' ) start [2025-01-18 00:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271923', 'tblTempVendorCDR_20' ) end [2025-01-18 00:20:26] Production.INFO: ProcessCDR(1,14271923,1,1,2) [2025-01-18 00:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271923', 'tblTempUsageDetail_20' ) start [2025-01-18 00:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271923', 'tblTempUsageDetail_20' ) end [2025-01-18 00:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:20:29] Production.INFO: ==28017== Releasing lock... [2025-01-18 00:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:20:29] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:21:06 [end_date_ymd] => 2025-01-18 00:21:06 [RateCDR] => 1 ) [2025-01-18 00:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:21:06' and `end` < '2025-01-18 00:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:21:18] Production.INFO: count ==262 [2025-01-18 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:21:06 - End Time 2025-01-18 00:21:06 [2025-01-18 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271928', 'tblTempUsageDetail_20' ) start [2025-01-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271928', 'tblTempUsageDetail_20' ) end [2025-01-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271928', 'tblTempVendorCDR_20' ) start [2025-01-18 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271928', 'tblTempVendorCDR_20' ) end [2025-01-18 00:21:18] Production.INFO: ProcessCDR(1,14271928,1,1,2) [2025-01-18 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271928', 'tblTempUsageDetail_20' ) start [2025-01-18 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271928', 'tblTempUsageDetail_20' ) end [2025-01-18 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:21:21] Production.INFO: ==28159== Releasing lock... [2025-01-18 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:22:05 [end_date_ymd] => 2025-01-18 00:22:05 [RateCDR] => 1 ) [2025-01-18 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:22:05' and `end` < '2025-01-18 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:22:18] Production.INFO: count ==264 [2025-01-18 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:22:05 - End Time 2025-01-18 00:22:05 [2025-01-18 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271933', 'tblTempUsageDetail_20' ) start [2025-01-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271933', 'tblTempUsageDetail_20' ) end [2025-01-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271933', 'tblTempVendorCDR_20' ) start [2025-01-18 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271933', 'tblTempVendorCDR_20' ) end [2025-01-18 00:22:18] Production.INFO: ProcessCDR(1,14271933,1,1,2) [2025-01-18 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271933', 'tblTempUsageDetail_20' ) start [2025-01-18 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271933', 'tblTempUsageDetail_20' ) end [2025-01-18 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:22:23] Production.INFO: ==28259== Releasing lock... [2025-01-18 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:22:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:23:05 [end_date_ymd] => 2025-01-18 00:23:05 [RateCDR] => 1 ) [2025-01-18 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:23:05' and `end` < '2025-01-18 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:23:18] Production.INFO: count ==266 [2025-01-18 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:23:05 - End Time 2025-01-18 00:23:05 [2025-01-18 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271938', 'tblTempUsageDetail_20' ) start [2025-01-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271938', 'tblTempUsageDetail_20' ) end [2025-01-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271938', 'tblTempVendorCDR_20' ) start [2025-01-18 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271938', 'tblTempVendorCDR_20' ) end [2025-01-18 00:23:18] Production.INFO: ProcessCDR(1,14271938,1,1,2) [2025-01-18 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271938', 'tblTempUsageDetail_20' ) start [2025-01-18 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271938', 'tblTempUsageDetail_20' ) end [2025-01-18 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:23:23] Production.INFO: ==28369== Releasing lock... [2025-01-18 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:23:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:24:05 [end_date_ymd] => 2025-01-18 00:24:05 [RateCDR] => 1 ) [2025-01-18 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:24:05' and `end` < '2025-01-18 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:24:17] Production.INFO: count ==265 [2025-01-18 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:24:05 - End Time 2025-01-18 00:24:05 [2025-01-18 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271943', 'tblTempUsageDetail_20' ) start [2025-01-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271943', 'tblTempUsageDetail_20' ) end [2025-01-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271943', 'tblTempVendorCDR_20' ) start [2025-01-18 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271943', 'tblTempVendorCDR_20' ) end [2025-01-18 00:24:17] Production.INFO: ProcessCDR(1,14271943,1,1,2) [2025-01-18 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271943', 'tblTempUsageDetail_20' ) start [2025-01-18 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271943', 'tblTempUsageDetail_20' ) end [2025-01-18 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:24:20] Production.INFO: ==28474== Releasing lock... [2025-01-18 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:24:20] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:25:05 [end_date_ymd] => 2025-01-18 00:25:05 [RateCDR] => 1 ) [2025-01-18 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:25:05' and `end` < '2025-01-18 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:25:17] Production.INFO: count ==261 [2025-01-18 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:25:05 - End Time 2025-01-18 00:25:05 [2025-01-18 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271948', 'tblTempUsageDetail_20' ) start [2025-01-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271948', 'tblTempUsageDetail_20' ) end [2025-01-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271948', 'tblTempVendorCDR_20' ) start [2025-01-18 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271948', 'tblTempVendorCDR_20' ) end [2025-01-18 00:25:18] Production.INFO: ProcessCDR(1,14271948,1,1,2) [2025-01-18 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271948', 'tblTempUsageDetail_20' ) start [2025-01-18 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271948', 'tblTempUsageDetail_20' ) end [2025-01-18 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:25:21] Production.INFO: ==28585== Releasing lock... [2025-01-18 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:26:05 [end_date_ymd] => 2025-01-18 00:26:05 [RateCDR] => 1 ) [2025-01-18 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:26:05' and `end` < '2025-01-18 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:26:18] Production.INFO: count ==261 [2025-01-18 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:26:05 - End Time 2025-01-18 00:26:05 [2025-01-18 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271953', 'tblTempUsageDetail_20' ) start [2025-01-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271953', 'tblTempUsageDetail_20' ) end [2025-01-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271953', 'tblTempVendorCDR_20' ) start [2025-01-18 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271953', 'tblTempVendorCDR_20' ) end [2025-01-18 00:26:18] Production.INFO: ProcessCDR(1,14271953,1,1,2) [2025-01-18 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271953', 'tblTempUsageDetail_20' ) start [2025-01-18 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271953', 'tblTempUsageDetail_20' ) end [2025-01-18 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:26:21] Production.INFO: ==28692== Releasing lock... [2025-01-18 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:27:05 [end_date_ymd] => 2025-01-18 00:27:05 [RateCDR] => 1 ) [2025-01-18 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:27:05' and `end` < '2025-01-18 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:27:17] Production.INFO: count ==264 [2025-01-18 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:27:05 - End Time 2025-01-18 00:27:05 [2025-01-18 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271958', 'tblTempUsageDetail_20' ) start [2025-01-18 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271958', 'tblTempUsageDetail_20' ) end [2025-01-18 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271958', 'tblTempVendorCDR_20' ) start [2025-01-18 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271958', 'tblTempVendorCDR_20' ) end [2025-01-18 00:27:17] Production.INFO: ProcessCDR(1,14271958,1,1,2) [2025-01-18 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271958', 'tblTempUsageDetail_20' ) start [2025-01-18 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271958', 'tblTempUsageDetail_20' ) end [2025-01-18 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:27:21] Production.INFO: ==28807== Releasing lock... [2025-01-18 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:27:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:28:05 [end_date_ymd] => 2025-01-18 00:28:05 [RateCDR] => 1 ) [2025-01-18 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:28:05' and `end` < '2025-01-18 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:28:17] Production.INFO: count ==260 [2025-01-18 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:28:05 - End Time 2025-01-18 00:28:05 [2025-01-18 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271963', 'tblTempUsageDetail_20' ) start [2025-01-18 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271963', 'tblTempUsageDetail_20' ) end [2025-01-18 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271963', 'tblTempVendorCDR_20' ) start [2025-01-18 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271963', 'tblTempVendorCDR_20' ) end [2025-01-18 00:28:17] Production.INFO: ProcessCDR(1,14271963,1,1,2) [2025-01-18 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271963', 'tblTempUsageDetail_20' ) start [2025-01-18 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271963', 'tblTempUsageDetail_20' ) end [2025-01-18 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:28:21] Production.INFO: ==28935== Releasing lock... [2025-01-18 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:29:05 [end_date_ymd] => 2025-01-18 00:29:05 [RateCDR] => 1 ) [2025-01-18 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:29:05' and `end` < '2025-01-18 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:29:18] Production.INFO: count ==260 [2025-01-18 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:29:05 - End Time 2025-01-18 00:29:05 [2025-01-18 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271968', 'tblTempUsageDetail_20' ) start [2025-01-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271968', 'tblTempUsageDetail_20' ) end [2025-01-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271968', 'tblTempVendorCDR_20' ) start [2025-01-18 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271968', 'tblTempVendorCDR_20' ) end [2025-01-18 00:29:18] Production.INFO: ProcessCDR(1,14271968,1,1,2) [2025-01-18 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271968', 'tblTempUsageDetail_20' ) start [2025-01-18 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271968', 'tblTempUsageDetail_20' ) end [2025-01-18 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:29:21] Production.INFO: ==29060== Releasing lock... [2025-01-18 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:30:06 [end_date_ymd] => 2025-01-18 00:30:06 [RateCDR] => 1 ) [2025-01-18 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:30:06' and `end` < '2025-01-18 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:30:19] Production.INFO: count ==267 [2025-01-18 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-17 21:30:06 - End Time 2025-01-18 00:30:06 [2025-01-18 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271974', 'tblTempUsageDetail_20' ) start [2025-01-18 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271974', 'tblTempUsageDetail_20' ) end [2025-01-18 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271974', 'tblTempVendorCDR_20' ) start [2025-01-18 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271974', 'tblTempVendorCDR_20' ) end [2025-01-18 00:30:19] Production.INFO: ProcessCDR(1,14271974,1,1,2) [2025-01-18 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271974', 'tblTempUsageDetail_20' ) start [2025-01-18 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271974', 'tblTempUsageDetail_20' ) end [2025-01-18 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:30:22] Production.INFO: ==29188== Releasing lock... [2025-01-18 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:31:05 [end_date_ymd] => 2025-01-18 00:31:05 [RateCDR] => 1 ) [2025-01-18 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:31:05' and `end` < '2025-01-18 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:31:18] Production.INFO: count ==311 [2025-01-18 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:31:05 - End Time 2025-01-18 00:31:05 [2025-01-18 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271979', 'tblTempUsageDetail_20' ) start [2025-01-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271979', 'tblTempUsageDetail_20' ) end [2025-01-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271979', 'tblTempVendorCDR_20' ) start [2025-01-18 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271979', 'tblTempVendorCDR_20' ) end [2025-01-18 00:31:18] Production.INFO: ProcessCDR(1,14271979,1,1,2) [2025-01-18 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271979', 'tblTempUsageDetail_20' ) start [2025-01-18 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271979', 'tblTempUsageDetail_20' ) end [2025-01-18 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:31:21] Production.INFO: ==29311== Releasing lock... [2025-01-18 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:32:05 [end_date_ymd] => 2025-01-18 00:32:05 [RateCDR] => 1 ) [2025-01-18 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:32:05' and `end` < '2025-01-18 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:32:18] Production.INFO: count ==311 [2025-01-18 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:32:05 - End Time 2025-01-18 00:32:05 [2025-01-18 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271984', 'tblTempUsageDetail_20' ) start [2025-01-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271984', 'tblTempUsageDetail_20' ) end [2025-01-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271984', 'tblTempVendorCDR_20' ) start [2025-01-18 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271984', 'tblTempVendorCDR_20' ) end [2025-01-18 00:32:18] Production.INFO: ProcessCDR(1,14271984,1,1,2) [2025-01-18 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271984', 'tblTempUsageDetail_20' ) start [2025-01-18 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271984', 'tblTempUsageDetail_20' ) end [2025-01-18 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:32:21] Production.INFO: ==29418== Releasing lock... [2025-01-18 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:33:05 [end_date_ymd] => 2025-01-18 00:33:05 [RateCDR] => 1 ) [2025-01-18 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:33:05' and `end` < '2025-01-18 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:33:17] Production.INFO: count ==310 [2025-01-18 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:33:05 - End Time 2025-01-18 00:33:05 [2025-01-18 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271989', 'tblTempUsageDetail_20' ) start [2025-01-18 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271989', 'tblTempUsageDetail_20' ) end [2025-01-18 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271989', 'tblTempVendorCDR_20' ) start [2025-01-18 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271989', 'tblTempVendorCDR_20' ) end [2025-01-18 00:33:17] Production.INFO: ProcessCDR(1,14271989,1,1,2) [2025-01-18 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271989', 'tblTempUsageDetail_20' ) start [2025-01-18 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271989', 'tblTempUsageDetail_20' ) end [2025-01-18 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:33:21] Production.INFO: ==29523== Releasing lock... [2025-01-18 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:33:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:34:05 [end_date_ymd] => 2025-01-18 00:34:05 [RateCDR] => 1 ) [2025-01-18 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:34:05' and `end` < '2025-01-18 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:34:18] Production.INFO: count ==306 [2025-01-18 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:34:05 - End Time 2025-01-18 00:34:05 [2025-01-18 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271994', 'tblTempUsageDetail_20' ) start [2025-01-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271994', 'tblTempUsageDetail_20' ) end [2025-01-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271994', 'tblTempVendorCDR_20' ) start [2025-01-18 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271994', 'tblTempVendorCDR_20' ) end [2025-01-18 00:34:18] Production.INFO: ProcessCDR(1,14271994,1,1,2) [2025-01-18 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271994', 'tblTempUsageDetail_20' ) start [2025-01-18 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271994', 'tblTempUsageDetail_20' ) end [2025-01-18 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:34:21] Production.INFO: ==29629== Releasing lock... [2025-01-18 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:34:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:35:05 [end_date_ymd] => 2025-01-18 00:35:05 [RateCDR] => 1 ) [2025-01-18 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:35:05' and `end` < '2025-01-18 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:35:17] Production.INFO: count ==306 [2025-01-18 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:35:05 - End Time 2025-01-18 00:35:05 [2025-01-18 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271999', 'tblTempUsageDetail_20' ) start [2025-01-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14271999', 'tblTempUsageDetail_20' ) end [2025-01-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271999', 'tblTempVendorCDR_20' ) start [2025-01-18 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14271999', 'tblTempVendorCDR_20' ) end [2025-01-18 00:35:17] Production.INFO: ProcessCDR(1,14271999,1,1,2) [2025-01-18 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14271999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14271999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14271999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14271999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271999', 'tblTempUsageDetail_20' ) start [2025-01-18 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14271999', 'tblTempUsageDetail_20' ) end [2025-01-18 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:35:21] Production.INFO: ==29738== Releasing lock... [2025-01-18 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:36:05 [end_date_ymd] => 2025-01-18 00:36:05 [RateCDR] => 1 ) [2025-01-18 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:36:05' and `end` < '2025-01-18 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:36:18] Production.INFO: count ==306 [2025-01-18 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:36:05 - End Time 2025-01-18 00:36:05 [2025-01-18 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272004', 'tblTempUsageDetail_20' ) start [2025-01-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272004', 'tblTempUsageDetail_20' ) end [2025-01-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272004', 'tblTempVendorCDR_20' ) start [2025-01-18 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272004', 'tblTempVendorCDR_20' ) end [2025-01-18 00:36:18] Production.INFO: ProcessCDR(1,14272004,1,1,2) [2025-01-18 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272004', 'tblTempUsageDetail_20' ) start [2025-01-18 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272004', 'tblTempUsageDetail_20' ) end [2025-01-18 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:36:22] Production.INFO: ==29885== Releasing lock... [2025-01-18 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:37:05 [end_date_ymd] => 2025-01-18 00:37:05 [RateCDR] => 1 ) [2025-01-18 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:37:05' and `end` < '2025-01-18 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:37:17] Production.INFO: count ==307 [2025-01-18 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:37:05 - End Time 2025-01-18 00:37:05 [2025-01-18 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272009', 'tblTempUsageDetail_20' ) start [2025-01-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272009', 'tblTempUsageDetail_20' ) end [2025-01-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272009', 'tblTempVendorCDR_20' ) start [2025-01-18 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272009', 'tblTempVendorCDR_20' ) end [2025-01-18 00:37:18] Production.INFO: ProcessCDR(1,14272009,1,1,2) [2025-01-18 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272009', 'tblTempUsageDetail_20' ) start [2025-01-18 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272009', 'tblTempUsageDetail_20' ) end [2025-01-18 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:37:22] Production.INFO: ==29992== Releasing lock... [2025-01-18 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:38:05 [end_date_ymd] => 2025-01-18 00:38:05 [RateCDR] => 1 ) [2025-01-18 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:38:05' and `end` < '2025-01-18 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:38:18] Production.INFO: count ==308 [2025-01-18 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:38:05 - End Time 2025-01-18 00:38:05 [2025-01-18 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272014', 'tblTempUsageDetail_20' ) start [2025-01-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272014', 'tblTempUsageDetail_20' ) end [2025-01-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272014', 'tblTempVendorCDR_20' ) start [2025-01-18 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272014', 'tblTempVendorCDR_20' ) end [2025-01-18 00:38:18] Production.INFO: ProcessCDR(1,14272014,1,1,2) [2025-01-18 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272014', 'tblTempUsageDetail_20' ) start [2025-01-18 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272014', 'tblTempUsageDetail_20' ) end [2025-01-18 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:38:23] Production.INFO: ==30099== Releasing lock... [2025-01-18 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:38:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:39:05 [end_date_ymd] => 2025-01-18 00:39:05 [RateCDR] => 1 ) [2025-01-18 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:39:05' and `end` < '2025-01-18 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:39:17] Production.INFO: count ==308 [2025-01-18 00:39:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:39:05 - End Time 2025-01-18 00:39:05 [2025-01-18 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272019', 'tblTempUsageDetail_20' ) start [2025-01-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272019', 'tblTempUsageDetail_20' ) end [2025-01-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272019', 'tblTempVendorCDR_20' ) start [2025-01-18 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272019', 'tblTempVendorCDR_20' ) end [2025-01-18 00:39:17] Production.INFO: ProcessCDR(1,14272019,1,1,2) [2025-01-18 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272019', 'tblTempUsageDetail_20' ) start [2025-01-18 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272019', 'tblTempUsageDetail_20' ) end [2025-01-18 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:39:20] Production.INFO: ==30209== Releasing lock... [2025-01-18 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:39:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:40:06 [end_date_ymd] => 2025-01-18 00:40:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:40:06' and `end` < '2025-01-18 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-01-18 00:40:18] Production.INFO: count ==316 [2025-01-18 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:40:06 - End Time 2025-01-18 00:40:06 [2025-01-18 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272025', 'tblTempUsageDetail_20' ) start [2025-01-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272025', 'tblTempUsageDetail_20' ) end [2025-01-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272025', 'tblTempVendorCDR_20' ) start [2025-01-18 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272025', 'tblTempVendorCDR_20' ) end [2025-01-18 00:40:18] Production.INFO: ProcessCDR(1,14272025,1,1,2) [2025-01-18 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272025', 'tblTempUsageDetail_20' ) start [2025-01-18 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272025', 'tblTempUsageDetail_20' ) end [2025-01-18 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:40:22] Production.INFO: ==30324== Releasing lock... [2025-01-18 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 00:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:41:04 [end_date_ymd] => 2025-01-18 00:41:04 [RateCDR] => 1 ) [2025-01-18 00:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:41:04' and `end` < '2025-01-18 00:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:41:17] Production.INFO: count ==334 [2025-01-18 00:41:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:41:04 - End Time 2025-01-18 00:41:04 [2025-01-18 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272030', 'tblTempUsageDetail_20' ) start [2025-01-18 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272030', 'tblTempUsageDetail_20' ) end [2025-01-18 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272030', 'tblTempVendorCDR_20' ) start [2025-01-18 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272030', 'tblTempVendorCDR_20' ) end [2025-01-18 00:41:17] Production.INFO: ProcessCDR(1,14272030,1,1,2) [2025-01-18 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272030', 'tblTempUsageDetail_20' ) start [2025-01-18 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272030', 'tblTempUsageDetail_20' ) end [2025-01-18 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:41:21] Production.INFO: ==30430== Releasing lock... [2025-01-18 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:42:05 [end_date_ymd] => 2025-01-18 00:42:05 [RateCDR] => 1 ) [2025-01-18 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:42:05' and `end` < '2025-01-18 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:42:18] Production.INFO: count ==334 [2025-01-18 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:42:05 - End Time 2025-01-18 00:42:05 [2025-01-18 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272035', 'tblTempUsageDetail_20' ) start [2025-01-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272035', 'tblTempUsageDetail_20' ) end [2025-01-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272035', 'tblTempVendorCDR_20' ) start [2025-01-18 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272035', 'tblTempVendorCDR_20' ) end [2025-01-18 00:42:18] Production.INFO: ProcessCDR(1,14272035,1,1,2) [2025-01-18 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272035', 'tblTempUsageDetail_20' ) start [2025-01-18 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272035', 'tblTempUsageDetail_20' ) end [2025-01-18 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:42:21] Production.INFO: ==30541== Releasing lock... [2025-01-18 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:43:06 [end_date_ymd] => 2025-01-18 00:43:06 [RateCDR] => 1 ) [2025-01-18 00:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:43:06' and `end` < '2025-01-18 00:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:43:18] Production.INFO: count ==334 [2025-01-18 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:43:06 - End Time 2025-01-18 00:43:06 [2025-01-18 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272040', 'tblTempUsageDetail_20' ) start [2025-01-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272040', 'tblTempUsageDetail_20' ) end [2025-01-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272040', 'tblTempVendorCDR_20' ) start [2025-01-18 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272040', 'tblTempVendorCDR_20' ) end [2025-01-18 00:43:18] Production.INFO: ProcessCDR(1,14272040,1,1,2) [2025-01-18 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272040', 'tblTempUsageDetail_20' ) start [2025-01-18 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272040', 'tblTempUsageDetail_20' ) end [2025-01-18 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:43:22] Production.INFO: ==30648== Releasing lock... [2025-01-18 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:44:05 [end_date_ymd] => 2025-01-18 00:44:05 [RateCDR] => 1 ) [2025-01-18 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:44:05' and `end` < '2025-01-18 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:44:17] Production.INFO: count ==337 [2025-01-18 00:44:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:44:05 - End Time 2025-01-18 00:44:05 [2025-01-18 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272045', 'tblTempUsageDetail_20' ) start [2025-01-18 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272045', 'tblTempUsageDetail_20' ) end [2025-01-18 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272045', 'tblTempVendorCDR_20' ) start [2025-01-18 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272045', 'tblTempVendorCDR_20' ) end [2025-01-18 00:44:17] Production.INFO: ProcessCDR(1,14272045,1,1,2) [2025-01-18 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272045', 'tblTempUsageDetail_20' ) start [2025-01-18 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272045', 'tblTempUsageDetail_20' ) end [2025-01-18 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:44:21] Production.INFO: ==30755== Releasing lock... [2025-01-18 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 00:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:45:06 [end_date_ymd] => 2025-01-18 00:45:06 [RateCDR] => 1 ) [2025-01-18 00:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:45:06' and `end` < '2025-01-18 00:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:45:18] Production.INFO: count ==337 [2025-01-18 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:45:06 - End Time 2025-01-18 00:45:06 [2025-01-18 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272050', 'tblTempUsageDetail_20' ) start [2025-01-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272050', 'tblTempUsageDetail_20' ) end [2025-01-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272050', 'tblTempVendorCDR_20' ) start [2025-01-18 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272050', 'tblTempVendorCDR_20' ) end [2025-01-18 00:45:18] Production.INFO: ProcessCDR(1,14272050,1,1,2) [2025-01-18 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272050', 'tblTempUsageDetail_20' ) start [2025-01-18 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272050', 'tblTempUsageDetail_20' ) end [2025-01-18 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:45:21] Production.INFO: ==30857== Releasing lock... [2025-01-18 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:46:05 [end_date_ymd] => 2025-01-18 00:46:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:46:05' and `end` < '2025-01-18 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-01-18 00:46:18] Production.INFO: count ==337 [2025-01-18 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:46:05 - End Time 2025-01-18 00:46:05 [2025-01-18 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272055', 'tblTempUsageDetail_20' ) start [2025-01-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272055', 'tblTempUsageDetail_20' ) end [2025-01-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272055', 'tblTempVendorCDR_20' ) start [2025-01-18 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272055', 'tblTempVendorCDR_20' ) end [2025-01-18 00:46:18] Production.INFO: ProcessCDR(1,14272055,1,1,2) [2025-01-18 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272055', 'tblTempUsageDetail_20' ) start [2025-01-18 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272055', 'tblTempUsageDetail_20' ) end [2025-01-18 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:46:21] Production.INFO: ==30958== Releasing lock... [2025-01-18 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:47:05 [end_date_ymd] => 2025-01-18 00:47:05 [RateCDR] => 1 ) [2025-01-18 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:47:05' and `end` < '2025-01-18 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:47:17] Production.INFO: count ==340 [2025-01-18 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:47:05 - End Time 2025-01-18 00:47:05 [2025-01-18 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272060', 'tblTempUsageDetail_20' ) start [2025-01-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272060', 'tblTempUsageDetail_20' ) end [2025-01-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272060', 'tblTempVendorCDR_20' ) start [2025-01-18 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272060', 'tblTempVendorCDR_20' ) end [2025-01-18 00:47:17] Production.INFO: ProcessCDR(1,14272060,1,1,2) [2025-01-18 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272060', 'tblTempUsageDetail_20' ) start [2025-01-18 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272060', 'tblTempUsageDetail_20' ) end [2025-01-18 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:47:21] Production.INFO: ==31063== Releasing lock... [2025-01-18 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:47:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:48:05 [end_date_ymd] => 2025-01-18 00:48:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:48:05' and `end` < '2025-01-18 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-01-18 00:48:18] Production.INFO: count ==344 [2025-01-18 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:48:05 - End Time 2025-01-18 00:48:05 [2025-01-18 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272065', 'tblTempUsageDetail_20' ) start [2025-01-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272065', 'tblTempUsageDetail_20' ) end [2025-01-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272065', 'tblTempVendorCDR_20' ) start [2025-01-18 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272065', 'tblTempVendorCDR_20' ) end [2025-01-18 00:48:18] Production.INFO: ProcessCDR(1,14272065,1,1,2) [2025-01-18 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272065', 'tblTempUsageDetail_20' ) start [2025-01-18 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272065', 'tblTempUsageDetail_20' ) end [2025-01-18 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:48:23] Production.INFO: ==31167== Releasing lock... [2025-01-18 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:48:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:49:05 [end_date_ymd] => 2025-01-18 00:49:05 [RateCDR] => 1 ) [2025-01-18 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:49:05' and `end` < '2025-01-18 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:49:17] Production.INFO: count ==346 [2025-01-18 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:49:05 - End Time 2025-01-18 00:49:05 [2025-01-18 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272070', 'tblTempUsageDetail_20' ) start [2025-01-18 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272070', 'tblTempUsageDetail_20' ) end [2025-01-18 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272070', 'tblTempVendorCDR_20' ) start [2025-01-18 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272070', 'tblTempVendorCDR_20' ) end [2025-01-18 00:49:17] Production.INFO: ProcessCDR(1,14272070,1,1,2) [2025-01-18 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272070', 'tblTempUsageDetail_20' ) start [2025-01-18 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272070', 'tblTempUsageDetail_20' ) end [2025-01-18 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:49:21] Production.INFO: ==31270== Releasing lock... [2025-01-18 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:50:05 [end_date_ymd] => 2025-01-18 00:50:05 [RateCDR] => 1 ) [2025-01-18 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:50:05' and `end` < '2025-01-18 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:50:18] Production.INFO: count ==351 [2025-01-18 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:50:05 - End Time 2025-01-18 00:50:05 [2025-01-18 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272075', 'tblTempUsageDetail_20' ) start [2025-01-18 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272075', 'tblTempUsageDetail_20' ) end [2025-01-18 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272075', 'tblTempVendorCDR_20' ) start [2025-01-18 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272075', 'tblTempVendorCDR_20' ) end [2025-01-18 00:50:18] Production.INFO: ProcessCDR(1,14272075,1,1,2) [2025-01-18 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272075', 'tblTempUsageDetail_20' ) start [2025-01-18 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272075', 'tblTempUsageDetail_20' ) end [2025-01-18 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:50:21] Production.INFO: ==31370== Releasing lock... [2025-01-18 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:51:06 [end_date_ymd] => 2025-01-18 00:51:06 [RateCDR] => 1 ) [2025-01-18 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:51:06' and `end` < '2025-01-18 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:51:19] Production.INFO: count ==373 [2025-01-18 00:51:19] Production.ERROR: pbx CDR StartTime 2025-01-17 21:51:06 - End Time 2025-01-18 00:51:06 [2025-01-18 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272081', 'tblTempUsageDetail_20' ) start [2025-01-18 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272081', 'tblTempUsageDetail_20' ) end [2025-01-18 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272081', 'tblTempVendorCDR_20' ) start [2025-01-18 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272081', 'tblTempVendorCDR_20' ) end [2025-01-18 00:51:19] Production.INFO: ProcessCDR(1,14272081,1,1,2) [2025-01-18 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272081', 'tblTempUsageDetail_20' ) start [2025-01-18 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272081', 'tblTempUsageDetail_20' ) end [2025-01-18 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:51:22] Production.INFO: ==31478== Releasing lock... [2025-01-18 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:51:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:52:05 [end_date_ymd] => 2025-01-18 00:52:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:52:05' and `end` < '2025-01-18 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-01-18 00:52:17] Production.INFO: count ==373 [2025-01-18 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:52:05 - End Time 2025-01-18 00:52:05 [2025-01-18 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272086', 'tblTempUsageDetail_20' ) start [2025-01-18 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272086', 'tblTempUsageDetail_20' ) end [2025-01-18 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272086', 'tblTempVendorCDR_20' ) start [2025-01-18 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272086', 'tblTempVendorCDR_20' ) end [2025-01-18 00:52:17] Production.INFO: ProcessCDR(1,14272086,1,1,2) [2025-01-18 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272086', 'tblTempUsageDetail_20' ) start [2025-01-18 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272086', 'tblTempUsageDetail_20' ) end [2025-01-18 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:52:21] Production.INFO: ==31627== Releasing lock... [2025-01-18 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:52:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:53:05 [end_date_ymd] => 2025-01-18 00:53:05 [RateCDR] => 1 ) [2025-01-18 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:53:05' and `end` < '2025-01-18 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:53:18] Production.INFO: count ==375 [2025-01-18 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:53:05 - End Time 2025-01-18 00:53:05 [2025-01-18 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272091', 'tblTempUsageDetail_20' ) start [2025-01-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272091', 'tblTempUsageDetail_20' ) end [2025-01-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272091', 'tblTempVendorCDR_20' ) start [2025-01-18 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272091', 'tblTempVendorCDR_20' ) end [2025-01-18 00:53:18] Production.INFO: ProcessCDR(1,14272091,1,1,2) [2025-01-18 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272091', 'tblTempUsageDetail_20' ) start [2025-01-18 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272091', 'tblTempUsageDetail_20' ) end [2025-01-18 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:53:21] Production.INFO: ==31733== Releasing lock... [2025-01-18 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:54:05 [end_date_ymd] => 2025-01-18 00:54:05 [RateCDR] => 1 ) [2025-01-18 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:54:05' and `end` < '2025-01-18 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:54:17] Production.INFO: count ==375 [2025-01-18 00:54:17] Production.ERROR: pbx CDR StartTime 2025-01-17 21:54:05 - End Time 2025-01-18 00:54:05 [2025-01-18 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272096', 'tblTempUsageDetail_20' ) start [2025-01-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272096', 'tblTempUsageDetail_20' ) end [2025-01-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272096', 'tblTempVendorCDR_20' ) start [2025-01-18 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272096', 'tblTempVendorCDR_20' ) end [2025-01-18 00:54:17] Production.INFO: ProcessCDR(1,14272096,1,1,2) [2025-01-18 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272096', 'tblTempUsageDetail_20' ) start [2025-01-18 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272096', 'tblTempUsageDetail_20' ) end [2025-01-18 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:54:21] Production.INFO: ==31847== Releasing lock... [2025-01-18 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:55:06 [end_date_ymd] => 2025-01-18 00:55:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:55:06' and `end` < '2025-01-18 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-01-18 00:55:19] Production.INFO: count ==373 [2025-01-18 00:55:19] Production.ERROR: pbx CDR StartTime 2025-01-17 21:55:06 - End Time 2025-01-18 00:55:06 [2025-01-18 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272101', 'tblTempUsageDetail_20' ) start [2025-01-18 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272101', 'tblTempUsageDetail_20' ) end [2025-01-18 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272101', 'tblTempVendorCDR_20' ) start [2025-01-18 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272101', 'tblTempVendorCDR_20' ) end [2025-01-18 00:55:19] Production.INFO: ProcessCDR(1,14272101,1,1,2) [2025-01-18 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272101', 'tblTempUsageDetail_20' ) start [2025-01-18 00:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272101', 'tblTempUsageDetail_20' ) end [2025-01-18 00:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:55:25] Production.INFO: ==31958== Releasing lock... [2025-01-18 00:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:55:25] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:56:05 [end_date_ymd] => 2025-01-18 00:56:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 21:56:05' and `end` < '2025-01-18 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-01-18 00:56:18] Production.INFO: count ==373 [2025-01-18 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:56:05 - End Time 2025-01-18 00:56:05 [2025-01-18 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272106', 'tblTempUsageDetail_20' ) start [2025-01-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272106', 'tblTempUsageDetail_20' ) end [2025-01-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272106', 'tblTempVendorCDR_20' ) start [2025-01-18 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272106', 'tblTempVendorCDR_20' ) end [2025-01-18 00:56:18] Production.INFO: ProcessCDR(1,14272106,1,1,2) [2025-01-18 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272106', 'tblTempUsageDetail_20' ) start [2025-01-18 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272106', 'tblTempUsageDetail_20' ) end [2025-01-18 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:56:22] Production.INFO: ==32064== Releasing lock... [2025-01-18 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:56:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:57:06 [end_date_ymd] => 2025-01-18 00:57:06 [RateCDR] => 1 ) [2025-01-18 00:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:57:06' and `end` < '2025-01-18 00:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:57:18] Production.INFO: count ==372 [2025-01-18 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:57:06 - End Time 2025-01-18 00:57:06 [2025-01-18 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272111', 'tblTempUsageDetail_20' ) start [2025-01-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272111', 'tblTempUsageDetail_20' ) end [2025-01-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272111', 'tblTempVendorCDR_20' ) start [2025-01-18 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272111', 'tblTempVendorCDR_20' ) end [2025-01-18 00:57:18] Production.INFO: ProcessCDR(1,14272111,1,1,2) [2025-01-18 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272111', 'tblTempUsageDetail_20' ) start [2025-01-18 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272111', 'tblTempUsageDetail_20' ) end [2025-01-18 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:57:22] Production.INFO: ==32172== Releasing lock... [2025-01-18 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:57:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:58:05 [end_date_ymd] => 2025-01-18 00:58:05 [RateCDR] => 1 ) [2025-01-18 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:58:05' and `end` < '2025-01-18 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:58:17] Production.INFO: count ==372 [2025-01-18 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:58:05 - End Time 2025-01-18 00:58:05 [2025-01-18 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272116', 'tblTempUsageDetail_20' ) start [2025-01-18 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272116', 'tblTempUsageDetail_20' ) end [2025-01-18 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272116', 'tblTempVendorCDR_20' ) start [2025-01-18 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272116', 'tblTempVendorCDR_20' ) end [2025-01-18 00:58:18] Production.INFO: ProcessCDR(1,14272116,1,1,2) [2025-01-18 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272116', 'tblTempUsageDetail_20' ) start [2025-01-18 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272116', 'tblTempUsageDetail_20' ) end [2025-01-18 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:58:21] Production.INFO: ==32271== Releasing lock... [2025-01-18 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 21:59:06 [end_date_ymd] => 2025-01-18 00:59:06 [RateCDR] => 1 ) [2025-01-18 00:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 21:59:06' and `end` < '2025-01-18 00:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 00:59:18] Production.INFO: count ==372 [2025-01-18 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 21:59:06 - End Time 2025-01-18 00:59:06 [2025-01-18 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272121', 'tblTempUsageDetail_20' ) start [2025-01-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272121', 'tblTempUsageDetail_20' ) end [2025-01-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272121', 'tblTempVendorCDR_20' ) start [2025-01-18 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272121', 'tblTempVendorCDR_20' ) end [2025-01-18 00:59:18] Production.INFO: ProcessCDR(1,14272121,1,1,2) [2025-01-18 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272121', 'tblTempUsageDetail_20' ) start [2025-01-18 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272121', 'tblTempUsageDetail_20' ) end [2025-01-18 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 00:59:22] Production.INFO: ==32370== Releasing lock... [2025-01-18 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 00:59:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:00:06 [end_date_ymd] => 2025-01-18 01:00:06 [RateCDR] => 1 ) [2025-01-18 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:00:06' and `end` < '2025-01-18 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:00:19] Production.INFO: count ==376 [2025-01-18 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:00:06 - End Time 2025-01-18 01:00:06 [2025-01-18 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272127', 'tblTempUsageDetail_20' ) start [2025-01-18 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272127', 'tblTempUsageDetail_20' ) end [2025-01-18 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272127', 'tblTempVendorCDR_20' ) start [2025-01-18 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272127', 'tblTempVendorCDR_20' ) end [2025-01-18 01:00:19] Production.INFO: ProcessCDR(1,14272127,1,1,2) [2025-01-18 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272127', 'tblTempUsageDetail_20' ) start [2025-01-18 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272127', 'tblTempUsageDetail_20' ) end [2025-01-18 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:00:23] Production.INFO: ==32474== Releasing lock... [2025-01-18 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:01:06 [end_date_ymd] => 2025-01-18 01:01:06 [RateCDR] => 1 ) [2025-01-18 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:01:06' and `end` < '2025-01-18 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:01:18] Production.INFO: count ==381 [2025-01-18 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:01:06 - End Time 2025-01-18 01:01:06 [2025-01-18 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272132', 'tblTempUsageDetail_20' ) start [2025-01-18 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272132', 'tblTempUsageDetail_20' ) end [2025-01-18 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272132', 'tblTempVendorCDR_20' ) start [2025-01-18 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272132', 'tblTempVendorCDR_20' ) end [2025-01-18 01:01:18] Production.INFO: ProcessCDR(1,14272132,1,1,2) [2025-01-18 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272132', 'tblTempUsageDetail_20' ) start [2025-01-18 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272132', 'tblTempUsageDetail_20' ) end [2025-01-18 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:01:22] Production.INFO: ==32591== Releasing lock... [2025-01-18 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:02:05 [end_date_ymd] => 2025-01-18 01:02:05 [RateCDR] => 1 ) [2025-01-18 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:02:05' and `end` < '2025-01-18 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:02:18] Production.INFO: count ==381 [2025-01-18 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:02:05 - End Time 2025-01-18 01:02:05 [2025-01-18 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272137', 'tblTempUsageDetail_20' ) start [2025-01-18 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272137', 'tblTempUsageDetail_20' ) end [2025-01-18 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272137', 'tblTempVendorCDR_20' ) start [2025-01-18 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272137', 'tblTempVendorCDR_20' ) end [2025-01-18 01:02:18] Production.INFO: ProcessCDR(1,14272137,1,1,2) [2025-01-18 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272137', 'tblTempUsageDetail_20' ) start [2025-01-18 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272137', 'tblTempUsageDetail_20' ) end [2025-01-18 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:02:23] Production.INFO: ==32701== Releasing lock... [2025-01-18 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:03:05 [end_date_ymd] => 2025-01-18 01:03:05 [RateCDR] => 1 ) [2025-01-18 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:03:05' and `end` < '2025-01-18 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:03:17] Production.INFO: count ==379 [2025-01-18 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:03:05 - End Time 2025-01-18 01:03:05 [2025-01-18 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272142', 'tblTempUsageDetail_20' ) start [2025-01-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272142', 'tblTempUsageDetail_20' ) end [2025-01-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272142', 'tblTempVendorCDR_20' ) start [2025-01-18 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272142', 'tblTempVendorCDR_20' ) end [2025-01-18 01:03:17] Production.INFO: ProcessCDR(1,14272142,1,1,2) [2025-01-18 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272142', 'tblTempUsageDetail_20' ) start [2025-01-18 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272142', 'tblTempUsageDetail_20' ) end [2025-01-18 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:03:21] Production.INFO: ==357== Releasing lock... [2025-01-18 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:04:05 [end_date_ymd] => 2025-01-18 01:04:05 [RateCDR] => 1 ) [2025-01-18 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:04:05' and `end` < '2025-01-18 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:04:18] Production.INFO: count ==377 [2025-01-18 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:04:05 - End Time 2025-01-18 01:04:05 [2025-01-18 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272147', 'tblTempUsageDetail_20' ) start [2025-01-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272147', 'tblTempUsageDetail_20' ) end [2025-01-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272147', 'tblTempVendorCDR_20' ) start [2025-01-18 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272147', 'tblTempVendorCDR_20' ) end [2025-01-18 01:04:19] Production.INFO: ProcessCDR(1,14272147,1,1,2) [2025-01-18 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272147', 'tblTempUsageDetail_20' ) start [2025-01-18 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272147', 'tblTempUsageDetail_20' ) end [2025-01-18 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:04:22] Production.INFO: ==466== Releasing lock... [2025-01-18 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 01:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:05:04 [end_date_ymd] => 2025-01-18 01:05:04 [RateCDR] => 1 ) [2025-01-18 01:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:05:04' and `end` < '2025-01-18 01:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:05:17] Production.INFO: count ==375 [2025-01-18 01:05:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:05:04 - End Time 2025-01-18 01:05:04 [2025-01-18 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272152', 'tblTempUsageDetail_20' ) start [2025-01-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272152', 'tblTempUsageDetail_20' ) end [2025-01-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272152', 'tblTempVendorCDR_20' ) start [2025-01-18 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272152', 'tblTempVendorCDR_20' ) end [2025-01-18 01:05:17] Production.INFO: ProcessCDR(1,14272152,1,1,2) [2025-01-18 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272152', 'tblTempUsageDetail_20' ) start [2025-01-18 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272152', 'tblTempUsageDetail_20' ) end [2025-01-18 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:05:20] Production.INFO: ==569== Releasing lock... [2025-01-18 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:06:05 [end_date_ymd] => 2025-01-18 01:06:05 [RateCDR] => 1 ) [2025-01-18 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:06:05' and `end` < '2025-01-18 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:06:18] Production.INFO: count ==375 [2025-01-18 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:06:05 - End Time 2025-01-18 01:06:05 [2025-01-18 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272157', 'tblTempUsageDetail_20' ) start [2025-01-18 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272157', 'tblTempUsageDetail_20' ) end [2025-01-18 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272157', 'tblTempVendorCDR_20' ) start [2025-01-18 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272157', 'tblTempVendorCDR_20' ) end [2025-01-18 01:06:18] Production.INFO: ProcessCDR(1,14272157,1,1,2) [2025-01-18 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272157', 'tblTempUsageDetail_20' ) start [2025-01-18 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272157', 'tblTempUsageDetail_20' ) end [2025-01-18 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:06:21] Production.INFO: ==698== Releasing lock... [2025-01-18 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:07:04 [end_date_ymd] => 2025-01-18 01:07:04 [RateCDR] => 1 ) [2025-01-18 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:07:04' and `end` < '2025-01-18 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:07:16] Production.INFO: count ==375 [2025-01-18 01:07:16] Production.ERROR: pbx CDR StartTime 2025-01-17 22:07:04 - End Time 2025-01-18 01:07:04 [2025-01-18 01:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272162', 'tblTempUsageDetail_20' ) start [2025-01-18 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272162', 'tblTempUsageDetail_20' ) end [2025-01-18 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272162', 'tblTempVendorCDR_20' ) start [2025-01-18 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272162', 'tblTempVendorCDR_20' ) end [2025-01-18 01:07:16] Production.INFO: ProcessCDR(1,14272162,1,1,2) [2025-01-18 01:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272162', 'tblTempUsageDetail_20' ) start [2025-01-18 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272162', 'tblTempUsageDetail_20' ) end [2025-01-18 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:07:20] Production.INFO: ==806== Releasing lock... [2025-01-18 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:07:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:08:05 [end_date_ymd] => 2025-01-18 01:08:05 [RateCDR] => 1 ) [2025-01-18 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:08:05' and `end` < '2025-01-18 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:08:18] Production.INFO: count ==375 [2025-01-18 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:08:05 - End Time 2025-01-18 01:08:05 [2025-01-18 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272167', 'tblTempUsageDetail_20' ) start [2025-01-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272167', 'tblTempUsageDetail_20' ) end [2025-01-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272167', 'tblTempVendorCDR_20' ) start [2025-01-18 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272167', 'tblTempVendorCDR_20' ) end [2025-01-18 01:08:18] Production.INFO: ProcessCDR(1,14272167,1,1,2) [2025-01-18 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272167', 'tblTempUsageDetail_20' ) start [2025-01-18 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272167', 'tblTempUsageDetail_20' ) end [2025-01-18 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:08:22] Production.INFO: ==951== Releasing lock... [2025-01-18 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:09:05 [end_date_ymd] => 2025-01-18 01:09:05 [RateCDR] => 1 ) [2025-01-18 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:09:05' and `end` < '2025-01-18 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:09:17] Production.INFO: count ==375 [2025-01-18 01:09:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:09:05 - End Time 2025-01-18 01:09:05 [2025-01-18 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272172', 'tblTempUsageDetail_20' ) start [2025-01-18 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272172', 'tblTempUsageDetail_20' ) end [2025-01-18 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272172', 'tblTempVendorCDR_20' ) start [2025-01-18 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272172', 'tblTempVendorCDR_20' ) end [2025-01-18 01:09:17] Production.INFO: ProcessCDR(1,14272172,1,1,2) [2025-01-18 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272172', 'tblTempUsageDetail_20' ) start [2025-01-18 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272172', 'tblTempUsageDetail_20' ) end [2025-01-18 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:09:21] Production.INFO: ==1060== Releasing lock... [2025-01-18 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:10:06 [end_date_ymd] => 2025-01-18 01:10:06 [RateCDR] => 1 ) [2025-01-18 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:10:06' and `end` < '2025-01-18 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:10:18] Production.INFO: count ==379 [2025-01-18 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:10:06 - End Time 2025-01-18 01:10:06 [2025-01-18 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272178', 'tblTempUsageDetail_20' ) start [2025-01-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272178', 'tblTempUsageDetail_20' ) end [2025-01-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272178', 'tblTempVendorCDR_20' ) start [2025-01-18 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272178', 'tblTempVendorCDR_20' ) end [2025-01-18 01:10:19] Production.INFO: ProcessCDR(1,14272178,1,1,2) [2025-01-18 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272178', 'tblTempUsageDetail_20' ) start [2025-01-18 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272178', 'tblTempUsageDetail_20' ) end [2025-01-18 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:10:22] Production.INFO: ==1176== Releasing lock... [2025-01-18 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:11:05 [end_date_ymd] => 2025-01-18 01:11:05 [RateCDR] => 1 ) [2025-01-18 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:11:05' and `end` < '2025-01-18 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:11:17] Production.INFO: count ==381 [2025-01-18 01:11:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:11:05 - End Time 2025-01-18 01:11:05 [2025-01-18 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272183', 'tblTempUsageDetail_20' ) start [2025-01-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272183', 'tblTempUsageDetail_20' ) end [2025-01-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272183', 'tblTempVendorCDR_20' ) start [2025-01-18 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272183', 'tblTempVendorCDR_20' ) end [2025-01-18 01:11:17] Production.INFO: ProcessCDR(1,14272183,1,1,2) [2025-01-18 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272183', 'tblTempUsageDetail_20' ) start [2025-01-18 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272183', 'tblTempUsageDetail_20' ) end [2025-01-18 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:11:21] Production.INFO: ==1293== Releasing lock... [2025-01-18 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:12:06 [end_date_ymd] => 2025-01-18 01:12:06 [RateCDR] => 1 ) [2025-01-18 01:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:12:06' and `end` < '2025-01-18 01:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:12:19] Production.INFO: count ==381 [2025-01-18 01:12:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:12:06 - End Time 2025-01-18 01:12:06 [2025-01-18 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272188', 'tblTempUsageDetail_20' ) start [2025-01-18 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272188', 'tblTempUsageDetail_20' ) end [2025-01-18 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272188', 'tblTempVendorCDR_20' ) start [2025-01-18 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272188', 'tblTempVendorCDR_20' ) end [2025-01-18 01:12:19] Production.INFO: ProcessCDR(1,14272188,1,1,2) [2025-01-18 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272188', 'tblTempUsageDetail_20' ) start [2025-01-18 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272188', 'tblTempUsageDetail_20' ) end [2025-01-18 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:12:22] Production.INFO: ==1392== Releasing lock... [2025-01-18 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:13:04 [end_date_ymd] => 2025-01-18 01:13:04 [RateCDR] => 1 ) [2025-01-18 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:13:04' and `end` < '2025-01-18 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:13:18] Production.INFO: count ==381 [2025-01-18 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:13:04 - End Time 2025-01-18 01:13:04 [2025-01-18 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272193', 'tblTempUsageDetail_20' ) start [2025-01-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272193', 'tblTempUsageDetail_20' ) end [2025-01-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272193', 'tblTempVendorCDR_20' ) start [2025-01-18 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272193', 'tblTempVendorCDR_20' ) end [2025-01-18 01:13:18] Production.INFO: ProcessCDR(1,14272193,1,1,2) [2025-01-18 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272193', 'tblTempUsageDetail_20' ) start [2025-01-18 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272193', 'tblTempUsageDetail_20' ) end [2025-01-18 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:13:22] Production.INFO: ==1495== Releasing lock... [2025-01-18 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:14:06 [end_date_ymd] => 2025-01-18 01:14:06 [RateCDR] => 1 ) [2025-01-18 01:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:14:06' and `end` < '2025-01-18 01:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:14:18] Production.INFO: count ==377 [2025-01-18 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:14:06 - End Time 2025-01-18 01:14:06 [2025-01-18 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272198', 'tblTempUsageDetail_20' ) start [2025-01-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272198', 'tblTempUsageDetail_20' ) end [2025-01-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272198', 'tblTempVendorCDR_20' ) start [2025-01-18 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272198', 'tblTempVendorCDR_20' ) end [2025-01-18 01:14:18] Production.INFO: ProcessCDR(1,14272198,1,1,2) [2025-01-18 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272198', 'tblTempUsageDetail_20' ) start [2025-01-18 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272198', 'tblTempUsageDetail_20' ) end [2025-01-18 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:14:22] Production.INFO: ==1639== Releasing lock... [2025-01-18 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:15:05 [end_date_ymd] => 2025-01-18 01:15:05 [RateCDR] => 1 ) [2025-01-18 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:15:05' and `end` < '2025-01-18 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:15:18] Production.INFO: count ==377 [2025-01-18 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:15:05 - End Time 2025-01-18 01:15:05 [2025-01-18 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272203', 'tblTempUsageDetail_20' ) start [2025-01-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272203', 'tblTempUsageDetail_20' ) end [2025-01-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272203', 'tblTempVendorCDR_20' ) start [2025-01-18 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272203', 'tblTempVendorCDR_20' ) end [2025-01-18 01:15:18] Production.INFO: ProcessCDR(1,14272203,1,1,2) [2025-01-18 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272203', 'tblTempUsageDetail_20' ) start [2025-01-18 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272203', 'tblTempUsageDetail_20' ) end [2025-01-18 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:15:21] Production.INFO: ==1744== Releasing lock... [2025-01-18 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:16:05 [end_date_ymd] => 2025-01-18 01:16:05 [RateCDR] => 1 ) [2025-01-18 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:16:05' and `end` < '2025-01-18 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:16:18] Production.INFO: count ==378 [2025-01-18 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:16:05 - End Time 2025-01-18 01:16:05 [2025-01-18 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272208', 'tblTempUsageDetail_20' ) start [2025-01-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272208', 'tblTempUsageDetail_20' ) end [2025-01-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272208', 'tblTempVendorCDR_20' ) start [2025-01-18 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272208', 'tblTempVendorCDR_20' ) end [2025-01-18 01:16:18] Production.INFO: ProcessCDR(1,14272208,1,1,2) [2025-01-18 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272208', 'tblTempUsageDetail_20' ) start [2025-01-18 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272208', 'tblTempUsageDetail_20' ) end [2025-01-18 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:16:21] Production.INFO: ==1857== Releasing lock... [2025-01-18 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:17:06 [end_date_ymd] => 2025-01-18 01:17:06 [RateCDR] => 1 ) [2025-01-18 01: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-01-17 22:17:06' and `end` < '2025-01-18 01: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-01-18 01:17:18] Production.INFO: count ==377 [2025-01-18 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:17:06 - End Time 2025-01-18 01:17:06 [2025-01-18 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272213', 'tblTempUsageDetail_20' ) start [2025-01-18 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272213', 'tblTempUsageDetail_20' ) end [2025-01-18 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272213', 'tblTempVendorCDR_20' ) start [2025-01-18 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272213', 'tblTempVendorCDR_20' ) end [2025-01-18 01:17:18] Production.INFO: ProcessCDR(1,14272213,1,1,2) [2025-01-18 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272213', 'tblTempUsageDetail_20' ) start [2025-01-18 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272213', 'tblTempUsageDetail_20' ) end [2025-01-18 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:17:22] Production.INFO: ==1967== Releasing lock... [2025-01-18 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:18:05 [end_date_ymd] => 2025-01-18 01:18:05 [RateCDR] => 1 ) [2025-01-18 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:18:05' and `end` < '2025-01-18 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:18:17] Production.INFO: count ==377 [2025-01-18 01:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:18:05 - End Time 2025-01-18 01:18:05 [2025-01-18 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272218', 'tblTempUsageDetail_20' ) start [2025-01-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272218', 'tblTempUsageDetail_20' ) end [2025-01-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272218', 'tblTempVendorCDR_20' ) start [2025-01-18 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272218', 'tblTempVendorCDR_20' ) end [2025-01-18 01:18:17] Production.INFO: ProcessCDR(1,14272218,1,1,2) [2025-01-18 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272218', 'tblTempUsageDetail_20' ) start [2025-01-18 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272218', 'tblTempUsageDetail_20' ) end [2025-01-18 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:18:21] Production.INFO: ==2068== Releasing lock... [2025-01-18 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:19:06 [end_date_ymd] => 2025-01-18 01:19:06 [RateCDR] => 1 ) [2025-01-18 01:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:19:06' and `end` < '2025-01-18 01:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:19:19] Production.INFO: count ==373 [2025-01-18 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:19:06 - End Time 2025-01-18 01:19:06 [2025-01-18 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272223', 'tblTempUsageDetail_20' ) start [2025-01-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272223', 'tblTempUsageDetail_20' ) end [2025-01-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272223', 'tblTempVendorCDR_20' ) start [2025-01-18 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272223', 'tblTempVendorCDR_20' ) end [2025-01-18 01:19:19] Production.INFO: ProcessCDR(1,14272223,1,1,2) [2025-01-18 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272223', 'tblTempUsageDetail_20' ) start [2025-01-18 01:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272223', 'tblTempUsageDetail_20' ) end [2025-01-18 01:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:19:23] Production.INFO: ==2172== Releasing lock... [2025-01-18 01:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:19:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:20:05 [end_date_ymd] => 2025-01-18 01:20:05 [RateCDR] => 1 ) [2025-01-18 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:20:05' and `end` < '2025-01-18 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:20:18] Production.INFO: count ==377 [2025-01-18 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:20:05 - End Time 2025-01-18 01:20:05 [2025-01-18 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272229', 'tblTempUsageDetail_20' ) start [2025-01-18 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272229', 'tblTempUsageDetail_20' ) end [2025-01-18 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272229', 'tblTempVendorCDR_20' ) start [2025-01-18 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272229', 'tblTempVendorCDR_20' ) end [2025-01-18 01:20:18] Production.INFO: ProcessCDR(1,14272229,1,1,2) [2025-01-18 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272229', 'tblTempUsageDetail_20' ) start [2025-01-18 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272229', 'tblTempUsageDetail_20' ) end [2025-01-18 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:20:21] Production.INFO: ==2281== Releasing lock... [2025-01-18 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:21:06 [end_date_ymd] => 2025-01-18 01:21:06 [RateCDR] => 1 ) [2025-01-18 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:21:06' and `end` < '2025-01-18 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:21:18] Production.INFO: count ==388 [2025-01-18 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:21:06 - End Time 2025-01-18 01:21:06 [2025-01-18 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272234', 'tblTempUsageDetail_20' ) start [2025-01-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272234', 'tblTempUsageDetail_20' ) end [2025-01-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272234', 'tblTempVendorCDR_20' ) start [2025-01-18 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272234', 'tblTempVendorCDR_20' ) end [2025-01-18 01:21:18] Production.INFO: ProcessCDR(1,14272234,1,1,2) [2025-01-18 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272234', 'tblTempUsageDetail_20' ) start [2025-01-18 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272234', 'tblTempUsageDetail_20' ) end [2025-01-18 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:21:21] Production.INFO: ==2389== Releasing lock... [2025-01-18 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:21:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:22:05 [end_date_ymd] => 2025-01-18 01:22:05 [RateCDR] => 1 ) [2025-01-18 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:22:05' and `end` < '2025-01-18 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:22:18] Production.INFO: count ==386 [2025-01-18 01:22:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:22:05 - End Time 2025-01-18 01:22:05 [2025-01-18 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272239', 'tblTempUsageDetail_20' ) start [2025-01-18 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272239', 'tblTempUsageDetail_20' ) end [2025-01-18 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272239', 'tblTempVendorCDR_20' ) start [2025-01-18 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272239', 'tblTempVendorCDR_20' ) end [2025-01-18 01:22:19] Production.INFO: ProcessCDR(1,14272239,1,1,2) [2025-01-18 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272239', 'tblTempUsageDetail_20' ) start [2025-01-18 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272239', 'tblTempUsageDetail_20' ) end [2025-01-18 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:22:22] Production.INFO: ==2497== Releasing lock... [2025-01-18 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:22:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:23:05 [end_date_ymd] => 2025-01-18 01:23:05 [RateCDR] => 1 ) [2025-01-18 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:23:05' and `end` < '2025-01-18 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:23:18] Production.INFO: count ==381 [2025-01-18 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:23:05 - End Time 2025-01-18 01:23:05 [2025-01-18 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272244', 'tblTempUsageDetail_20' ) start [2025-01-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272244', 'tblTempUsageDetail_20' ) end [2025-01-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272244', 'tblTempVendorCDR_20' ) start [2025-01-18 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272244', 'tblTempVendorCDR_20' ) end [2025-01-18 01:23:18] Production.INFO: ProcessCDR(1,14272244,1,1,2) [2025-01-18 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272244', 'tblTempUsageDetail_20' ) start [2025-01-18 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272244', 'tblTempUsageDetail_20' ) end [2025-01-18 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:23:22] Production.INFO: ==2640== Releasing lock... [2025-01-18 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:24:05 [end_date_ymd] => 2025-01-18 01:24:05 [RateCDR] => 1 ) [2025-01-18 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:24:05' and `end` < '2025-01-18 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:24:19] Production.INFO: count ==380 [2025-01-18 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:24:05 - End Time 2025-01-18 01:24:05 [2025-01-18 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272249', 'tblTempUsageDetail_20' ) start [2025-01-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272249', 'tblTempUsageDetail_20' ) end [2025-01-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272249', 'tblTempVendorCDR_20' ) start [2025-01-18 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272249', 'tblTempVendorCDR_20' ) end [2025-01-18 01:24:19] Production.INFO: ProcessCDR(1,14272249,1,1,2) [2025-01-18 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272249', 'tblTempUsageDetail_20' ) start [2025-01-18 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272249', 'tblTempUsageDetail_20' ) end [2025-01-18 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:24:22] Production.INFO: ==2749== Releasing lock... [2025-01-18 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:24:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:25:05 [end_date_ymd] => 2025-01-18 01:25:05 [RateCDR] => 1 ) [2025-01-18 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:25:05' and `end` < '2025-01-18 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:25:17] Production.INFO: count ==380 [2025-01-18 01:25:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:25:05 - End Time 2025-01-18 01:25:05 [2025-01-18 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272254', 'tblTempUsageDetail_20' ) start [2025-01-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272254', 'tblTempUsageDetail_20' ) end [2025-01-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272254', 'tblTempVendorCDR_20' ) start [2025-01-18 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272254', 'tblTempVendorCDR_20' ) end [2025-01-18 01:25:17] Production.INFO: ProcessCDR(1,14272254,1,1,2) [2025-01-18 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272254', 'tblTempUsageDetail_20' ) start [2025-01-18 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272254', 'tblTempUsageDetail_20' ) end [2025-01-18 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:25:21] Production.INFO: ==2851== Releasing lock... [2025-01-18 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:26:06 [end_date_ymd] => 2025-01-18 01:26:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:26:06' and `end` < '2025-01-18 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-01-18 01:26:18] Production.INFO: count ==377 [2025-01-18 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:26:06 - End Time 2025-01-18 01:26:06 [2025-01-18 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272259', 'tblTempUsageDetail_20' ) start [2025-01-18 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272259', 'tblTempUsageDetail_20' ) end [2025-01-18 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272259', 'tblTempVendorCDR_20' ) start [2025-01-18 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272259', 'tblTempVendorCDR_20' ) end [2025-01-18 01:26:18] Production.INFO: ProcessCDR(1,14272259,1,1,2) [2025-01-18 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272259', 'tblTempUsageDetail_20' ) start [2025-01-18 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272259', 'tblTempUsageDetail_20' ) end [2025-01-18 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:26:22] Production.INFO: ==2957== Releasing lock... [2025-01-18 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:26:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:27:05 [end_date_ymd] => 2025-01-18 01:27:05 [RateCDR] => 1 ) [2025-01-18 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:27:05' and `end` < '2025-01-18 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:27:19] Production.INFO: count ==377 [2025-01-18 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:27:05 - End Time 2025-01-18 01:27:05 [2025-01-18 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272264', 'tblTempUsageDetail_20' ) start [2025-01-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272264', 'tblTempUsageDetail_20' ) end [2025-01-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272264', 'tblTempVendorCDR_20' ) start [2025-01-18 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272264', 'tblTempVendorCDR_20' ) end [2025-01-18 01:27:19] Production.INFO: ProcessCDR(1,14272264,1,1,2) [2025-01-18 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272264', 'tblTempUsageDetail_20' ) start [2025-01-18 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272264', 'tblTempUsageDetail_20' ) end [2025-01-18 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:27:22] Production.INFO: ==3062== Releasing lock... [2025-01-18 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:27:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:28:05 [end_date_ymd] => 2025-01-18 01:28:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:28:05' and `end` < '2025-01-18 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-01-18 01:28:18] Production.INFO: count ==376 [2025-01-18 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:28:05 - End Time 2025-01-18 01:28:05 [2025-01-18 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272269', 'tblTempUsageDetail_20' ) start [2025-01-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272269', 'tblTempUsageDetail_20' ) end [2025-01-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272269', 'tblTempVendorCDR_20' ) start [2025-01-18 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272269', 'tblTempVendorCDR_20' ) end [2025-01-18 01:28:18] Production.INFO: ProcessCDR(1,14272269,1,1,2) [2025-01-18 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272269', 'tblTempUsageDetail_20' ) start [2025-01-18 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272269', 'tblTempUsageDetail_20' ) end [2025-01-18 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:28:21] Production.INFO: ==3168== Releasing lock... [2025-01-18 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:28:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:29:05 [end_date_ymd] => 2025-01-18 01:29:05 [RateCDR] => 1 ) [2025-01-18 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:29:05' and `end` < '2025-01-18 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:29:17] Production.INFO: count ==371 [2025-01-18 01:29:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:29:05 - End Time 2025-01-18 01:29:05 [2025-01-18 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272274', 'tblTempUsageDetail_20' ) start [2025-01-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272274', 'tblTempUsageDetail_20' ) end [2025-01-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272274', 'tblTempVendorCDR_20' ) start [2025-01-18 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272274', 'tblTempVendorCDR_20' ) end [2025-01-18 01:29:17] Production.INFO: ProcessCDR(1,14272274,1,1,2) [2025-01-18 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272274', 'tblTempUsageDetail_20' ) start [2025-01-18 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272274', 'tblTempUsageDetail_20' ) end [2025-01-18 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:29:21] Production.INFO: ==3273== Releasing lock... [2025-01-18 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:30:05 [end_date_ymd] => 2025-01-18 01:30:05 [RateCDR] => 1 ) [2025-01-18 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:30:05' and `end` < '2025-01-18 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:30:17] Production.INFO: count ==375 [2025-01-18 01:30:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:30:05 - End Time 2025-01-18 01:30:05 [2025-01-18 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272277', 'tblTempUsageDetail_20' ) start [2025-01-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272277', 'tblTempUsageDetail_20' ) end [2025-01-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272277', 'tblTempVendorCDR_20' ) start [2025-01-18 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272277', 'tblTempVendorCDR_20' ) end [2025-01-18 01:30:18] Production.INFO: ProcessCDR(1,14272277,1,1,2) [2025-01-18 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272277', 'tblTempUsageDetail_20' ) start [2025-01-18 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272277', 'tblTempUsageDetail_20' ) end [2025-01-18 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:30:21] Production.INFO: ==3379== Releasing lock... [2025-01-18 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:31:06 [end_date_ymd] => 2025-01-18 01:31:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:31:06' and `end` < '2025-01-18 01:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:31:19] Production.INFO: count ==385 [2025-01-18 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:31:06 - End Time 2025-01-18 01:31:06 [2025-01-18 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272285', 'tblTempUsageDetail_20' ) start [2025-01-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272285', 'tblTempUsageDetail_20' ) end [2025-01-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272285', 'tblTempVendorCDR_20' ) start [2025-01-18 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272285', 'tblTempVendorCDR_20' ) end [2025-01-18 01:31:19] Production.INFO: ProcessCDR(1,14272285,1,1,2) [2025-01-18 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272285', 'tblTempUsageDetail_20' ) start [2025-01-18 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272285', 'tblTempUsageDetail_20' ) end [2025-01-18 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:31:22] Production.INFO: ==3481== Releasing lock... [2025-01-18 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:32:05 [end_date_ymd] => 2025-01-18 01:32:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:32:05' and `end` < '2025-01-18 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-01-18 01:32:17] Production.INFO: count ==386 [2025-01-18 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:32:05 - End Time 2025-01-18 01:32:05 [2025-01-18 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272290', 'tblTempUsageDetail_20' ) start [2025-01-18 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272290', 'tblTempUsageDetail_20' ) end [2025-01-18 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272290', 'tblTempVendorCDR_20' ) start [2025-01-18 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272290', 'tblTempVendorCDR_20' ) end [2025-01-18 01:32:17] Production.INFO: ProcessCDR(1,14272290,1,1,2) [2025-01-18 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272290', 'tblTempUsageDetail_20' ) start [2025-01-18 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272290', 'tblTempUsageDetail_20' ) end [2025-01-18 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:32:21] Production.INFO: ==3586== Releasing lock... [2025-01-18 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:33:06 [end_date_ymd] => 2025-01-18 01:33:06 [RateCDR] => 1 ) [2025-01-18 01:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:33:06' and `end` < '2025-01-18 01:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:33:18] Production.INFO: count ==386 [2025-01-18 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:33:06 - End Time 2025-01-18 01:33:06 [2025-01-18 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272295', 'tblTempUsageDetail_20' ) start [2025-01-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272295', 'tblTempUsageDetail_20' ) end [2025-01-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272295', 'tblTempVendorCDR_20' ) start [2025-01-18 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272295', 'tblTempVendorCDR_20' ) end [2025-01-18 01:33:18] Production.INFO: ProcessCDR(1,14272295,1,1,2) [2025-01-18 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272295', 'tblTempUsageDetail_20' ) start [2025-01-18 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272295', 'tblTempUsageDetail_20' ) end [2025-01-18 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:33:21] Production.INFO: ==3687== Releasing lock... [2025-01-18 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:34:06 [end_date_ymd] => 2025-01-18 01:34:06 [RateCDR] => 1 ) [2025-01-18 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:34:06' and `end` < '2025-01-18 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:34:19] Production.INFO: count ==386 [2025-01-18 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:34:06 - End Time 2025-01-18 01:34:06 [2025-01-18 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272300', 'tblTempUsageDetail_20' ) start [2025-01-18 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272300', 'tblTempUsageDetail_20' ) end [2025-01-18 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272300', 'tblTempVendorCDR_20' ) start [2025-01-18 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272300', 'tblTempVendorCDR_20' ) end [2025-01-18 01:34:19] Production.INFO: ProcessCDR(1,14272300,1,1,2) [2025-01-18 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272300', 'tblTempUsageDetail_20' ) start [2025-01-18 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272300', 'tblTempUsageDetail_20' ) end [2025-01-18 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:34:23] Production.INFO: ==3793== Releasing lock... [2025-01-18 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:34:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:35:05 [end_date_ymd] => 2025-01-18 01:35:05 [RateCDR] => 1 ) [2025-01-18 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:35:05' and `end` < '2025-01-18 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:35:18] Production.INFO: count ==385 [2025-01-18 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:35:05 - End Time 2025-01-18 01:35:05 [2025-01-18 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272305', 'tblTempUsageDetail_20' ) start [2025-01-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272305', 'tblTempUsageDetail_20' ) end [2025-01-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272305', 'tblTempVendorCDR_20' ) start [2025-01-18 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272305', 'tblTempVendorCDR_20' ) end [2025-01-18 01:35:18] Production.INFO: ProcessCDR(1,14272305,1,1,2) [2025-01-18 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272305', 'tblTempUsageDetail_20' ) start [2025-01-18 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272305', 'tblTempUsageDetail_20' ) end [2025-01-18 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:35:21] Production.INFO: ==3896== Releasing lock... [2025-01-18 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:36:06 [end_date_ymd] => 2025-01-18 01:36:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:36:06' and `end` < '2025-01-18 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-01-18 01:36:18] Production.INFO: count ==385 [2025-01-18 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:36:06 - End Time 2025-01-18 01:36:06 [2025-01-18 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272310', 'tblTempUsageDetail_20' ) start [2025-01-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272310', 'tblTempUsageDetail_20' ) end [2025-01-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272310', 'tblTempVendorCDR_20' ) start [2025-01-18 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272310', 'tblTempVendorCDR_20' ) end [2025-01-18 01:36:18] Production.INFO: ProcessCDR(1,14272310,1,1,2) [2025-01-18 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272310', 'tblTempUsageDetail_20' ) start [2025-01-18 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272310', 'tblTempUsageDetail_20' ) end [2025-01-18 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:36:22] Production.INFO: ==4000== Releasing lock... [2025-01-18 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:37:05 [end_date_ymd] => 2025-01-18 01:37:05 [RateCDR] => 1 ) [2025-01-18 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:37:05' and `end` < '2025-01-18 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:37:17] Production.INFO: count ==385 [2025-01-18 01:37:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:37:05 - End Time 2025-01-18 01:37:05 [2025-01-18 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272315', 'tblTempUsageDetail_20' ) start [2025-01-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272315', 'tblTempUsageDetail_20' ) end [2025-01-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272315', 'tblTempVendorCDR_20' ) start [2025-01-18 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272315', 'tblTempVendorCDR_20' ) end [2025-01-18 01:37:17] Production.INFO: ProcessCDR(1,14272315,1,1,2) [2025-01-18 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272315', 'tblTempUsageDetail_20' ) start [2025-01-18 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272315', 'tblTempUsageDetail_20' ) end [2025-01-18 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:37:21] Production.INFO: ==4097== Releasing lock... [2025-01-18 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:38:06 [end_date_ymd] => 2025-01-18 01:38:06 [RateCDR] => 1 ) [2025-01-18 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:38:06' and `end` < '2025-01-18 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:38:18] Production.INFO: count ==385 [2025-01-18 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:38:06 - End Time 2025-01-18 01:38:06 [2025-01-18 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272320', 'tblTempUsageDetail_20' ) start [2025-01-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272320', 'tblTempUsageDetail_20' ) end [2025-01-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272320', 'tblTempVendorCDR_20' ) start [2025-01-18 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272320', 'tblTempVendorCDR_20' ) end [2025-01-18 01:38:18] Production.INFO: ProcessCDR(1,14272320,1,1,2) [2025-01-18 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272320', 'tblTempUsageDetail_20' ) start [2025-01-18 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272320', 'tblTempUsageDetail_20' ) end [2025-01-18 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:38:22] Production.INFO: ==4209== Releasing lock... [2025-01-18 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:39:05 [end_date_ymd] => 2025-01-18 01:39:05 [RateCDR] => 1 ) [2025-01-18 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:39:05' and `end` < '2025-01-18 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:39:19] Production.INFO: count ==383 [2025-01-18 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:39:05 - End Time 2025-01-18 01:39:05 [2025-01-18 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272325', 'tblTempUsageDetail_20' ) start [2025-01-18 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272325', 'tblTempUsageDetail_20' ) end [2025-01-18 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272325', 'tblTempVendorCDR_20' ) start [2025-01-18 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272325', 'tblTempVendorCDR_20' ) end [2025-01-18 01:39:19] Production.INFO: ProcessCDR(1,14272325,1,1,2) [2025-01-18 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272325', 'tblTempUsageDetail_20' ) start [2025-01-18 01:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272325', 'tblTempUsageDetail_20' ) end [2025-01-18 01:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:39:24] Production.INFO: ==4354== Releasing lock... [2025-01-18 01:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:39:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:40:06 [end_date_ymd] => 2025-01-18 01:40:06 [RateCDR] => 1 ) [2025-01-18 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:40:06' and `end` < '2025-01-18 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:40:19] Production.INFO: count ==390 [2025-01-18 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:40:06 - End Time 2025-01-18 01:40:06 [2025-01-18 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272330', 'tblTempUsageDetail_20' ) start [2025-01-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272330', 'tblTempUsageDetail_20' ) end [2025-01-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272330', 'tblTempVendorCDR_20' ) start [2025-01-18 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272330', 'tblTempVendorCDR_20' ) end [2025-01-18 01:40:19] Production.INFO: ProcessCDR(1,14272330,1,1,2) [2025-01-18 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272330', 'tblTempUsageDetail_20' ) start [2025-01-18 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272330', 'tblTempUsageDetail_20' ) end [2025-01-18 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:40:23] Production.INFO: ==4463== Releasing lock... [2025-01-18 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:40:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:41:05 [end_date_ymd] => 2025-01-18 01:41:05 [RateCDR] => 1 ) [2025-01-18 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:41:05' and `end` < '2025-01-18 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:41:18] Production.INFO: count ==406 [2025-01-18 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:41:05 - End Time 2025-01-18 01:41:05 [2025-01-18 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272336', 'tblTempUsageDetail_20' ) start [2025-01-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272336', 'tblTempUsageDetail_20' ) end [2025-01-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272336', 'tblTempVendorCDR_20' ) start [2025-01-18 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272336', 'tblTempVendorCDR_20' ) end [2025-01-18 01:41:18] Production.INFO: ProcessCDR(1,14272336,1,1,2) [2025-01-18 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272336', 'tblTempUsageDetail_20' ) start [2025-01-18 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272336', 'tblTempUsageDetail_20' ) end [2025-01-18 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:41:22] Production.INFO: ==4568== Releasing lock... [2025-01-18 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:42:05 [end_date_ymd] => 2025-01-18 01:42:05 [RateCDR] => 1 ) [2025-01-18 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:42:05' and `end` < '2025-01-18 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:42:18] Production.INFO: count ==406 [2025-01-18 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:42:05 - End Time 2025-01-18 01:42:05 [2025-01-18 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272341', 'tblTempUsageDetail_20' ) start [2025-01-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272341', 'tblTempUsageDetail_20' ) end [2025-01-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272341', 'tblTempVendorCDR_20' ) start [2025-01-18 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272341', 'tblTempVendorCDR_20' ) end [2025-01-18 01:42:18] Production.INFO: ProcessCDR(1,14272341,1,1,2) [2025-01-18 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272341', 'tblTempUsageDetail_20' ) start [2025-01-18 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272341', 'tblTempUsageDetail_20' ) end [2025-01-18 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:42:22] Production.INFO: ==4678== Releasing lock... [2025-01-18 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:43:06 [end_date_ymd] => 2025-01-18 01:43:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:43:06' and `end` < '2025-01-18 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-01-18 01:43:21] Production.INFO: count ==419 [2025-01-18 01:43:21] Production.ERROR: pbx CDR StartTime 2025-01-17 22:43:06 - End Time 2025-01-18 01:43:06 [2025-01-18 01:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272346', 'tblTempUsageDetail_20' ) start [2025-01-18 01:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272346', 'tblTempUsageDetail_20' ) end [2025-01-18 01:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272346', 'tblTempVendorCDR_20' ) start [2025-01-18 01:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272346', 'tblTempVendorCDR_20' ) end [2025-01-18 01:43:22] Production.INFO: ProcessCDR(1,14272346,1,1,2) [2025-01-18 01:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272346', 'tblTempUsageDetail_20' ) start [2025-01-18 01:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272346', 'tblTempUsageDetail_20' ) end [2025-01-18 01:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:43:25] Production.INFO: ==4783== Releasing lock... [2025-01-18 01:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:43:25] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:44:06 [end_date_ymd] => 2025-01-18 01:44:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:44:06' and `end` < '2025-01-18 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-01-18 01:44:18] Production.INFO: count ==422 [2025-01-18 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:44:06 - End Time 2025-01-18 01:44:06 [2025-01-18 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272351', 'tblTempUsageDetail_20' ) start [2025-01-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272351', 'tblTempUsageDetail_20' ) end [2025-01-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272351', 'tblTempVendorCDR_20' ) start [2025-01-18 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272351', 'tblTempVendorCDR_20' ) end [2025-01-18 01:44:18] Production.INFO: ProcessCDR(1,14272351,1,1,2) [2025-01-18 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272351', 'tblTempUsageDetail_20' ) start [2025-01-18 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272351', 'tblTempUsageDetail_20' ) end [2025-01-18 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:44:22] Production.INFO: ==4890== Releasing lock... [2025-01-18 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:44:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:45:05 [end_date_ymd] => 2025-01-18 01:45:05 [RateCDR] => 1 ) [2025-01-18 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:45:05' and `end` < '2025-01-18 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:45:17] Production.INFO: count ==424 [2025-01-18 01:45:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:45:05 - End Time 2025-01-18 01:45:05 [2025-01-18 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272356', 'tblTempUsageDetail_20' ) start [2025-01-18 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272356', 'tblTempUsageDetail_20' ) end [2025-01-18 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272356', 'tblTempVendorCDR_20' ) start [2025-01-18 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272356', 'tblTempVendorCDR_20' ) end [2025-01-18 01:45:17] Production.INFO: ProcessCDR(1,14272356,1,1,2) [2025-01-18 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272356', 'tblTempUsageDetail_20' ) start [2025-01-18 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272356', 'tblTempUsageDetail_20' ) end [2025-01-18 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:45:21] Production.INFO: ==4992== Releasing lock... [2025-01-18 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:45:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:46:06 [end_date_ymd] => 2025-01-18 01:46:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:46:06' and `end` < '2025-01-18 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-01-18 01:46:19] Production.INFO: count ==424 [2025-01-18 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:46:06 - End Time 2025-01-18 01:46:06 [2025-01-18 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272361', 'tblTempUsageDetail_20' ) start [2025-01-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272361', 'tblTempUsageDetail_20' ) end [2025-01-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272361', 'tblTempVendorCDR_20' ) start [2025-01-18 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272361', 'tblTempVendorCDR_20' ) end [2025-01-18 01:46:19] Production.INFO: ProcessCDR(1,14272361,1,1,2) [2025-01-18 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272361', 'tblTempUsageDetail_20' ) start [2025-01-18 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272361', 'tblTempUsageDetail_20' ) end [2025-01-18 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:46:23] Production.INFO: ==5096== Releasing lock... [2025-01-18 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:46:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:47:05 [end_date_ymd] => 2025-01-18 01:47:05 [RateCDR] => 1 ) [2025-01-18 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:47:05' and `end` < '2025-01-18 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:47:18] Production.INFO: count ==423 [2025-01-18 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:47:05 - End Time 2025-01-18 01:47:05 [2025-01-18 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272366', 'tblTempUsageDetail_20' ) start [2025-01-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272366', 'tblTempUsageDetail_20' ) end [2025-01-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272366', 'tblTempVendorCDR_20' ) start [2025-01-18 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272366', 'tblTempVendorCDR_20' ) end [2025-01-18 01:47:18] Production.INFO: ProcessCDR(1,14272366,1,1,2) [2025-01-18 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272366', 'tblTempUsageDetail_20' ) start [2025-01-18 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272366', 'tblTempUsageDetail_20' ) end [2025-01-18 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:47:22] Production.INFO: ==5203== Releasing lock... [2025-01-18 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:47:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:48:06 [end_date_ymd] => 2025-01-18 01:48:06 [RateCDR] => 1 ) [2025-01-18 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:48:06' and `end` < '2025-01-18 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:48:19] Production.INFO: count ==423 [2025-01-18 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:48:06 - End Time 2025-01-18 01:48:06 [2025-01-18 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272371', 'tblTempUsageDetail_20' ) start [2025-01-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272371', 'tblTempUsageDetail_20' ) end [2025-01-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272371', 'tblTempVendorCDR_20' ) start [2025-01-18 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272371', 'tblTempVendorCDR_20' ) end [2025-01-18 01:48:19] Production.INFO: ProcessCDR(1,14272371,1,1,2) [2025-01-18 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272371', 'tblTempUsageDetail_20' ) start [2025-01-18 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272371', 'tblTempUsageDetail_20' ) end [2025-01-18 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:48:22] Production.INFO: ==5308== Releasing lock... [2025-01-18 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:48:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:49:05 [end_date_ymd] => 2025-01-18 01:49:05 [RateCDR] => 1 ) [2025-01-18 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:49:05' and `end` < '2025-01-18 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:49:19] Production.INFO: count ==425 [2025-01-18 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:49:05 - End Time 2025-01-18 01:49:05 [2025-01-18 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272376', 'tblTempUsageDetail_20' ) start [2025-01-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272376', 'tblTempUsageDetail_20' ) end [2025-01-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272376', 'tblTempVendorCDR_20' ) start [2025-01-18 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272376', 'tblTempVendorCDR_20' ) end [2025-01-18 01:49:19] Production.INFO: ProcessCDR(1,14272376,1,1,2) [2025-01-18 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272376', 'tblTempUsageDetail_20' ) start [2025-01-18 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272376', 'tblTempUsageDetail_20' ) end [2025-01-18 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:49:23] Production.INFO: ==5410== Releasing lock... [2025-01-18 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:49:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:50:07 [end_date_ymd] => 2025-01-18 01:50:07 [RateCDR] => 1 ) [2025-01-18 01: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-01-17 22:50:07' and `end` < '2025-01-18 01: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-01-18 01:50:19] Production.INFO: count ==435 [2025-01-18 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:50:07 - End Time 2025-01-18 01:50:07 [2025-01-18 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272382', 'tblTempUsageDetail_20' ) start [2025-01-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272382', 'tblTempUsageDetail_20' ) end [2025-01-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272382', 'tblTempVendorCDR_20' ) start [2025-01-18 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272382', 'tblTempVendorCDR_20' ) end [2025-01-18 01:50:19] Production.INFO: ProcessCDR(1,14272382,1,1,2) [2025-01-18 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272382', 'tblTempUsageDetail_20' ) start [2025-01-18 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272382', 'tblTempUsageDetail_20' ) end [2025-01-18 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:50:23] Production.INFO: ==5516== Releasing lock... [2025-01-18 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:50:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:51:05 [end_date_ymd] => 2025-01-18 01:51:05 [RateCDR] => 1 ) [2025-01-18 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:51:05' and `end` < '2025-01-18 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:51:18] Production.INFO: count ==453 [2025-01-18 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:51:05 - End Time 2025-01-18 01:51:05 [2025-01-18 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272387', 'tblTempUsageDetail_20' ) start [2025-01-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272387', 'tblTempUsageDetail_20' ) end [2025-01-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272387', 'tblTempVendorCDR_20' ) start [2025-01-18 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272387', 'tblTempVendorCDR_20' ) end [2025-01-18 01:51:18] Production.INFO: ProcessCDR(1,14272387,1,1,2) [2025-01-18 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272387', 'tblTempUsageDetail_20' ) start [2025-01-18 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272387', 'tblTempUsageDetail_20' ) end [2025-01-18 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:51:22] Production.INFO: ==5619== Releasing lock... [2025-01-18 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:52:06 [end_date_ymd] => 2025-01-18 01:52:06 [RateCDR] => 1 ) [2025-01-18 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:52:06' and `end` < '2025-01-18 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:52:19] Production.INFO: count ==456 [2025-01-18 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:52:06 - End Time 2025-01-18 01:52:06 [2025-01-18 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272392', 'tblTempUsageDetail_20' ) start [2025-01-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272392', 'tblTempUsageDetail_20' ) end [2025-01-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272392', 'tblTempVendorCDR_20' ) start [2025-01-18 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272392', 'tblTempVendorCDR_20' ) end [2025-01-18 01:52:19] Production.INFO: ProcessCDR(1,14272392,1,1,2) [2025-01-18 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272392', 'tblTempUsageDetail_20' ) start [2025-01-18 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272392', 'tblTempUsageDetail_20' ) end [2025-01-18 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:52:23] Production.INFO: ==5727== Releasing lock... [2025-01-18 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:52:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:53:05 [end_date_ymd] => 2025-01-18 01:53:05 [RateCDR] => 1 ) [2025-01-18 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:53:05' and `end` < '2025-01-18 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:53:17] Production.INFO: count ==448 [2025-01-18 01:53:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:53:05 - End Time 2025-01-18 01:53:05 [2025-01-18 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272397', 'tblTempUsageDetail_20' ) start [2025-01-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272397', 'tblTempUsageDetail_20' ) end [2025-01-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272397', 'tblTempVendorCDR_20' ) start [2025-01-18 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272397', 'tblTempVendorCDR_20' ) end [2025-01-18 01:53:17] Production.INFO: ProcessCDR(1,14272397,1,1,2) [2025-01-18 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272397', 'tblTempUsageDetail_20' ) start [2025-01-18 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272397', 'tblTempUsageDetail_20' ) end [2025-01-18 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:53:21] Production.INFO: ==5835== Releasing lock... [2025-01-18 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:53:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:54:05 [end_date_ymd] => 2025-01-18 01:54:05 [RateCDR] => 1 ) [2025-01-18 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:54:05' and `end` < '2025-01-18 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:54:18] Production.INFO: count ==450 [2025-01-18 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:54:05 - End Time 2025-01-18 01:54:05 [2025-01-18 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272402', 'tblTempUsageDetail_20' ) start [2025-01-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272402', 'tblTempUsageDetail_20' ) end [2025-01-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272402', 'tblTempVendorCDR_20' ) start [2025-01-18 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272402', 'tblTempVendorCDR_20' ) end [2025-01-18 01:54:18] Production.INFO: ProcessCDR(1,14272402,1,1,2) [2025-01-18 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272402', 'tblTempUsageDetail_20' ) start [2025-01-18 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272402', 'tblTempUsageDetail_20' ) end [2025-01-18 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:54:22] Production.INFO: ==5942== Releasing lock... [2025-01-18 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:54:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:55:05 [end_date_ymd] => 2025-01-18 01:55:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:55:05' and `end` < '2025-01-18 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-01-18 01:55:17] Production.INFO: count ==451 [2025-01-18 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:55:05 - End Time 2025-01-18 01:55:05 [2025-01-18 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272407', 'tblTempUsageDetail_20' ) start [2025-01-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272407', 'tblTempUsageDetail_20' ) end [2025-01-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272407', 'tblTempVendorCDR_20' ) start [2025-01-18 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272407', 'tblTempVendorCDR_20' ) end [2025-01-18 01:55:18] Production.INFO: ProcessCDR(1,14272407,1,1,2) [2025-01-18 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272407', 'tblTempUsageDetail_20' ) start [2025-01-18 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272407', 'tblTempUsageDetail_20' ) end [2025-01-18 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:55:22] Production.INFO: ==6082== Releasing lock... [2025-01-18 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:56:05 [end_date_ymd] => 2025-01-18 01:56:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 22:56:05' and `end` < '2025-01-18 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-01-18 01:56:18] Production.INFO: count ==450 [2025-01-18 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:56:05 - End Time 2025-01-18 01:56:05 [2025-01-18 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272412', 'tblTempUsageDetail_20' ) start [2025-01-18 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272412', 'tblTempUsageDetail_20' ) end [2025-01-18 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272412', 'tblTempVendorCDR_20' ) start [2025-01-18 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272412', 'tblTempVendorCDR_20' ) end [2025-01-18 01:56:18] Production.INFO: ProcessCDR(1,14272412,1,1,2) [2025-01-18 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272412', 'tblTempUsageDetail_20' ) start [2025-01-18 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272412', 'tblTempUsageDetail_20' ) end [2025-01-18 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:56:22] Production.INFO: ==6184== Releasing lock... [2025-01-18 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:56:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:57:06 [end_date_ymd] => 2025-01-18 01:57:06 [RateCDR] => 1 ) [2025-01-18 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:57:06' and `end` < '2025-01-18 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:57:18] Production.INFO: count ==450 [2025-01-18 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-17 22:57:06 - End Time 2025-01-18 01:57:06 [2025-01-18 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272417', 'tblTempUsageDetail_20' ) start [2025-01-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272417', 'tblTempUsageDetail_20' ) end [2025-01-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272417', 'tblTempVendorCDR_20' ) start [2025-01-18 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272417', 'tblTempVendorCDR_20' ) end [2025-01-18 01:57:18] Production.INFO: ProcessCDR(1,14272417,1,1,2) [2025-01-18 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272417', 'tblTempUsageDetail_20' ) start [2025-01-18 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272417', 'tblTempUsageDetail_20' ) end [2025-01-18 01:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:57:24] Production.INFO: ==6288== Releasing lock... [2025-01-18 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:57:24] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:58:06 [end_date_ymd] => 2025-01-18 01:58:06 [RateCDR] => 1 ) [2025-01-18 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:58:06' and `end` < '2025-01-18 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:58:19] Production.INFO: count ==458 [2025-01-18 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 22:58:06 - End Time 2025-01-18 01:58:06 [2025-01-18 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272422', 'tblTempUsageDetail_20' ) start [2025-01-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272422', 'tblTempUsageDetail_20' ) end [2025-01-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272422', 'tblTempVendorCDR_20' ) start [2025-01-18 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272422', 'tblTempVendorCDR_20' ) end [2025-01-18 01:58:19] Production.INFO: ProcessCDR(1,14272422,1,1,2) [2025-01-18 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272422', 'tblTempUsageDetail_20' ) start [2025-01-18 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272422', 'tblTempUsageDetail_20' ) end [2025-01-18 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:58:23] Production.INFO: ==6396== Releasing lock... [2025-01-18 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:58:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 22:59:05 [end_date_ymd] => 2025-01-18 01:59:05 [RateCDR] => 1 ) [2025-01-18 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 22:59:05' and `end` < '2025-01-18 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 01:59:17] Production.INFO: count ==461 [2025-01-18 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-17 22:59:05 - End Time 2025-01-18 01:59:05 [2025-01-18 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272427', 'tblTempUsageDetail_20' ) start [2025-01-18 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272427', 'tblTempUsageDetail_20' ) end [2025-01-18 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272427', 'tblTempVendorCDR_20' ) start [2025-01-18 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272427', 'tblTempVendorCDR_20' ) end [2025-01-18 01:59:17] Production.INFO: ProcessCDR(1,14272427,1,1,2) [2025-01-18 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272427', 'tblTempUsageDetail_20' ) start [2025-01-18 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272427', 'tblTempUsageDetail_20' ) end [2025-01-18 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 01:59:21] Production.INFO: ==6497== Releasing lock... [2025-01-18 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 01:59:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:00:07 [end_date_ymd] => 2025-01-18 02:00:07 [RateCDR] => 1 ) [2025-01-18 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:00:07' and `end` < '2025-01-18 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:00:19] Production.INFO: count ==475 [2025-01-18 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:00:07 - End Time 2025-01-18 02:00:07 [2025-01-18 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272433', 'tblTempUsageDetail_20' ) start [2025-01-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272433', 'tblTempUsageDetail_20' ) end [2025-01-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272433', 'tblTempVendorCDR_20' ) start [2025-01-18 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272433', 'tblTempVendorCDR_20' ) end [2025-01-18 02:00:19] Production.INFO: ProcessCDR(1,14272433,1,1,2) [2025-01-18 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272433', 'tblTempUsageDetail_20' ) start [2025-01-18 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272433', 'tblTempUsageDetail_20' ) end [2025-01-18 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:00:23] Production.INFO: ==6602== Releasing lock... [2025-01-18 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:01:05 [end_date_ymd] => 2025-01-18 02:01:05 [RateCDR] => 1 ) [2025-01-18 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:01:05' and `end` < '2025-01-18 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:01:19] Production.INFO: count ==512 [2025-01-18 02:01:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:01:05 - End Time 2025-01-18 02:01:05 [2025-01-18 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272438', 'tblTempUsageDetail_20' ) start [2025-01-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272438', 'tblTempUsageDetail_20' ) end [2025-01-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272438', 'tblTempVendorCDR_20' ) start [2025-01-18 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272438', 'tblTempVendorCDR_20' ) end [2025-01-18 02:01:19] Production.INFO: ProcessCDR(1,14272438,1,1,2) [2025-01-18 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272438', 'tblTempUsageDetail_20' ) start [2025-01-18 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272438', 'tblTempUsageDetail_20' ) end [2025-01-18 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:01:22] Production.INFO: ==6804== Releasing lock... [2025-01-18 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:02:06 [end_date_ymd] => 2025-01-18 02:02:06 [RateCDR] => 1 ) [2025-01-18 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:02:06' and `end` < '2025-01-18 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:02:18] Production.INFO: count ==515 [2025-01-18 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:02:06 - End Time 2025-01-18 02:02:06 [2025-01-18 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272443', 'tblTempUsageDetail_20' ) start [2025-01-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272443', 'tblTempUsageDetail_20' ) end [2025-01-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272443', 'tblTempVendorCDR_20' ) start [2025-01-18 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272443', 'tblTempVendorCDR_20' ) end [2025-01-18 02:02:19] Production.INFO: ProcessCDR(1,14272443,1,1,2) [2025-01-18 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272443', 'tblTempUsageDetail_20' ) start [2025-01-18 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272443', 'tblTempUsageDetail_20' ) end [2025-01-18 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:02:22] Production.INFO: ==6906== Releasing lock... [2025-01-18 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:03:05 [end_date_ymd] => 2025-01-18 02:03:05 [RateCDR] => 1 ) [2025-01-18 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:03:05' and `end` < '2025-01-18 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:03:18] Production.INFO: count ==510 [2025-01-18 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:03:05 - End Time 2025-01-18 02:03:05 [2025-01-18 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272448', 'tblTempUsageDetail_20' ) start [2025-01-18 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272448', 'tblTempUsageDetail_20' ) end [2025-01-18 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272448', 'tblTempVendorCDR_20' ) start [2025-01-18 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272448', 'tblTempVendorCDR_20' ) end [2025-01-18 02:03:19] Production.INFO: ProcessCDR(1,14272448,1,1,2) [2025-01-18 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272448', 'tblTempUsageDetail_20' ) start [2025-01-18 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272448', 'tblTempUsageDetail_20' ) end [2025-01-18 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:03:22] Production.INFO: ==7008== Releasing lock... [2025-01-18 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:04:05 [end_date_ymd] => 2025-01-18 02:04:05 [RateCDR] => 1 ) [2025-01-18 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:04:05' and `end` < '2025-01-18 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:04:19] Production.INFO: count ==509 [2025-01-18 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:04:05 - End Time 2025-01-18 02:04:05 [2025-01-18 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272453', 'tblTempUsageDetail_20' ) start [2025-01-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272453', 'tblTempUsageDetail_20' ) end [2025-01-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272453', 'tblTempVendorCDR_20' ) start [2025-01-18 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272453', 'tblTempVendorCDR_20' ) end [2025-01-18 02:04:19] Production.INFO: ProcessCDR(1,14272453,1,1,2) [2025-01-18 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272453', 'tblTempUsageDetail_20' ) start [2025-01-18 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272453', 'tblTempUsageDetail_20' ) end [2025-01-18 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:04:23] Production.INFO: ==7116== Releasing lock... [2025-01-18 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:04:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:05:05 [end_date_ymd] => 2025-01-18 02:05:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:05:05' and `end` < '2025-01-18 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-01-18 02:05:17] Production.INFO: count ==508 [2025-01-18 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:05:05 - End Time 2025-01-18 02:05:05 [2025-01-18 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272458', 'tblTempUsageDetail_20' ) start [2025-01-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272458', 'tblTempUsageDetail_20' ) end [2025-01-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272458', 'tblTempVendorCDR_20' ) start [2025-01-18 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272458', 'tblTempVendorCDR_20' ) end [2025-01-18 02:05:18] Production.INFO: ProcessCDR(1,14272458,1,1,2) [2025-01-18 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272458', 'tblTempUsageDetail_20' ) start [2025-01-18 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272458', 'tblTempUsageDetail_20' ) end [2025-01-18 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:05:21] Production.INFO: ==7219== Releasing lock... [2025-01-18 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:06:06 [end_date_ymd] => 2025-01-18 02:06:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:06:06' and `end` < '2025-01-18 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-01-18 02:06:18] Production.INFO: count ==504 [2025-01-18 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:06:06 - End Time 2025-01-18 02:06:06 [2025-01-18 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272463', 'tblTempUsageDetail_20' ) start [2025-01-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272463', 'tblTempUsageDetail_20' ) end [2025-01-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272463', 'tblTempVendorCDR_20' ) start [2025-01-18 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272463', 'tblTempVendorCDR_20' ) end [2025-01-18 02:06:18] Production.INFO: ProcessCDR(1,14272463,1,1,2) [2025-01-18 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272463', 'tblTempUsageDetail_20' ) start [2025-01-18 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272463', 'tblTempUsageDetail_20' ) end [2025-01-18 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:06:22] Production.INFO: ==7325== Releasing lock... [2025-01-18 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:07:05 [end_date_ymd] => 2025-01-18 02:07:05 [RateCDR] => 1 ) [2025-01-18 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:07:05' and `end` < '2025-01-18 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:07:18] Production.INFO: count ==503 [2025-01-18 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:07:05 - End Time 2025-01-18 02:07:05 [2025-01-18 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272468', 'tblTempUsageDetail_20' ) start [2025-01-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272468', 'tblTempUsageDetail_20' ) end [2025-01-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272468', 'tblTempVendorCDR_20' ) start [2025-01-18 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272468', 'tblTempVendorCDR_20' ) end [2025-01-18 02:07:18] Production.INFO: ProcessCDR(1,14272468,1,1,2) [2025-01-18 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272468', 'tblTempUsageDetail_20' ) start [2025-01-18 02:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272468', 'tblTempUsageDetail_20' ) end [2025-01-18 02:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:07:23] Production.INFO: ==7431== Releasing lock... [2025-01-18 02:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:07:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:08:05 [end_date_ymd] => 2025-01-18 02:08:05 [RateCDR] => 1 ) [2025-01-18 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:08:05' and `end` < '2025-01-18 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:08:18] Production.INFO: count ==501 [2025-01-18 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:08:05 - End Time 2025-01-18 02:08:05 [2025-01-18 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272473', 'tblTempUsageDetail_20' ) start [2025-01-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272473', 'tblTempUsageDetail_20' ) end [2025-01-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272473', 'tblTempVendorCDR_20' ) start [2025-01-18 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272473', 'tblTempVendorCDR_20' ) end [2025-01-18 02:08:18] Production.INFO: ProcessCDR(1,14272473,1,1,2) [2025-01-18 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272473', 'tblTempUsageDetail_20' ) start [2025-01-18 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272473', 'tblTempUsageDetail_20' ) end [2025-01-18 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:08:21] Production.INFO: ==7529== Releasing lock... [2025-01-18 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:09:05 [end_date_ymd] => 2025-01-18 02:09:05 [RateCDR] => 1 ) [2025-01-18 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:09:05' and `end` < '2025-01-18 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:09:18] Production.INFO: count ==502 [2025-01-18 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:09:05 - End Time 2025-01-18 02:09:05 [2025-01-18 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272478', 'tblTempUsageDetail_20' ) start [2025-01-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272478', 'tblTempUsageDetail_20' ) end [2025-01-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272478', 'tblTempVendorCDR_20' ) start [2025-01-18 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272478', 'tblTempVendorCDR_20' ) end [2025-01-18 02:09:18] Production.INFO: ProcessCDR(1,14272478,1,1,2) [2025-01-18 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272478', 'tblTempUsageDetail_20' ) start [2025-01-18 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272478', 'tblTempUsageDetail_20' ) end [2025-01-18 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:09:22] Production.INFO: ==7633== Releasing lock... [2025-01-18 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:09:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:10:06 [end_date_ymd] => 2025-01-18 02:10:06 [RateCDR] => 1 ) [2025-01-18 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:10:06' and `end` < '2025-01-18 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:10:18] Production.INFO: count ==511 [2025-01-18 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:10:06 - End Time 2025-01-18 02:10:06 [2025-01-18 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272484', 'tblTempUsageDetail_20' ) start [2025-01-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272484', 'tblTempUsageDetail_20' ) end [2025-01-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272484', 'tblTempVendorCDR_20' ) start [2025-01-18 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272484', 'tblTempVendorCDR_20' ) end [2025-01-18 02:10:18] Production.INFO: ProcessCDR(1,14272484,1,1,2) [2025-01-18 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272484', 'tblTempUsageDetail_20' ) start [2025-01-18 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272484', 'tblTempUsageDetail_20' ) end [2025-01-18 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:10:24] Production.INFO: ==7779== Releasing lock... [2025-01-18 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:10:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:11:05 [end_date_ymd] => 2025-01-18 02:11:05 [RateCDR] => 1 ) [2025-01-18 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:11:05' and `end` < '2025-01-18 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:11:18] Production.INFO: count ==526 [2025-01-18 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:11:05 - End Time 2025-01-18 02:11:05 [2025-01-18 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272489', 'tblTempUsageDetail_20' ) start [2025-01-18 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272489', 'tblTempUsageDetail_20' ) end [2025-01-18 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272489', 'tblTempVendorCDR_20' ) start [2025-01-18 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272489', 'tblTempVendorCDR_20' ) end [2025-01-18 02:11:18] Production.INFO: ProcessCDR(1,14272489,1,1,2) [2025-01-18 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272489', 'tblTempUsageDetail_20' ) start [2025-01-18 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272489', 'tblTempUsageDetail_20' ) end [2025-01-18 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:11:21] Production.INFO: ==7889== Releasing lock... [2025-01-18 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:12:05 [end_date_ymd] => 2025-01-18 02:12:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:12:05' and `end` < '2025-01-18 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-01-18 02:12:18] Production.INFO: count ==526 [2025-01-18 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:12:05 - End Time 2025-01-18 02:12:05 [2025-01-18 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272494', 'tblTempUsageDetail_20' ) start [2025-01-18 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272494', 'tblTempUsageDetail_20' ) end [2025-01-18 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272494', 'tblTempVendorCDR_20' ) start [2025-01-18 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272494', 'tblTempVendorCDR_20' ) end [2025-01-18 02:12:18] Production.INFO: ProcessCDR(1,14272494,1,1,2) [2025-01-18 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272494', 'tblTempUsageDetail_20' ) start [2025-01-18 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272494', 'tblTempUsageDetail_20' ) end [2025-01-18 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:12:21] Production.INFO: ==7996== Releasing lock... [2025-01-18 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:13:05 [end_date_ymd] => 2025-01-18 02:13:05 [RateCDR] => 1 ) [2025-01-18 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:13:05' and `end` < '2025-01-18 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:13:18] Production.INFO: count ==526 [2025-01-18 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:13:05 - End Time 2025-01-18 02:13:05 [2025-01-18 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272499', 'tblTempUsageDetail_20' ) start [2025-01-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272499', 'tblTempUsageDetail_20' ) end [2025-01-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272499', 'tblTempVendorCDR_20' ) start [2025-01-18 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272499', 'tblTempVendorCDR_20' ) end [2025-01-18 02:13:18] Production.INFO: ProcessCDR(1,14272499,1,1,2) [2025-01-18 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272499', 'tblTempUsageDetail_20' ) start [2025-01-18 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272499', 'tblTempUsageDetail_20' ) end [2025-01-18 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:13:22] Production.INFO: ==8100== Releasing lock... [2025-01-18 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:14:06 [end_date_ymd] => 2025-01-18 02:14:06 [RateCDR] => 1 ) [2025-01-18 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:14:06' and `end` < '2025-01-18 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:14:18] Production.INFO: count ==529 [2025-01-18 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:14:06 - End Time 2025-01-18 02:14:06 [2025-01-18 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272504', 'tblTempUsageDetail_20' ) start [2025-01-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272504', 'tblTempUsageDetail_20' ) end [2025-01-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272504', 'tblTempVendorCDR_20' ) start [2025-01-18 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272504', 'tblTempVendorCDR_20' ) end [2025-01-18 02:14:18] Production.INFO: ProcessCDR(1,14272504,1,1,2) [2025-01-18 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272504', 'tblTempUsageDetail_20' ) start [2025-01-18 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272504', 'tblTempUsageDetail_20' ) end [2025-01-18 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:14:22] Production.INFO: ==8205== Releasing lock... [2025-01-18 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:14:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:15:06 [end_date_ymd] => 2025-01-18 02:15:06 [RateCDR] => 1 ) [2025-01-18 02:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:15:06' and `end` < '2025-01-18 02:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:15:18] Production.INFO: count ==528 [2025-01-18 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:15:06 - End Time 2025-01-18 02:15:06 [2025-01-18 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272509', 'tblTempUsageDetail_20' ) start [2025-01-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272509', 'tblTempUsageDetail_20' ) end [2025-01-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272509', 'tblTempVendorCDR_20' ) start [2025-01-18 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272509', 'tblTempVendorCDR_20' ) end [2025-01-18 02:15:18] Production.INFO: ProcessCDR(1,14272509,1,1,2) [2025-01-18 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272509', 'tblTempUsageDetail_20' ) start [2025-01-18 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272509', 'tblTempUsageDetail_20' ) end [2025-01-18 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:15:22] Production.INFO: ==8310== Releasing lock... [2025-01-18 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:16:05 [end_date_ymd] => 2025-01-18 02:16:05 [RateCDR] => 1 ) [2025-01-18 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:16:05' and `end` < '2025-01-18 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:16:18] Production.INFO: count ==524 [2025-01-18 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:16:05 - End Time 2025-01-18 02:16:05 [2025-01-18 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272514', 'tblTempUsageDetail_20' ) start [2025-01-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272514', 'tblTempUsageDetail_20' ) end [2025-01-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272514', 'tblTempVendorCDR_20' ) start [2025-01-18 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272514', 'tblTempVendorCDR_20' ) end [2025-01-18 02:16:18] Production.INFO: ProcessCDR(1,14272514,1,1,2) [2025-01-18 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272514', 'tblTempUsageDetail_20' ) start [2025-01-18 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272514', 'tblTempUsageDetail_20' ) end [2025-01-18 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:16:22] Production.INFO: ==8411== Releasing lock... [2025-01-18 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:17:05 [end_date_ymd] => 2025-01-18 02:17:05 [RateCDR] => 1 ) [2025-01-18 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:17:05' and `end` < '2025-01-18 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:17:18] Production.INFO: count ==521 [2025-01-18 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:17:05 - End Time 2025-01-18 02:17:05 [2025-01-18 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272519', 'tblTempUsageDetail_20' ) start [2025-01-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272519', 'tblTempUsageDetail_20' ) end [2025-01-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272519', 'tblTempVendorCDR_20' ) start [2025-01-18 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272519', 'tblTempVendorCDR_20' ) end [2025-01-18 02:17:18] Production.INFO: ProcessCDR(1,14272519,1,1,2) [2025-01-18 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272519', 'tblTempUsageDetail_20' ) start [2025-01-18 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272519', 'tblTempUsageDetail_20' ) end [2025-01-18 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:17:21] Production.INFO: ==8517== Releasing lock... [2025-01-18 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:18:05 [end_date_ymd] => 2025-01-18 02:18:05 [RateCDR] => 1 ) [2025-01-18 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:18:05' and `end` < '2025-01-18 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:18:17] Production.INFO: count ==519 [2025-01-18 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:18:05 - End Time 2025-01-18 02:18:05 [2025-01-18 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272524', 'tblTempUsageDetail_20' ) start [2025-01-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272524', 'tblTempUsageDetail_20' ) end [2025-01-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272524', 'tblTempVendorCDR_20' ) start [2025-01-18 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272524', 'tblTempVendorCDR_20' ) end [2025-01-18 02:18:17] Production.INFO: ProcessCDR(1,14272524,1,1,2) [2025-01-18 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272524', 'tblTempUsageDetail_20' ) start [2025-01-18 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272524', 'tblTempUsageDetail_20' ) end [2025-01-18 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:18:21] Production.INFO: ==8623== Releasing lock... [2025-01-18 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:19:06 [end_date_ymd] => 2025-01-18 02:19:06 [RateCDR] => 1 ) [2025-01-18 02:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:19:06' and `end` < '2025-01-18 02:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:19:20] Production.INFO: count ==519 [2025-01-18 02:19:20] Production.ERROR: pbx CDR StartTime 2025-01-17 23:19:06 - End Time 2025-01-18 02:19:06 [2025-01-18 02:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272529', 'tblTempUsageDetail_20' ) start [2025-01-18 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272529', 'tblTempUsageDetail_20' ) end [2025-01-18 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272529', 'tblTempVendorCDR_20' ) start [2025-01-18 02:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272529', 'tblTempVendorCDR_20' ) end [2025-01-18 02:19:20] Production.INFO: ProcessCDR(1,14272529,1,1,2) [2025-01-18 02:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272529', 'tblTempUsageDetail_20' ) start [2025-01-18 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272529', 'tblTempUsageDetail_20' ) end [2025-01-18 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:19:23] Production.INFO: ==8727== Releasing lock... [2025-01-18 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:19:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:20:06 [end_date_ymd] => 2025-01-18 02:20:06 [RateCDR] => 1 ) [2025-01-18 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:20:06' and `end` < '2025-01-18 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:20:18] Production.INFO: count ==524 [2025-01-18 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:20:06 - End Time 2025-01-18 02:20:06 [2025-01-18 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272535', 'tblTempUsageDetail_20' ) start [2025-01-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272535', 'tblTempUsageDetail_20' ) end [2025-01-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272535', 'tblTempVendorCDR_20' ) start [2025-01-18 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272535', 'tblTempVendorCDR_20' ) end [2025-01-18 02:20:18] Production.INFO: ProcessCDR(1,14272535,1,1,2) [2025-01-18 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272535', 'tblTempUsageDetail_20' ) start [2025-01-18 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272535', 'tblTempUsageDetail_20' ) end [2025-01-18 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:20:22] Production.INFO: ==8833== Releasing lock... [2025-01-18 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:21:05 [end_date_ymd] => 2025-01-18 02:21:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:21:05' and `end` < '2025-01-18 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-01-18 02:21:17] Production.INFO: count ==524 [2025-01-18 02:21:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:21:05 - End Time 2025-01-18 02:21:05 [2025-01-18 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272540', 'tblTempUsageDetail_20' ) start [2025-01-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272540', 'tblTempUsageDetail_20' ) end [2025-01-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272540', 'tblTempVendorCDR_20' ) start [2025-01-18 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272540', 'tblTempVendorCDR_20' ) end [2025-01-18 02:21:17] Production.INFO: ProcessCDR(1,14272540,1,1,2) [2025-01-18 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272540', 'tblTempUsageDetail_20' ) start [2025-01-18 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272540', 'tblTempUsageDetail_20' ) end [2025-01-18 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:21:21] Production.INFO: ==8943== Releasing lock... [2025-01-18 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:22:06 [end_date_ymd] => 2025-01-18 02:22:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:22:06' and `end` < '2025-01-18 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-01-18 02:22:19] Production.INFO: count ==524 [2025-01-18 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:22:06 - End Time 2025-01-18 02:22:06 [2025-01-18 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272545', 'tblTempUsageDetail_20' ) start [2025-01-18 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272545', 'tblTempUsageDetail_20' ) end [2025-01-18 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272545', 'tblTempVendorCDR_20' ) start [2025-01-18 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272545', 'tblTempVendorCDR_20' ) end [2025-01-18 02:22:19] Production.INFO: ProcessCDR(1,14272545,1,1,2) [2025-01-18 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272545', 'tblTempUsageDetail_20' ) start [2025-01-18 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272545', 'tblTempUsageDetail_20' ) end [2025-01-18 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:22:23] Production.INFO: ==9048== Releasing lock... [2025-01-18 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:23:06 [end_date_ymd] => 2025-01-18 02:23:06 [RateCDR] => 1 ) [2025-01-18 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:23:06' and `end` < '2025-01-18 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:23:18] Production.INFO: count ==532 [2025-01-18 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:23:06 - End Time 2025-01-18 02:23:06 [2025-01-18 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272550', 'tblTempUsageDetail_20' ) start [2025-01-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272550', 'tblTempUsageDetail_20' ) end [2025-01-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272550', 'tblTempVendorCDR_20' ) start [2025-01-18 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272550', 'tblTempVendorCDR_20' ) end [2025-01-18 02:23:18] Production.INFO: ProcessCDR(1,14272550,1,1,2) [2025-01-18 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272550', 'tblTempUsageDetail_20' ) start [2025-01-18 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272550', 'tblTempUsageDetail_20' ) end [2025-01-18 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:23:21] Production.INFO: ==9151== Releasing lock... [2025-01-18 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:24:05 [end_date_ymd] => 2025-01-18 02:24:05 [RateCDR] => 1 ) [2025-01-18 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:24:05' and `end` < '2025-01-18 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:24:17] Production.INFO: count ==536 [2025-01-18 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:24:05 - End Time 2025-01-18 02:24:05 [2025-01-18 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272555', 'tblTempUsageDetail_20' ) start [2025-01-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272555', 'tblTempUsageDetail_20' ) end [2025-01-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272555', 'tblTempVendorCDR_20' ) start [2025-01-18 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272555', 'tblTempVendorCDR_20' ) end [2025-01-18 02:24:17] Production.INFO: ProcessCDR(1,14272555,1,1,2) [2025-01-18 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272555', 'tblTempUsageDetail_20' ) start [2025-01-18 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272555', 'tblTempUsageDetail_20' ) end [2025-01-18 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:24:21] Production.INFO: ==9258== Releasing lock... [2025-01-18 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:25:05 [end_date_ymd] => 2025-01-18 02:25:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:25:05' and `end` < '2025-01-18 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-01-18 02:25:18] Production.INFO: count ==548 [2025-01-18 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:25:05 - End Time 2025-01-18 02:25:05 [2025-01-18 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272560', 'tblTempUsageDetail_20' ) start [2025-01-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272560', 'tblTempUsageDetail_20' ) end [2025-01-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272560', 'tblTempVendorCDR_20' ) start [2025-01-18 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272560', 'tblTempVendorCDR_20' ) end [2025-01-18 02:25:18] Production.INFO: ProcessCDR(1,14272560,1,1,2) [2025-01-18 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272560', 'tblTempUsageDetail_20' ) start [2025-01-18 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272560', 'tblTempUsageDetail_20' ) end [2025-01-18 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:25:21] Production.INFO: ==9365== Releasing lock... [2025-01-18 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:26:05 [end_date_ymd] => 2025-01-18 02:26:05 [RateCDR] => 1 ) [2025-01-18 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:26:05' and `end` < '2025-01-18 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:26:17] Production.INFO: count ==548 [2025-01-18 02:26:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:26:05 - End Time 2025-01-18 02:26:05 [2025-01-18 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272565', 'tblTempUsageDetail_20' ) start [2025-01-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272565', 'tblTempUsageDetail_20' ) end [2025-01-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272565', 'tblTempVendorCDR_20' ) start [2025-01-18 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272565', 'tblTempVendorCDR_20' ) end [2025-01-18 02:26:17] Production.INFO: ProcessCDR(1,14272565,1,1,2) [2025-01-18 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272565', 'tblTempUsageDetail_20' ) start [2025-01-18 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272565', 'tblTempUsageDetail_20' ) end [2025-01-18 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:26:21] Production.INFO: ==9509== Releasing lock... [2025-01-18 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:27:05 [end_date_ymd] => 2025-01-18 02:27:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:27:05' and `end` < '2025-01-18 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-01-18 02:27:17] Production.INFO: count ==547 [2025-01-18 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:27:05 - End Time 2025-01-18 02:27:05 [2025-01-18 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272570', 'tblTempUsageDetail_20' ) start [2025-01-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272570', 'tblTempUsageDetail_20' ) end [2025-01-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272570', 'tblTempVendorCDR_20' ) start [2025-01-18 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272570', 'tblTempVendorCDR_20' ) end [2025-01-18 02:27:18] Production.INFO: ProcessCDR(1,14272570,1,1,2) [2025-01-18 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272570', 'tblTempUsageDetail_20' ) start [2025-01-18 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272570', 'tblTempUsageDetail_20' ) end [2025-01-18 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:27:21] Production.INFO: ==9615== Releasing lock... [2025-01-18 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:28:05 [end_date_ymd] => 2025-01-18 02:28:05 [RateCDR] => 1 ) [2025-01-18 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:28:05' and `end` < '2025-01-18 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:28:17] Production.INFO: count ==546 [2025-01-18 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:28:05 - End Time 2025-01-18 02:28:05 [2025-01-18 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272575', 'tblTempUsageDetail_20' ) start [2025-01-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272575', 'tblTempUsageDetail_20' ) end [2025-01-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272575', 'tblTempVendorCDR_20' ) start [2025-01-18 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272575', 'tblTempVendorCDR_20' ) end [2025-01-18 02:28:17] Production.INFO: ProcessCDR(1,14272575,1,1,2) [2025-01-18 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272575', 'tblTempUsageDetail_20' ) start [2025-01-18 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272575', 'tblTempUsageDetail_20' ) end [2025-01-18 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:28:20] Production.INFO: ==9715== Releasing lock... [2025-01-18 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:28:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:29:05 [end_date_ymd] => 2025-01-18 02:29:05 [RateCDR] => 1 ) [2025-01-18 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:29:05' and `end` < '2025-01-18 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:29:18] Production.INFO: count ==546 [2025-01-18 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:29:05 - End Time 2025-01-18 02:29:05 [2025-01-18 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272580', 'tblTempUsageDetail_20' ) start [2025-01-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272580', 'tblTempUsageDetail_20' ) end [2025-01-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272580', 'tblTempVendorCDR_20' ) start [2025-01-18 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272580', 'tblTempVendorCDR_20' ) end [2025-01-18 02:29:18] Production.INFO: ProcessCDR(1,14272580,1,1,2) [2025-01-18 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272580', 'tblTempUsageDetail_20' ) start [2025-01-18 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272580', 'tblTempUsageDetail_20' ) end [2025-01-18 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:29:21] Production.INFO: ==9816== Releasing lock... [2025-01-18 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:30:05 [end_date_ymd] => 2025-01-18 02:30:05 [RateCDR] => 1 ) [2025-01-18 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:30:05' and `end` < '2025-01-18 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:30:18] Production.INFO: count ==552 [2025-01-18 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:30:05 - End Time 2025-01-18 02:30:05 [2025-01-18 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272585', 'tblTempUsageDetail_20' ) start [2025-01-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272585', 'tblTempUsageDetail_20' ) end [2025-01-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272585', 'tblTempVendorCDR_20' ) start [2025-01-18 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272585', 'tblTempVendorCDR_20' ) end [2025-01-18 02:30:18] Production.INFO: ProcessCDR(1,14272585,1,1,2) [2025-01-18 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272585', 'tblTempUsageDetail_20' ) start [2025-01-18 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272585', 'tblTempUsageDetail_20' ) end [2025-01-18 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:30:21] Production.INFO: ==9918== Releasing lock... [2025-01-18 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:30:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:31:05 [end_date_ymd] => 2025-01-18 02:31:05 [RateCDR] => 1 ) [2025-01-18 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:31:05' and `end` < '2025-01-18 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:31:17] Production.INFO: count ==572 [2025-01-18 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:31:05 - End Time 2025-01-18 02:31:05 [2025-01-18 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272591', 'tblTempUsageDetail_20' ) start [2025-01-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272591', 'tblTempUsageDetail_20' ) end [2025-01-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272591', 'tblTempVendorCDR_20' ) start [2025-01-18 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272591', 'tblTempVendorCDR_20' ) end [2025-01-18 02:31:18] Production.INFO: ProcessCDR(1,14272591,1,1,2) [2025-01-18 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272591', 'tblTempUsageDetail_20' ) start [2025-01-18 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272591', 'tblTempUsageDetail_20' ) end [2025-01-18 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:31:21] Production.INFO: ==10026== Releasing lock... [2025-01-18 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:32:05 [end_date_ymd] => 2025-01-18 02:32:05 [RateCDR] => 1 ) [2025-01-18 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:32:05' and `end` < '2025-01-18 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:32:18] Production.INFO: count ==568 [2025-01-18 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:32:05 - End Time 2025-01-18 02:32:05 [2025-01-18 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272596', 'tblTempUsageDetail_20' ) start [2025-01-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272596', 'tblTempUsageDetail_20' ) end [2025-01-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272596', 'tblTempVendorCDR_20' ) start [2025-01-18 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272596', 'tblTempVendorCDR_20' ) end [2025-01-18 02:32:18] Production.INFO: ProcessCDR(1,14272596,1,1,2) [2025-01-18 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272596', 'tblTempUsageDetail_20' ) start [2025-01-18 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272596', 'tblTempUsageDetail_20' ) end [2025-01-18 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:32:21] Production.INFO: ==10129== Releasing lock... [2025-01-18 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:33:05 [end_date_ymd] => 2025-01-18 02:33:05 [RateCDR] => 1 ) [2025-01-18 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:33:05' and `end` < '2025-01-18 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:33:18] Production.INFO: count ==567 [2025-01-18 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:33:05 - End Time 2025-01-18 02:33:05 [2025-01-18 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272601', 'tblTempUsageDetail_20' ) start [2025-01-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272601', 'tblTempUsageDetail_20' ) end [2025-01-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272601', 'tblTempVendorCDR_20' ) start [2025-01-18 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272601', 'tblTempVendorCDR_20' ) end [2025-01-18 02:33:18] Production.INFO: ProcessCDR(1,14272601,1,1,2) [2025-01-18 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272601', 'tblTempUsageDetail_20' ) start [2025-01-18 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272601', 'tblTempUsageDetail_20' ) end [2025-01-18 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:33:21] Production.INFO: ==10232== Releasing lock... [2025-01-18 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:34:05 [end_date_ymd] => 2025-01-18 02:34:05 [RateCDR] => 1 ) [2025-01-18 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:34:05' and `end` < '2025-01-18 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:34:21] Production.INFO: count ==564 [2025-01-18 02:34:21] Production.ERROR: pbx CDR StartTime 2025-01-17 23:34:05 - End Time 2025-01-18 02:34:05 [2025-01-18 02:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272606', 'tblTempUsageDetail_20' ) start [2025-01-18 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272606', 'tblTempUsageDetail_20' ) end [2025-01-18 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272606', 'tblTempVendorCDR_20' ) start [2025-01-18 02:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272606', 'tblTempVendorCDR_20' ) end [2025-01-18 02:34:21] Production.INFO: ProcessCDR(1,14272606,1,1,2) [2025-01-18 02:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272606', 'tblTempUsageDetail_20' ) start [2025-01-18 02:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272606', 'tblTempUsageDetail_20' ) end [2025-01-18 02:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:34:24] Production.INFO: ==10331== Releasing lock... [2025-01-18 02:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:34:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:35:05 [end_date_ymd] => 2025-01-18 02:35:05 [RateCDR] => 1 ) [2025-01-18 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:35:05' and `end` < '2025-01-18 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:35:18] Production.INFO: count ==564 [2025-01-18 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:35:05 - End Time 2025-01-18 02:35:05 [2025-01-18 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272611', 'tblTempUsageDetail_20' ) start [2025-01-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272611', 'tblTempUsageDetail_20' ) end [2025-01-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272611', 'tblTempVendorCDR_20' ) start [2025-01-18 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272611', 'tblTempVendorCDR_20' ) end [2025-01-18 02:35:18] Production.INFO: ProcessCDR(1,14272611,1,1,2) [2025-01-18 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272611', 'tblTempUsageDetail_20' ) start [2025-01-18 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272611', 'tblTempUsageDetail_20' ) end [2025-01-18 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:35:21] Production.INFO: ==10435== Releasing lock... [2025-01-18 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:36:05 [end_date_ymd] => 2025-01-18 02:36:05 [RateCDR] => 1 ) [2025-01-18 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:36:05' and `end` < '2025-01-18 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:36:17] Production.INFO: count ==563 [2025-01-18 02:36:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:36:05 - End Time 2025-01-18 02:36:05 [2025-01-18 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272616', 'tblTempUsageDetail_20' ) start [2025-01-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272616', 'tblTempUsageDetail_20' ) end [2025-01-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272616', 'tblTempVendorCDR_20' ) start [2025-01-18 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272616', 'tblTempVendorCDR_20' ) end [2025-01-18 02:36:17] Production.INFO: ProcessCDR(1,14272616,1,1,2) [2025-01-18 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272616', 'tblTempUsageDetail_20' ) start [2025-01-18 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272616', 'tblTempUsageDetail_20' ) end [2025-01-18 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:36:21] Production.INFO: ==10546== Releasing lock... [2025-01-18 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:37:05 [end_date_ymd] => 2025-01-18 02:37:05 [RateCDR] => 1 ) [2025-01-18 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:37:05' and `end` < '2025-01-18 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:37:18] Production.INFO: count ==561 [2025-01-18 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:37:05 - End Time 2025-01-18 02:37:05 [2025-01-18 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272621', 'tblTempUsageDetail_20' ) start [2025-01-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272621', 'tblTempUsageDetail_20' ) end [2025-01-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272621', 'tblTempVendorCDR_20' ) start [2025-01-18 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272621', 'tblTempVendorCDR_20' ) end [2025-01-18 02:37:18] Production.INFO: ProcessCDR(1,14272621,1,1,2) [2025-01-18 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272621', 'tblTempUsageDetail_20' ) start [2025-01-18 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272621', 'tblTempUsageDetail_20' ) end [2025-01-18 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:37:22] Production.INFO: ==10654== Releasing lock... [2025-01-18 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:38:05 [end_date_ymd] => 2025-01-18 02:38:05 [RateCDR] => 1 ) [2025-01-18 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:38:05' and `end` < '2025-01-18 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:38:17] Production.INFO: count ==564 [2025-01-18 02:38:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:38:05 - End Time 2025-01-18 02:38:05 [2025-01-18 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272626', 'tblTempUsageDetail_20' ) start [2025-01-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272626', 'tblTempUsageDetail_20' ) end [2025-01-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272626', 'tblTempVendorCDR_20' ) start [2025-01-18 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272626', 'tblTempVendorCDR_20' ) end [2025-01-18 02:38:17] Production.INFO: ProcessCDR(1,14272626,1,1,2) [2025-01-18 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272626', 'tblTempUsageDetail_20' ) start [2025-01-18 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272626', 'tblTempUsageDetail_20' ) end [2025-01-18 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:38:21] Production.INFO: ==10761== Releasing lock... [2025-01-18 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:39:05 [end_date_ymd] => 2025-01-18 02:39:05 [RateCDR] => 1 ) [2025-01-18 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:39:05' and `end` < '2025-01-18 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:39:17] Production.INFO: count ==564 [2025-01-18 02:39:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:39:05 - End Time 2025-01-18 02:39:05 [2025-01-18 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272631', 'tblTempUsageDetail_20' ) start [2025-01-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272631', 'tblTempUsageDetail_20' ) end [2025-01-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272631', 'tblTempVendorCDR_20' ) start [2025-01-18 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272631', 'tblTempVendorCDR_20' ) end [2025-01-18 02:39:17] Production.INFO: ProcessCDR(1,14272631,1,1,2) [2025-01-18 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272631', 'tblTempUsageDetail_20' ) start [2025-01-18 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272631', 'tblTempUsageDetail_20' ) end [2025-01-18 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:39:21] Production.INFO: ==10869== Releasing lock... [2025-01-18 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:40:05 [end_date_ymd] => 2025-01-18 02:40:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:40:05' and `end` < '2025-01-18 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-01-18 02:40:17] Production.INFO: count ==568 [2025-01-18 02:40:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:40:05 - End Time 2025-01-18 02:40:05 [2025-01-18 02:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272637', 'tblTempUsageDetail_20' ) start [2025-01-18 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272637', 'tblTempUsageDetail_20' ) end [2025-01-18 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272637', 'tblTempVendorCDR_20' ) start [2025-01-18 02:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272637', 'tblTempVendorCDR_20' ) end [2025-01-18 02:40:17] Production.INFO: ProcessCDR(1,14272637,1,1,2) [2025-01-18 02:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272637', 'tblTempUsageDetail_20' ) start [2025-01-18 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272637', 'tblTempUsageDetail_20' ) end [2025-01-18 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:40:21] Production.INFO: ==10972== Releasing lock... [2025-01-18 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:40:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:41:05 [end_date_ymd] => 2025-01-18 02:41:05 [RateCDR] => 1 ) [2025-01-18 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:41:05' and `end` < '2025-01-18 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:41:17] Production.INFO: count ==577 [2025-01-18 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:41:05 - End Time 2025-01-18 02:41:05 [2025-01-18 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272642', 'tblTempUsageDetail_20' ) start [2025-01-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272642', 'tblTempUsageDetail_20' ) end [2025-01-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272642', 'tblTempVendorCDR_20' ) start [2025-01-18 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272642', 'tblTempVendorCDR_20' ) end [2025-01-18 02:41:17] Production.INFO: ProcessCDR(1,14272642,1,1,2) [2025-01-18 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272642', 'tblTempUsageDetail_20' ) start [2025-01-18 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272642', 'tblTempUsageDetail_20' ) end [2025-01-18 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:41:21] Production.INFO: ==11116== Releasing lock... [2025-01-18 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:42:05 [end_date_ymd] => 2025-01-18 02:42:05 [RateCDR] => 1 ) [2025-01-18 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:42:05' and `end` < '2025-01-18 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:42:18] Production.INFO: count ==575 [2025-01-18 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:42:05 - End Time 2025-01-18 02:42:05 [2025-01-18 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272647', 'tblTempUsageDetail_20' ) start [2025-01-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272647', 'tblTempUsageDetail_20' ) end [2025-01-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272647', 'tblTempVendorCDR_20' ) start [2025-01-18 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272647', 'tblTempVendorCDR_20' ) end [2025-01-18 02:42:18] Production.INFO: ProcessCDR(1,14272647,1,1,2) [2025-01-18 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272647', 'tblTempUsageDetail_20' ) start [2025-01-18 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272647', 'tblTempUsageDetail_20' ) end [2025-01-18 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:42:21] Production.INFO: ==11217== Releasing lock... [2025-01-18 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:43:05 [end_date_ymd] => 2025-01-18 02:43:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:43:05' and `end` < '2025-01-18 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-01-18 02:43:18] Production.INFO: count ==573 [2025-01-18 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:43:05 - End Time 2025-01-18 02:43:05 [2025-01-18 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272652', 'tblTempUsageDetail_20' ) start [2025-01-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272652', 'tblTempUsageDetail_20' ) end [2025-01-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272652', 'tblTempVendorCDR_20' ) start [2025-01-18 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272652', 'tblTempVendorCDR_20' ) end [2025-01-18 02:43:18] Production.INFO: ProcessCDR(1,14272652,1,1,2) [2025-01-18 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272652', 'tblTempUsageDetail_20' ) start [2025-01-18 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272652', 'tblTempUsageDetail_20' ) end [2025-01-18 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:43:21] Production.INFO: ==11318== Releasing lock... [2025-01-18 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:44:04 [end_date_ymd] => 2025-01-18 02:44:04 [RateCDR] => 1 ) [2025-01-18 02:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:44:04' and `end` < '2025-01-18 02:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:44:18] Production.INFO: count ==572 [2025-01-18 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:44:04 - End Time 2025-01-18 02:44:04 [2025-01-18 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272656', 'tblTempUsageDetail_20' ) start [2025-01-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272656', 'tblTempUsageDetail_20' ) end [2025-01-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272656', 'tblTempVendorCDR_20' ) start [2025-01-18 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272656', 'tblTempVendorCDR_20' ) end [2025-01-18 02:44:18] Production.INFO: ProcessCDR(1,14272656,1,1,2) [2025-01-18 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272656', 'tblTempUsageDetail_20' ) start [2025-01-18 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272656', 'tblTempUsageDetail_20' ) end [2025-01-18 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:44:21] Production.INFO: ==11422== Releasing lock... [2025-01-18 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:45:05 [end_date_ymd] => 2025-01-18 02:45:05 [RateCDR] => 1 ) [2025-01-18 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:45:05' and `end` < '2025-01-18 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:45:18] Production.INFO: count ==566 [2025-01-18 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:45:05 - End Time 2025-01-18 02:45:05 [2025-01-18 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272662', 'tblTempUsageDetail_20' ) start [2025-01-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272662', 'tblTempUsageDetail_20' ) end [2025-01-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272662', 'tblTempVendorCDR_20' ) start [2025-01-18 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272662', 'tblTempVendorCDR_20' ) end [2025-01-18 02:45:18] Production.INFO: ProcessCDR(1,14272662,1,1,2) [2025-01-18 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272662', 'tblTempUsageDetail_20' ) start [2025-01-18 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272662', 'tblTempUsageDetail_20' ) end [2025-01-18 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:45:22] Production.INFO: ==11528== Releasing lock... [2025-01-18 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:45:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:46:05 [end_date_ymd] => 2025-01-18 02:46:05 [RateCDR] => 1 ) [2025-01-18 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:46:05' and `end` < '2025-01-18 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:46:19] Production.INFO: count ==566 [2025-01-18 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:46:05 - End Time 2025-01-18 02:46:05 [2025-01-18 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272667', 'tblTempUsageDetail_20' ) start [2025-01-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272667', 'tblTempUsageDetail_20' ) end [2025-01-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272667', 'tblTempVendorCDR_20' ) start [2025-01-18 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272667', 'tblTempVendorCDR_20' ) end [2025-01-18 02:46:19] Production.INFO: ProcessCDR(1,14272667,1,1,2) [2025-01-18 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272667', 'tblTempUsageDetail_20' ) start [2025-01-18 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272667', 'tblTempUsageDetail_20' ) end [2025-01-18 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:46:23] Production.INFO: ==11632== Releasing lock... [2025-01-18 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:46:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:47:05 [end_date_ymd] => 2025-01-18 02:47:05 [RateCDR] => 1 ) [2025-01-18 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:47:05' and `end` < '2025-01-18 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:47:17] Production.INFO: count ==565 [2025-01-18 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:47:05 - End Time 2025-01-18 02:47:05 [2025-01-18 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272672', 'tblTempUsageDetail_20' ) start [2025-01-18 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272672', 'tblTempUsageDetail_20' ) end [2025-01-18 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272672', 'tblTempVendorCDR_20' ) start [2025-01-18 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272672', 'tblTempVendorCDR_20' ) end [2025-01-18 02:47:17] Production.INFO: ProcessCDR(1,14272672,1,1,2) [2025-01-18 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272672', 'tblTempUsageDetail_20' ) start [2025-01-18 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272672', 'tblTempUsageDetail_20' ) end [2025-01-18 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:47:22] Production.INFO: ==11733== Releasing lock... [2025-01-18 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:48:05 [end_date_ymd] => 2025-01-18 02:48:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:48:05' and `end` < '2025-01-18 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-01-18 02:48:18] Production.INFO: count ==565 [2025-01-18 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:48:05 - End Time 2025-01-18 02:48:05 [2025-01-18 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272677', 'tblTempUsageDetail_20' ) start [2025-01-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272677', 'tblTempUsageDetail_20' ) end [2025-01-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272677', 'tblTempVendorCDR_20' ) start [2025-01-18 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272677', 'tblTempVendorCDR_20' ) end [2025-01-18 02:48:18] Production.INFO: ProcessCDR(1,14272677,1,1,2) [2025-01-18 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272677', 'tblTempUsageDetail_20' ) start [2025-01-18 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272677', 'tblTempUsageDetail_20' ) end [2025-01-18 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:48:21] Production.INFO: ==11835== Releasing lock... [2025-01-18 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:49:05 [end_date_ymd] => 2025-01-18 02:49:05 [RateCDR] => 1 ) [2025-01-18 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:49:05' and `end` < '2025-01-18 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:49:18] Production.INFO: count ==564 [2025-01-18 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:49:05 - End Time 2025-01-18 02:49:05 [2025-01-18 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272682', 'tblTempUsageDetail_20' ) start [2025-01-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272682', 'tblTempUsageDetail_20' ) end [2025-01-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272682', 'tblTempVendorCDR_20' ) start [2025-01-18 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272682', 'tblTempVendorCDR_20' ) end [2025-01-18 02:49:18] Production.INFO: ProcessCDR(1,14272682,1,1,2) [2025-01-18 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272682', 'tblTempUsageDetail_20' ) start [2025-01-18 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272682', 'tblTempUsageDetail_20' ) end [2025-01-18 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:49:22] Production.INFO: ==11941== Releasing lock... [2025-01-18 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:50:06 [end_date_ymd] => 2025-01-18 02:50:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:50:06' and `end` < '2025-01-18 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-01-18 02:50:18] Production.INFO: count ==568 [2025-01-18 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:50:06 - End Time 2025-01-18 02:50:06 [2025-01-18 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272688', 'tblTempUsageDetail_20' ) start [2025-01-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272688', 'tblTempUsageDetail_20' ) end [2025-01-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272688', 'tblTempVendorCDR_20' ) start [2025-01-18 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272688', 'tblTempVendorCDR_20' ) end [2025-01-18 02:50:18] Production.INFO: ProcessCDR(1,14272688,1,1,2) [2025-01-18 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272688', 'tblTempUsageDetail_20' ) start [2025-01-18 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272688', 'tblTempUsageDetail_20' ) end [2025-01-18 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:50:22] Production.INFO: ==12054== Releasing lock... [2025-01-18 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:51:05 [end_date_ymd] => 2025-01-18 02:51:05 [RateCDR] => 1 ) [2025-01-18 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:51:05' and `end` < '2025-01-18 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:51:17] Production.INFO: count ==564 [2025-01-18 02:51:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:51:05 - End Time 2025-01-18 02:51:05 [2025-01-18 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272693', 'tblTempUsageDetail_20' ) start [2025-01-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272693', 'tblTempUsageDetail_20' ) end [2025-01-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272693', 'tblTempVendorCDR_20' ) start [2025-01-18 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272693', 'tblTempVendorCDR_20' ) end [2025-01-18 02:51:17] Production.INFO: ProcessCDR(1,14272693,1,1,2) [2025-01-18 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272693', 'tblTempUsageDetail_20' ) start [2025-01-18 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272693', 'tblTempUsageDetail_20' ) end [2025-01-18 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:51:21] Production.INFO: ==12164== Releasing lock... [2025-01-18 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:52:06 [end_date_ymd] => 2025-01-18 02:52:06 [RateCDR] => 1 ) [2025-01-18 02:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:52:06' and `end` < '2025-01-18 02:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:52:18] Production.INFO: count ==561 [2025-01-18 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:52:06 - End Time 2025-01-18 02:52:06 [2025-01-18 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272698', 'tblTempUsageDetail_20' ) start [2025-01-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272698', 'tblTempUsageDetail_20' ) end [2025-01-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272698', 'tblTempVendorCDR_20' ) start [2025-01-18 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272698', 'tblTempVendorCDR_20' ) end [2025-01-18 02:52:18] Production.INFO: ProcessCDR(1,14272698,1,1,2) [2025-01-18 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272698', 'tblTempUsageDetail_20' ) start [2025-01-18 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272698', 'tblTempUsageDetail_20' ) end [2025-01-18 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:52:22] Production.INFO: ==12268== Releasing lock... [2025-01-18 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:52:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:53:05 [end_date_ymd] => 2025-01-18 02:53:05 [RateCDR] => 1 ) [2025-01-18 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:53:05' and `end` < '2025-01-18 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:53:19] Production.INFO: count ==560 [2025-01-18 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:53:05 - End Time 2025-01-18 02:53:05 [2025-01-18 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272703', 'tblTempUsageDetail_20' ) start [2025-01-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272703', 'tblTempUsageDetail_20' ) end [2025-01-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272703', 'tblTempVendorCDR_20' ) start [2025-01-18 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272703', 'tblTempVendorCDR_20' ) end [2025-01-18 02:53:19] Production.INFO: ProcessCDR(1,14272703,1,1,2) [2025-01-18 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272703', 'tblTempUsageDetail_20' ) start [2025-01-18 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272703', 'tblTempUsageDetail_20' ) end [2025-01-18 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:53:22] Production.INFO: ==12372== Releasing lock... [2025-01-18 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:54:06 [end_date_ymd] => 2025-01-18 02:54:06 [RateCDR] => 1 ) [2025-01-18 02:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:54:06' and `end` < '2025-01-18 02:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:54:18] Production.INFO: count ==560 [2025-01-18 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:54:06 - End Time 2025-01-18 02:54:06 [2025-01-18 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272708', 'tblTempUsageDetail_20' ) start [2025-01-18 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272708', 'tblTempUsageDetail_20' ) end [2025-01-18 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272708', 'tblTempVendorCDR_20' ) start [2025-01-18 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272708', 'tblTempVendorCDR_20' ) end [2025-01-18 02:54:18] Production.INFO: ProcessCDR(1,14272708,1,1,2) [2025-01-18 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272708', 'tblTempUsageDetail_20' ) start [2025-01-18 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272708', 'tblTempUsageDetail_20' ) end [2025-01-18 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:54:22] Production.INFO: ==12479== Releasing lock... [2025-01-18 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:54:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:55:05 [end_date_ymd] => 2025-01-18 02:55:05 [RateCDR] => 1 ) [2025-01-18 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:55:05' and `end` < '2025-01-18 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:55:18] Production.INFO: count ==556 [2025-01-18 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:55:05 - End Time 2025-01-18 02:55:05 [2025-01-18 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272713', 'tblTempUsageDetail_20' ) start [2025-01-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272713', 'tblTempUsageDetail_20' ) end [2025-01-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272713', 'tblTempVendorCDR_20' ) start [2025-01-18 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272713', 'tblTempVendorCDR_20' ) end [2025-01-18 02:55:18] Production.INFO: ProcessCDR(1,14272713,1,1,2) [2025-01-18 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272713', 'tblTempUsageDetail_20' ) start [2025-01-18 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272713', 'tblTempUsageDetail_20' ) end [2025-01-18 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:55:21] Production.INFO: ==12582== Releasing lock... [2025-01-18 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:55:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:56:06 [end_date_ymd] => 2025-01-18 02:56:06 [RateCDR] => 1 ) [2025-01-18 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:56:06' and `end` < '2025-01-18 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:56:19] Production.INFO: count ==556 [2025-01-18 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:56:06 - End Time 2025-01-18 02:56:06 [2025-01-18 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272718', 'tblTempUsageDetail_20' ) start [2025-01-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272718', 'tblTempUsageDetail_20' ) end [2025-01-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272718', 'tblTempVendorCDR_20' ) start [2025-01-18 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272718', 'tblTempVendorCDR_20' ) end [2025-01-18 02:56:19] Production.INFO: ProcessCDR(1,14272718,1,1,2) [2025-01-18 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272718', 'tblTempUsageDetail_20' ) start [2025-01-18 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272718', 'tblTempUsageDetail_20' ) end [2025-01-18 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:56:22] Production.INFO: ==12695== Releasing lock... [2025-01-18 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:57:05 [end_date_ymd] => 2025-01-18 02:57:05 [RateCDR] => 1 ) [2025-01-18 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-17 23:57:05' and `end` < '2025-01-18 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:57:17] Production.INFO: count ==560 [2025-01-18 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-17 23:57:05 - End Time 2025-01-18 02:57:05 [2025-01-18 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272723', 'tblTempUsageDetail_20' ) start [2025-01-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272723', 'tblTempUsageDetail_20' ) end [2025-01-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272723', 'tblTempVendorCDR_20' ) start [2025-01-18 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272723', 'tblTempVendorCDR_20' ) end [2025-01-18 02:57:17] Production.INFO: ProcessCDR(1,14272723,1,1,2) [2025-01-18 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272723', 'tblTempUsageDetail_20' ) start [2025-01-18 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272723', 'tblTempUsageDetail_20' ) end [2025-01-18 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:57:21] Production.INFO: ==12868== Releasing lock... [2025-01-18 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:58:05 [end_date_ymd] => 2025-01-18 02:58:05 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:58:05' and `end` < '2025-01-18 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 02:58:19] Production.INFO: count ==560 [2025-01-18 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-17 23:58:05 - End Time 2025-01-18 02:58:05 [2025-01-18 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272728', 'tblTempUsageDetail_20' ) start [2025-01-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272728', 'tblTempUsageDetail_20' ) end [2025-01-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272728', 'tblTempVendorCDR_20' ) start [2025-01-18 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272728', 'tblTempVendorCDR_20' ) end [2025-01-18 02:58:19] Production.INFO: ProcessCDR(1,14272728,1,1,2) [2025-01-18 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272728', 'tblTempUsageDetail_20' ) start [2025-01-18 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272728', 'tblTempUsageDetail_20' ) end [2025-01-18 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:58:22] Production.INFO: ==12999== Releasing lock... [2025-01-18 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-17 23:59:06 [end_date_ymd] => 2025-01-18 02:59:06 [RateCDR] => 1 ) [2025-01-18 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-01-17 23:59:06' and `end` < '2025-01-18 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-01-18 02:59:18] Production.INFO: count ==560 [2025-01-18 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-17 23:59:06 - End Time 2025-01-18 02:59:06 [2025-01-18 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272733', 'tblTempUsageDetail_20' ) start [2025-01-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272733', 'tblTempUsageDetail_20' ) end [2025-01-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272733', 'tblTempVendorCDR_20' ) start [2025-01-18 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272733', 'tblTempVendorCDR_20' ) end [2025-01-18 02:59:18] Production.INFO: ProcessCDR(1,14272733,1,1,2) [2025-01-18 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272733', 'tblTempUsageDetail_20' ) start [2025-01-18 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272733', 'tblTempUsageDetail_20' ) end [2025-01-18 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 02:59:22] Production.INFO: ==13132== Releasing lock... [2025-01-18 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 02:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:00:06 [end_date_ymd] => 2025-01-18 03:00:06 [RateCDR] => 1 ) [2025-01-18 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:00:06' and `end` < '2025-01-18 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:00:19] Production.INFO: count ==567 [2025-01-18 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:00:06 - End Time 2025-01-18 03:00:06 [2025-01-18 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272739', 'tblTempUsageDetail_20' ) start [2025-01-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272739', 'tblTempUsageDetail_20' ) end [2025-01-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272739', 'tblTempVendorCDR_20' ) start [2025-01-18 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272739', 'tblTempVendorCDR_20' ) end [2025-01-18 03:00:19] Production.INFO: ProcessCDR(1,14272739,1,1,2) [2025-01-18 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272739', 'tblTempUsageDetail_20' ) start [2025-01-18 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272739', 'tblTempUsageDetail_20' ) end [2025-01-18 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:00:23] Production.INFO: ==13266== Releasing lock... [2025-01-18 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:00:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:01:05 [end_date_ymd] => 2025-01-18 03:01:05 [RateCDR] => 1 ) [2025-01-18 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:01:05' and `end` < '2025-01-18 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:01:19] Production.INFO: count ==569 [2025-01-18 03:01:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:01:05 - End Time 2025-01-18 03:01:05 [2025-01-18 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272744', 'tblTempUsageDetail_20' ) start [2025-01-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272744', 'tblTempUsageDetail_20' ) end [2025-01-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272744', 'tblTempVendorCDR_20' ) start [2025-01-18 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272744', 'tblTempVendorCDR_20' ) end [2025-01-18 03:01:19] Production.INFO: ProcessCDR(1,14272744,1,1,2) [2025-01-18 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272744', 'tblTempUsageDetail_20' ) start [2025-01-18 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272744', 'tblTempUsageDetail_20' ) end [2025-01-18 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:01:22] Production.INFO: ==13413== Releasing lock... [2025-01-18 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:02:05 [end_date_ymd] => 2025-01-18 03:02:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:02:05' and `end` < '2025-01-18 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-01-18 03:02:18] Production.INFO: count ==569 [2025-01-18 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:02:05 - End Time 2025-01-18 03:02:05 [2025-01-18 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272749', 'tblTempUsageDetail_20' ) start [2025-01-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272749', 'tblTempUsageDetail_20' ) end [2025-01-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272749', 'tblTempVendorCDR_20' ) start [2025-01-18 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272749', 'tblTempVendorCDR_20' ) end [2025-01-18 03:02:18] Production.INFO: ProcessCDR(1,14272749,1,1,2) [2025-01-18 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272749', 'tblTempUsageDetail_20' ) start [2025-01-18 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272749', 'tblTempUsageDetail_20' ) end [2025-01-18 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:02:21] Production.INFO: ==13625== Releasing lock... [2025-01-18 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:02:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:03:06 [end_date_ymd] => 2025-01-18 03:03:06 [RateCDR] => 1 ) [2025-01-18 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:03:06' and `end` < '2025-01-18 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:03:18] Production.INFO: count ==569 [2025-01-18 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:03:06 - End Time 2025-01-18 03:03:06 [2025-01-18 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272754', 'tblTempUsageDetail_20' ) start [2025-01-18 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272754', 'tblTempUsageDetail_20' ) end [2025-01-18 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272754', 'tblTempVendorCDR_20' ) start [2025-01-18 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272754', 'tblTempVendorCDR_20' ) end [2025-01-18 03:03:18] Production.INFO: ProcessCDR(1,14272754,1,1,2) [2025-01-18 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272754', 'tblTempUsageDetail_20' ) start [2025-01-18 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272754', 'tblTempUsageDetail_20' ) end [2025-01-18 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:03:22] Production.INFO: ==13759== Releasing lock... [2025-01-18 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:04:05 [end_date_ymd] => 2025-01-18 03:04:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:04:05' and `end` < '2025-01-18 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-01-18 03:04:18] Production.INFO: count ==569 [2025-01-18 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:04:05 - End Time 2025-01-18 03:04:05 [2025-01-18 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272759', 'tblTempUsageDetail_20' ) start [2025-01-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272759', 'tblTempUsageDetail_20' ) end [2025-01-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272759', 'tblTempVendorCDR_20' ) start [2025-01-18 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272759', 'tblTempVendorCDR_20' ) end [2025-01-18 03:04:18] Production.INFO: ProcessCDR(1,14272759,1,1,2) [2025-01-18 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272759', 'tblTempUsageDetail_20' ) start [2025-01-18 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272759', 'tblTempUsageDetail_20' ) end [2025-01-18 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:04:22] Production.INFO: ==13894== Releasing lock... [2025-01-18 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:05:05 [end_date_ymd] => 2025-01-18 03:05:05 [RateCDR] => 1 ) [2025-01-18 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:05:05' and `end` < '2025-01-18 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:05:17] Production.INFO: count ==569 [2025-01-18 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:05:05 - End Time 2025-01-18 03:05:05 [2025-01-18 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272764', 'tblTempUsageDetail_20' ) start [2025-01-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272764', 'tblTempUsageDetail_20' ) end [2025-01-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272764', 'tblTempVendorCDR_20' ) start [2025-01-18 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272764', 'tblTempVendorCDR_20' ) end [2025-01-18 03:05:18] Production.INFO: ProcessCDR(1,14272764,1,1,2) [2025-01-18 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272764', 'tblTempUsageDetail_20' ) start [2025-01-18 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272764', 'tblTempUsageDetail_20' ) end [2025-01-18 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:05:21] Production.INFO: ==14031== Releasing lock... [2025-01-18 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:06:05 [end_date_ymd] => 2025-01-18 03:06:05 [RateCDR] => 1 ) [2025-01-18 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:06:05' and `end` < '2025-01-18 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:06:17] Production.INFO: count ==568 [2025-01-18 03:06:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:06:05 - End Time 2025-01-18 03:06:05 [2025-01-18 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272769', 'tblTempUsageDetail_20' ) start [2025-01-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272769', 'tblTempUsageDetail_20' ) end [2025-01-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272769', 'tblTempVendorCDR_20' ) start [2025-01-18 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272769', 'tblTempVendorCDR_20' ) end [2025-01-18 03:06:18] Production.INFO: ProcessCDR(1,14272769,1,1,2) [2025-01-18 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272769', 'tblTempUsageDetail_20' ) start [2025-01-18 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272769', 'tblTempUsageDetail_20' ) end [2025-01-18 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:06:21] Production.INFO: ==14236== Releasing lock... [2025-01-18 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:07:06 [end_date_ymd] => 2025-01-18 03:07:06 [RateCDR] => 1 ) [2025-01-18 03:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:07:06' and `end` < '2025-01-18 03:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:07:19] Production.INFO: count ==568 [2025-01-18 03:07:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:07:06 - End Time 2025-01-18 03:07:06 [2025-01-18 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272774', 'tblTempUsageDetail_20' ) start [2025-01-18 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272774', 'tblTempUsageDetail_20' ) end [2025-01-18 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272774', 'tblTempVendorCDR_20' ) start [2025-01-18 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272774', 'tblTempVendorCDR_20' ) end [2025-01-18 03:07:19] Production.INFO: ProcessCDR(1,14272774,1,1,2) [2025-01-18 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272774', 'tblTempUsageDetail_20' ) start [2025-01-18 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272774', 'tblTempUsageDetail_20' ) end [2025-01-18 03:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:07:23] Production.INFO: ==14366== Releasing lock... [2025-01-18 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:07:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:08:05 [end_date_ymd] => 2025-01-18 03:08:05 [RateCDR] => 1 ) [2025-01-18 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:08:05' and `end` < '2025-01-18 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:08:18] Production.INFO: count ==571 [2025-01-18 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:08:05 - End Time 2025-01-18 03:08:05 [2025-01-18 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272779', 'tblTempUsageDetail_20' ) start [2025-01-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272779', 'tblTempUsageDetail_20' ) end [2025-01-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272779', 'tblTempVendorCDR_20' ) start [2025-01-18 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272779', 'tblTempVendorCDR_20' ) end [2025-01-18 03:08:18] Production.INFO: ProcessCDR(1,14272779,1,1,2) [2025-01-18 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272779', 'tblTempUsageDetail_20' ) start [2025-01-18 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272779', 'tblTempUsageDetail_20' ) end [2025-01-18 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:08:21] Production.INFO: ==14466== Releasing lock... [2025-01-18 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:09:05 [end_date_ymd] => 2025-01-18 03:09:05 [RateCDR] => 1 ) [2025-01-18 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:09:05' and `end` < '2025-01-18 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:09:18] Production.INFO: count ==571 [2025-01-18 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:09:05 - End Time 2025-01-18 03:09:05 [2025-01-18 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272784', 'tblTempUsageDetail_20' ) start [2025-01-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272784', 'tblTempUsageDetail_20' ) end [2025-01-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272784', 'tblTempVendorCDR_20' ) start [2025-01-18 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272784', 'tblTempVendorCDR_20' ) end [2025-01-18 03:09:18] Production.INFO: ProcessCDR(1,14272784,1,1,2) [2025-01-18 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272784', 'tblTempUsageDetail_20' ) start [2025-01-18 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272784', 'tblTempUsageDetail_20' ) end [2025-01-18 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:09:21] Production.INFO: ==14641== Releasing lock... [2025-01-18 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:10:05 [end_date_ymd] => 2025-01-18 03:10:05 [RateCDR] => 1 ) [2025-01-18 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:10:05' and `end` < '2025-01-18 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:10:19] Production.INFO: count ==571 [2025-01-18 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:10:05 - End Time 2025-01-18 03:10:05 [2025-01-18 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272789', 'tblTempUsageDetail_20' ) start [2025-01-18 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272789', 'tblTempUsageDetail_20' ) end [2025-01-18 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272789', 'tblTempVendorCDR_20' ) start [2025-01-18 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272789', 'tblTempVendorCDR_20' ) end [2025-01-18 03:10:19] Production.INFO: ProcessCDR(1,14272789,1,1,2) [2025-01-18 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272789', 'tblTempUsageDetail_20' ) start [2025-01-18 03:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272789', 'tblTempUsageDetail_20' ) end [2025-01-18 03:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:10:23] Production.INFO: ==14739== Releasing lock... [2025-01-18 03:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:10:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:11:06 [end_date_ymd] => 2025-01-18 03:11:06 [RateCDR] => 1 ) [2025-01-18 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:11:06' and `end` < '2025-01-18 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:11:18] Production.INFO: count ==571 [2025-01-18 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:11:06 - End Time 2025-01-18 03:11:06 [2025-01-18 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272795', 'tblTempUsageDetail_20' ) start [2025-01-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272795', 'tblTempUsageDetail_20' ) end [2025-01-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272795', 'tblTempVendorCDR_20' ) start [2025-01-18 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272795', 'tblTempVendorCDR_20' ) end [2025-01-18 03:11:18] Production.INFO: ProcessCDR(1,14272795,1,1,2) [2025-01-18 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272795', 'tblTempUsageDetail_20' ) start [2025-01-18 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272795', 'tblTempUsageDetail_20' ) end [2025-01-18 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:11:21] Production.INFO: ==14840== Releasing lock... [2025-01-18 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:12:05 [end_date_ymd] => 2025-01-18 03:12:05 [RateCDR] => 1 ) [2025-01-18 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:12:05' and `end` < '2025-01-18 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:12:17] Production.INFO: count ==571 [2025-01-18 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:12:05 - End Time 2025-01-18 03:12:05 [2025-01-18 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272800', 'tblTempUsageDetail_20' ) start [2025-01-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272800', 'tblTempUsageDetail_20' ) end [2025-01-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272800', 'tblTempVendorCDR_20' ) start [2025-01-18 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272800', 'tblTempVendorCDR_20' ) end [2025-01-18 03:12:17] Production.INFO: ProcessCDR(1,14272800,1,1,2) [2025-01-18 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272800', 'tblTempUsageDetail_20' ) start [2025-01-18 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272800', 'tblTempUsageDetail_20' ) end [2025-01-18 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:12:20] Production.INFO: ==14938== Releasing lock... [2025-01-18 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:12:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:13:05 [end_date_ymd] => 2025-01-18 03:13:05 [RateCDR] => 1 ) [2025-01-18 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:13:05' and `end` < '2025-01-18 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:13:20] Production.INFO: count ==571 [2025-01-18 03:13:20] Production.ERROR: pbx CDR StartTime 2025-01-18 00:13:05 - End Time 2025-01-18 03:13:05 [2025-01-18 03:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272805', 'tblTempUsageDetail_20' ) start [2025-01-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272805', 'tblTempUsageDetail_20' ) end [2025-01-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272805', 'tblTempVendorCDR_20' ) start [2025-01-18 03:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272805', 'tblTempVendorCDR_20' ) end [2025-01-18 03:13:20] Production.INFO: ProcessCDR(1,14272805,1,1,2) [2025-01-18 03:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272805', 'tblTempUsageDetail_20' ) start [2025-01-18 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272805', 'tblTempUsageDetail_20' ) end [2025-01-18 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:13:23] Production.INFO: ==15153== Releasing lock... [2025-01-18 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:13:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:14:05 [end_date_ymd] => 2025-01-18 03:14:05 [RateCDR] => 1 ) [2025-01-18 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:14:05' and `end` < '2025-01-18 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:14:17] Production.INFO: count ==571 [2025-01-18 03:14:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:14:05 - End Time 2025-01-18 03:14:05 [2025-01-18 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272810', 'tblTempUsageDetail_20' ) start [2025-01-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272810', 'tblTempUsageDetail_20' ) end [2025-01-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272810', 'tblTempVendorCDR_20' ) start [2025-01-18 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272810', 'tblTempVendorCDR_20' ) end [2025-01-18 03:14:17] Production.INFO: ProcessCDR(1,14272810,1,1,2) [2025-01-18 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272810', 'tblTempUsageDetail_20' ) start [2025-01-18 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272810', 'tblTempUsageDetail_20' ) end [2025-01-18 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:14:21] Production.INFO: ==15230== Releasing lock... [2025-01-18 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:15:05 [end_date_ymd] => 2025-01-18 03:15:05 [RateCDR] => 1 ) [2025-01-18 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:15:05' and `end` < '2025-01-18 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:15:17] Production.INFO: count ==571 [2025-01-18 03:15:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:15:05 - End Time 2025-01-18 03:15:05 [2025-01-18 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272811', 'tblTempUsageDetail_20' ) start [2025-01-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272811', 'tblTempUsageDetail_20' ) end [2025-01-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272811', 'tblTempVendorCDR_20' ) start [2025-01-18 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272811', 'tblTempVendorCDR_20' ) end [2025-01-18 03:15:17] Production.INFO: ProcessCDR(1,14272811,1,1,2) [2025-01-18 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272811', 'tblTempUsageDetail_20' ) start [2025-01-18 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272811', 'tblTempUsageDetail_20' ) end [2025-01-18 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:15:21] Production.INFO: ==15303== Releasing lock... [2025-01-18 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-18 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:16:06 [end_date_ymd] => 2025-01-18 03:16:06 [RateCDR] => 1 ) [2025-01-18 03:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:16:06' and `end` < '2025-01-18 03:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:16:19] Production.INFO: count ==569 [2025-01-18 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:16:06 - End Time 2025-01-18 03:16:06 [2025-01-18 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272820', 'tblTempUsageDetail_20' ) start [2025-01-18 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272820', 'tblTempUsageDetail_20' ) end [2025-01-18 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272820', 'tblTempVendorCDR_20' ) start [2025-01-18 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272820', 'tblTempVendorCDR_20' ) end [2025-01-18 03:16:19] Production.INFO: ProcessCDR(1,14272820,1,1,2) [2025-01-18 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272820', 'tblTempUsageDetail_20' ) start [2025-01-18 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272820', 'tblTempUsageDetail_20' ) end [2025-01-18 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:16:22] Production.INFO: ==15372== Releasing lock... [2025-01-18 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:16:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:17:05 [end_date_ymd] => 2025-01-18 03:17:05 [RateCDR] => 1 ) [2025-01-18 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:17:05' and `end` < '2025-01-18 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:17:18] Production.INFO: count ==569 [2025-01-18 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:17:05 - End Time 2025-01-18 03:17:05 [2025-01-18 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272825', 'tblTempUsageDetail_20' ) start [2025-01-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272825', 'tblTempUsageDetail_20' ) end [2025-01-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272825', 'tblTempVendorCDR_20' ) start [2025-01-18 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272825', 'tblTempVendorCDR_20' ) end [2025-01-18 03:17:18] Production.INFO: ProcessCDR(1,14272825,1,1,2) [2025-01-18 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272825', 'tblTempUsageDetail_20' ) start [2025-01-18 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272825', 'tblTempUsageDetail_20' ) end [2025-01-18 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:17:21] Production.INFO: ==15518== Releasing lock... [2025-01-18 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:18:05 [end_date_ymd] => 2025-01-18 03:18:05 [RateCDR] => 1 ) [2025-01-18 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:18:05' and `end` < '2025-01-18 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:18:18] Production.INFO: count ==569 [2025-01-18 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:18:05 - End Time 2025-01-18 03:18:05 [2025-01-18 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272830', 'tblTempUsageDetail_20' ) start [2025-01-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272830', 'tblTempUsageDetail_20' ) end [2025-01-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272830', 'tblTempVendorCDR_20' ) start [2025-01-18 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272830', 'tblTempVendorCDR_20' ) end [2025-01-18 03:18:18] Production.INFO: ProcessCDR(1,14272830,1,1,2) [2025-01-18 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272830', 'tblTempUsageDetail_20' ) start [2025-01-18 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272830', 'tblTempUsageDetail_20' ) end [2025-01-18 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:18:21] Production.INFO: ==15591== Releasing lock... [2025-01-18 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:19:05 [end_date_ymd] => 2025-01-18 03:19:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:19:05' and `end` < '2025-01-18 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-01-18 03:19:20] Production.INFO: count ==567 [2025-01-18 03:19:20] Production.ERROR: pbx CDR StartTime 2025-01-18 00:19:05 - End Time 2025-01-18 03:19:05 [2025-01-18 03:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272835', 'tblTempUsageDetail_20' ) start [2025-01-18 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272835', 'tblTempUsageDetail_20' ) end [2025-01-18 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272835', 'tblTempVendorCDR_20' ) start [2025-01-18 03:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272835', 'tblTempVendorCDR_20' ) end [2025-01-18 03:19:20] Production.INFO: ProcessCDR(1,14272835,1,1,2) [2025-01-18 03:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272835', 'tblTempUsageDetail_20' ) start [2025-01-18 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272835', 'tblTempUsageDetail_20' ) end [2025-01-18 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:19:24] Production.INFO: ==15668== Releasing lock... [2025-01-18 03:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:19:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:20:06 [end_date_ymd] => 2025-01-18 03:20:06 [RateCDR] => 1 ) [2025-01-18 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:20:06' and `end` < '2025-01-18 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:20:18] Production.INFO: count ==567 [2025-01-18 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:20:06 - End Time 2025-01-18 03:20:06 [2025-01-18 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272841', 'tblTempUsageDetail_20' ) start [2025-01-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272841', 'tblTempUsageDetail_20' ) end [2025-01-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272841', 'tblTempVendorCDR_20' ) start [2025-01-18 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272841', 'tblTempVendorCDR_20' ) end [2025-01-18 03:20:18] Production.INFO: ProcessCDR(1,14272841,1,1,2) [2025-01-18 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272841', 'tblTempUsageDetail_20' ) start [2025-01-18 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272841', 'tblTempUsageDetail_20' ) end [2025-01-18 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:20:22] Production.INFO: ==15739== Releasing lock... [2025-01-18 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:21:05 [end_date_ymd] => 2025-01-18 03:21:05 [RateCDR] => 1 ) [2025-01-18 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:21:05' and `end` < '2025-01-18 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:21:17] Production.INFO: count ==539 [2025-01-18 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:21:05 - End Time 2025-01-18 03:21:05 [2025-01-18 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272846', 'tblTempUsageDetail_20' ) start [2025-01-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272846', 'tblTempUsageDetail_20' ) end [2025-01-18 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272846', 'tblTempVendorCDR_20' ) start [2025-01-18 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272846', 'tblTempVendorCDR_20' ) end [2025-01-18 03:21:18] Production.INFO: ProcessCDR(1,14272846,1,1,2) [2025-01-18 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272846', 'tblTempUsageDetail_20' ) start [2025-01-18 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272846', 'tblTempUsageDetail_20' ) end [2025-01-18 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:21:21] Production.INFO: ==15809== Releasing lock... [2025-01-18 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-18 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:22:05 [end_date_ymd] => 2025-01-18 03:22:05 [RateCDR] => 1 ) [2025-01-18 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:22:05' and `end` < '2025-01-18 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:22:18] Production.INFO: count ==535 [2025-01-18 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:22:05 - End Time 2025-01-18 03:22:05 [2025-01-18 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272851', 'tblTempUsageDetail_20' ) start [2025-01-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272851', 'tblTempUsageDetail_20' ) end [2025-01-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272851', 'tblTempVendorCDR_20' ) start [2025-01-18 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272851', 'tblTempVendorCDR_20' ) end [2025-01-18 03:22:18] Production.INFO: ProcessCDR(1,14272851,1,1,2) [2025-01-18 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272851', 'tblTempUsageDetail_20' ) start [2025-01-18 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272851', 'tblTempUsageDetail_20' ) end [2025-01-18 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:22:22] Production.INFO: ==15879== Releasing lock... [2025-01-18 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:23:05 [end_date_ymd] => 2025-01-18 03:23:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:23:05' and `end` < '2025-01-18 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-01-18 03:23:18] Production.INFO: count ==530 [2025-01-18 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:23:05 - End Time 2025-01-18 03:23:05 [2025-01-18 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272856', 'tblTempUsageDetail_20' ) start [2025-01-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272856', 'tblTempUsageDetail_20' ) end [2025-01-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272856', 'tblTempVendorCDR_20' ) start [2025-01-18 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272856', 'tblTempVendorCDR_20' ) end [2025-01-18 03:23:18] Production.INFO: ProcessCDR(1,14272856,1,1,2) [2025-01-18 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272856', 'tblTempUsageDetail_20' ) start [2025-01-18 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272856', 'tblTempUsageDetail_20' ) end [2025-01-18 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:23:21] Production.INFO: ==15947== Releasing lock... [2025-01-18 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:24:05 [end_date_ymd] => 2025-01-18 03:24:05 [RateCDR] => 1 ) [2025-01-18 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:24:05' and `end` < '2025-01-18 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:24:17] Production.INFO: count ==527 [2025-01-18 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:24:05 - End Time 2025-01-18 03:24:05 [2025-01-18 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272861', 'tblTempUsageDetail_20' ) start [2025-01-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272861', 'tblTempUsageDetail_20' ) end [2025-01-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272861', 'tblTempVendorCDR_20' ) start [2025-01-18 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272861', 'tblTempVendorCDR_20' ) end [2025-01-18 03:24:17] Production.INFO: ProcessCDR(1,14272861,1,1,2) [2025-01-18 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272861', 'tblTempUsageDetail_20' ) start [2025-01-18 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272861', 'tblTempUsageDetail_20' ) end [2025-01-18 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:24:21] Production.INFO: ==16015== Releasing lock... [2025-01-18 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:25:05 [end_date_ymd] => 2025-01-18 03:25:05 [RateCDR] => 1 ) [2025-01-18 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:25:05' and `end` < '2025-01-18 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:25:17] Production.INFO: count ==527 [2025-01-18 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:25:05 - End Time 2025-01-18 03:25:05 [2025-01-18 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272866', 'tblTempUsageDetail_20' ) start [2025-01-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272866', 'tblTempUsageDetail_20' ) end [2025-01-18 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272866', 'tblTempVendorCDR_20' ) start [2025-01-18 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272866', 'tblTempVendorCDR_20' ) end [2025-01-18 03:25:18] Production.INFO: ProcessCDR(1,14272866,1,1,2) [2025-01-18 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272866', 'tblTempUsageDetail_20' ) start [2025-01-18 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272866', 'tblTempUsageDetail_20' ) end [2025-01-18 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:25:21] Production.INFO: ==16085== Releasing lock... [2025-01-18 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:26:05 [end_date_ymd] => 2025-01-18 03:26:05 [RateCDR] => 1 ) [2025-01-18 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:26:05' and `end` < '2025-01-18 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:26:18] Production.INFO: count ==527 [2025-01-18 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:26:05 - End Time 2025-01-18 03:26:05 [2025-01-18 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272871', 'tblTempUsageDetail_20' ) start [2025-01-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272871', 'tblTempUsageDetail_20' ) end [2025-01-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272871', 'tblTempVendorCDR_20' ) start [2025-01-18 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272871', 'tblTempVendorCDR_20' ) end [2025-01-18 03:26:18] Production.INFO: ProcessCDR(1,14272871,1,1,2) [2025-01-18 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272871', 'tblTempUsageDetail_20' ) start [2025-01-18 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272871', 'tblTempUsageDetail_20' ) end [2025-01-18 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:26:22] Production.INFO: ==16156== Releasing lock... [2025-01-18 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:27:05 [end_date_ymd] => 2025-01-18 03:27:05 [RateCDR] => 1 ) [2025-01-18 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:27:05' and `end` < '2025-01-18 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:27:17] Production.INFO: count ==526 [2025-01-18 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:27:05 - End Time 2025-01-18 03:27:05 [2025-01-18 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272876', 'tblTempUsageDetail_20' ) start [2025-01-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272876', 'tblTempUsageDetail_20' ) end [2025-01-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272876', 'tblTempVendorCDR_20' ) start [2025-01-18 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272876', 'tblTempVendorCDR_20' ) end [2025-01-18 03:27:18] Production.INFO: ProcessCDR(1,14272876,1,1,2) [2025-01-18 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272876', 'tblTempUsageDetail_20' ) start [2025-01-18 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272876', 'tblTempUsageDetail_20' ) end [2025-01-18 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:27:21] Production.INFO: ==16227== Releasing lock... [2025-01-18 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:28:05 [end_date_ymd] => 2025-01-18 03:28:05 [RateCDR] => 1 ) [2025-01-18 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:28:05' and `end` < '2025-01-18 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:28:18] Production.INFO: count ==526 [2025-01-18 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:28:05 - End Time 2025-01-18 03:28:05 [2025-01-18 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272881', 'tblTempUsageDetail_20' ) start [2025-01-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272881', 'tblTempUsageDetail_20' ) end [2025-01-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272881', 'tblTempVendorCDR_20' ) start [2025-01-18 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272881', 'tblTempVendorCDR_20' ) end [2025-01-18 03:28:18] Production.INFO: ProcessCDR(1,14272881,1,1,2) [2025-01-18 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272881', 'tblTempUsageDetail_20' ) start [2025-01-18 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272881', 'tblTempUsageDetail_20' ) end [2025-01-18 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:28:21] Production.INFO: ==16296== Releasing lock... [2025-01-18 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:29:05 [end_date_ymd] => 2025-01-18 03:29:05 [RateCDR] => 1 ) [2025-01-18 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:29:05' and `end` < '2025-01-18 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:29:18] Production.INFO: count ==526 [2025-01-18 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:29:05 - End Time 2025-01-18 03:29:05 [2025-01-18 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272886', 'tblTempUsageDetail_20' ) start [2025-01-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272886', 'tblTempUsageDetail_20' ) end [2025-01-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272886', 'tblTempVendorCDR_20' ) start [2025-01-18 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272886', 'tblTempVendorCDR_20' ) end [2025-01-18 03:29:18] Production.INFO: ProcessCDR(1,14272886,1,1,2) [2025-01-18 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272886', 'tblTempUsageDetail_20' ) start [2025-01-18 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272886', 'tblTempUsageDetail_20' ) end [2025-01-18 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:29:21] Production.INFO: ==16365== Releasing lock... [2025-01-18 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:30:06 [end_date_ymd] => 2025-01-18 03:30:06 [RateCDR] => 1 ) [2025-01-18 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:30:06' and `end` < '2025-01-18 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:30:18] Production.INFO: count ==526 [2025-01-18 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:30:06 - End Time 2025-01-18 03:30:06 [2025-01-18 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272892', 'tblTempUsageDetail_20' ) start [2025-01-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272892', 'tblTempUsageDetail_20' ) end [2025-01-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272892', 'tblTempVendorCDR_20' ) start [2025-01-18 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272892', 'tblTempVendorCDR_20' ) end [2025-01-18 03:30:18] Production.INFO: ProcessCDR(1,14272892,1,1,2) [2025-01-18 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272892', 'tblTempUsageDetail_20' ) start [2025-01-18 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272892', 'tblTempUsageDetail_20' ) end [2025-01-18 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:30:22] Production.INFO: ==16475== Releasing lock... [2025-01-18 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-18 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:31:06 [end_date_ymd] => 2025-01-18 03:31:06 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:31:06' and `end` < '2025-01-18 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-01-18 03:31:19] Production.INFO: count ==493 [2025-01-18 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:31:06 - End Time 2025-01-18 03:31:06 [2025-01-18 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272897', 'tblTempUsageDetail_20' ) start [2025-01-18 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272897', 'tblTempUsageDetail_20' ) end [2025-01-18 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272897', 'tblTempVendorCDR_20' ) start [2025-01-18 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272897', 'tblTempVendorCDR_20' ) end [2025-01-18 03:31:19] Production.INFO: ProcessCDR(1,14272897,1,1,2) [2025-01-18 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272897', 'tblTempUsageDetail_20' ) start [2025-01-18 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272897', 'tblTempUsageDetail_20' ) end [2025-01-18 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:31:22] Production.INFO: ==16546== Releasing lock... [2025-01-18 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:31:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:32:05 [end_date_ymd] => 2025-01-18 03:32:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:32:05' and `end` < '2025-01-18 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-01-18 03:32:18] Production.INFO: count ==493 [2025-01-18 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:32:05 - End Time 2025-01-18 03:32:05 [2025-01-18 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272902', 'tblTempUsageDetail_20' ) start [2025-01-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272902', 'tblTempUsageDetail_20' ) end [2025-01-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272902', 'tblTempVendorCDR_20' ) start [2025-01-18 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272902', 'tblTempVendorCDR_20' ) end [2025-01-18 03:32:18] Production.INFO: ProcessCDR(1,14272902,1,1,2) [2025-01-18 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272902', 'tblTempUsageDetail_20' ) start [2025-01-18 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272902', 'tblTempUsageDetail_20' ) end [2025-01-18 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:32:22] Production.INFO: ==16616== Releasing lock... [2025-01-18 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:33:06 [end_date_ymd] => 2025-01-18 03:33:06 [RateCDR] => 1 ) [2025-01-18 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:33:06' and `end` < '2025-01-18 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:33:18] Production.INFO: count ==493 [2025-01-18 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:33:06 - End Time 2025-01-18 03:33:06 [2025-01-18 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272907', 'tblTempUsageDetail_20' ) start [2025-01-18 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272907', 'tblTempUsageDetail_20' ) end [2025-01-18 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272907', 'tblTempVendorCDR_20' ) start [2025-01-18 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272907', 'tblTempVendorCDR_20' ) end [2025-01-18 03:33:19] Production.INFO: ProcessCDR(1,14272907,1,1,2) [2025-01-18 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272907', 'tblTempUsageDetail_20' ) start [2025-01-18 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272907', 'tblTempUsageDetail_20' ) end [2025-01-18 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:33:22] Production.INFO: ==16689== Releasing lock... [2025-01-18 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:33:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:34:06 [end_date_ymd] => 2025-01-18 03:34:06 [RateCDR] => 1 ) [2025-01-18 03:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:34:06' and `end` < '2025-01-18 03:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:34:19] Production.INFO: count ==493 [2025-01-18 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:34:06 - End Time 2025-01-18 03:34:06 [2025-01-18 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272912', 'tblTempUsageDetail_20' ) start [2025-01-18 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272912', 'tblTempUsageDetail_20' ) end [2025-01-18 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272912', 'tblTempVendorCDR_20' ) start [2025-01-18 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272912', 'tblTempVendorCDR_20' ) end [2025-01-18 03:34:19] Production.INFO: ProcessCDR(1,14272912,1,1,2) [2025-01-18 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272912', 'tblTempUsageDetail_20' ) start [2025-01-18 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272912', 'tblTempUsageDetail_20' ) end [2025-01-18 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:34:23] Production.INFO: ==16759== Releasing lock... [2025-01-18 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:34:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:35:06 [end_date_ymd] => 2025-01-18 03:35:06 [RateCDR] => 1 ) [2025-01-18 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:35:06' and `end` < '2025-01-18 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:35:19] Production.INFO: count ==493 [2025-01-18 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:35:06 - End Time 2025-01-18 03:35:06 [2025-01-18 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272917', 'tblTempUsageDetail_20' ) start [2025-01-18 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272917', 'tblTempUsageDetail_20' ) end [2025-01-18 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272917', 'tblTempVendorCDR_20' ) start [2025-01-18 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272917', 'tblTempVendorCDR_20' ) end [2025-01-18 03:35:19] Production.INFO: ProcessCDR(1,14272917,1,1,2) [2025-01-18 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272917', 'tblTempUsageDetail_20' ) start [2025-01-18 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272917', 'tblTempUsageDetail_20' ) end [2025-01-18 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:35:23] Production.INFO: ==16829== Releasing lock... [2025-01-18 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:35:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:36:05 [end_date_ymd] => 2025-01-18 03:36:05 [RateCDR] => 1 ) [2025-01-18 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:36:05' and `end` < '2025-01-18 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:36:18] Production.INFO: count ==493 [2025-01-18 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:36:05 - End Time 2025-01-18 03:36:05 [2025-01-18 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272922', 'tblTempUsageDetail_20' ) start [2025-01-18 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272922', 'tblTempUsageDetail_20' ) end [2025-01-18 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272922', 'tblTempVendorCDR_20' ) start [2025-01-18 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272922', 'tblTempVendorCDR_20' ) end [2025-01-18 03:36:18] Production.INFO: ProcessCDR(1,14272922,1,1,2) [2025-01-18 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272922', 'tblTempUsageDetail_20' ) start [2025-01-18 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272922', 'tblTempUsageDetail_20' ) end [2025-01-18 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:36:22] Production.INFO: ==16915== Releasing lock... [2025-01-18 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:37:05 [end_date_ymd] => 2025-01-18 03:37:05 [RateCDR] => 1 ) [2025-01-18 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:37:05' and `end` < '2025-01-18 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:37:18] Production.INFO: count ==492 [2025-01-18 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:37:05 - End Time 2025-01-18 03:37:05 [2025-01-18 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272927', 'tblTempUsageDetail_20' ) start [2025-01-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272927', 'tblTempUsageDetail_20' ) end [2025-01-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272927', 'tblTempVendorCDR_20' ) start [2025-01-18 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272927', 'tblTempVendorCDR_20' ) end [2025-01-18 03:37:18] Production.INFO: ProcessCDR(1,14272927,1,1,2) [2025-01-18 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272927', 'tblTempUsageDetail_20' ) start [2025-01-18 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272927', 'tblTempUsageDetail_20' ) end [2025-01-18 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:37:22] Production.INFO: ==17004== Releasing lock... [2025-01-18 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:37:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:38:05 [end_date_ymd] => 2025-01-18 03:38:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:38:05' and `end` < '2025-01-18 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-01-18 03:38:18] Production.INFO: count ==491 [2025-01-18 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:38:05 - End Time 2025-01-18 03:38:05 [2025-01-18 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272932', 'tblTempUsageDetail_20' ) start [2025-01-18 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272932', 'tblTempUsageDetail_20' ) end [2025-01-18 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272932', 'tblTempVendorCDR_20' ) start [2025-01-18 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272932', 'tblTempVendorCDR_20' ) end [2025-01-18 03:38:18] Production.INFO: ProcessCDR(1,14272932,1,1,2) [2025-01-18 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272932', 'tblTempUsageDetail_20' ) start [2025-01-18 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272932', 'tblTempUsageDetail_20' ) end [2025-01-18 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:38:22] Production.INFO: ==17076== Releasing lock... [2025-01-18 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:38:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:39:05 [end_date_ymd] => 2025-01-18 03:39:05 [RateCDR] => 1 ) [2025-01-18 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:39:05' and `end` < '2025-01-18 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:39:18] Production.INFO: count ==491 [2025-01-18 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:39:05 - End Time 2025-01-18 03:39:05 [2025-01-18 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272937', 'tblTempUsageDetail_20' ) start [2025-01-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272937', 'tblTempUsageDetail_20' ) end [2025-01-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272937', 'tblTempVendorCDR_20' ) start [2025-01-18 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272937', 'tblTempVendorCDR_20' ) end [2025-01-18 03:39:18] Production.INFO: ProcessCDR(1,14272937,1,1,2) [2025-01-18 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272937', 'tblTempUsageDetail_20' ) start [2025-01-18 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272937', 'tblTempUsageDetail_20' ) end [2025-01-18 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:39:21] Production.INFO: ==17145== Releasing lock... [2025-01-18 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:39:21] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:40:07 [end_date_ymd] => 2025-01-18 03:40:07 [RateCDR] => 1 ) [2025-01-18 03: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-01-18 00:40:07' and `end` < '2025-01-18 03: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-01-18 03:40:19] Production.INFO: count ==489 [2025-01-18 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:40:07 - End Time 2025-01-18 03:40:07 [2025-01-18 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272943', 'tblTempUsageDetail_20' ) start [2025-01-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272943', 'tblTempUsageDetail_20' ) end [2025-01-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272943', 'tblTempVendorCDR_20' ) start [2025-01-18 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272943', 'tblTempVendorCDR_20' ) end [2025-01-18 03:40:19] Production.INFO: ProcessCDR(1,14272943,1,1,2) [2025-01-18 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272943', 'tblTempUsageDetail_20' ) start [2025-01-18 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272943', 'tblTempUsageDetail_20' ) end [2025-01-18 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:40:23] Production.INFO: ==17218== Releasing lock... [2025-01-18 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:40:23] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:41:05 [end_date_ymd] => 2025-01-18 03:41:05 [RateCDR] => 1 ) [2025-01-18 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:41:05' and `end` < '2025-01-18 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:41:18] Production.INFO: count ==473 [2025-01-18 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:41:05 - End Time 2025-01-18 03:41:05 [2025-01-18 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272948', 'tblTempUsageDetail_20' ) start [2025-01-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272948', 'tblTempUsageDetail_20' ) end [2025-01-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272948', 'tblTempVendorCDR_20' ) start [2025-01-18 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272948', 'tblTempVendorCDR_20' ) end [2025-01-18 03:41:18] Production.INFO: ProcessCDR(1,14272948,1,1,2) [2025-01-18 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272948', 'tblTempUsageDetail_20' ) start [2025-01-18 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272948', 'tblTempUsageDetail_20' ) end [2025-01-18 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:41:22] Production.INFO: ==17291== Releasing lock... [2025-01-18 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:41:22] Production.INFO: 31 MB #Memory Used# [2025-01-18 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:42:06 [end_date_ymd] => 2025-01-18 03:42:06 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:42:06' and `end` < '2025-01-18 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-01-18 03:42:18] Production.INFO: count ==470 [2025-01-18 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:42:06 - End Time 2025-01-18 03:42:06 [2025-01-18 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272953', 'tblTempUsageDetail_20' ) start [2025-01-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272953', 'tblTempUsageDetail_20' ) end [2025-01-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272953', 'tblTempVendorCDR_20' ) start [2025-01-18 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272953', 'tblTempVendorCDR_20' ) end [2025-01-18 03:42:18] Production.INFO: ProcessCDR(1,14272953,1,1,2) [2025-01-18 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272953', 'tblTempUsageDetail_20' ) start [2025-01-18 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272953', 'tblTempUsageDetail_20' ) end [2025-01-18 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:42:22] Production.INFO: ==17368== Releasing lock... [2025-01-18 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:43:05 [end_date_ymd] => 2025-01-18 03:43:05 [RateCDR] => 1 ) [2025-01-18 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:43:05' and `end` < '2025-01-18 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:43:18] Production.INFO: count ==470 [2025-01-18 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:43:05 - End Time 2025-01-18 03:43:05 [2025-01-18 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272958', 'tblTempUsageDetail_20' ) start [2025-01-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272958', 'tblTempUsageDetail_20' ) end [2025-01-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272958', 'tblTempVendorCDR_20' ) start [2025-01-18 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272958', 'tblTempVendorCDR_20' ) end [2025-01-18 03:43:18] Production.INFO: ProcessCDR(1,14272958,1,1,2) [2025-01-18 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272958', 'tblTempUsageDetail_20' ) start [2025-01-18 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272958', 'tblTempUsageDetail_20' ) end [2025-01-18 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:43:22] Production.INFO: ==17436== Releasing lock... [2025-01-18 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:44:06 [end_date_ymd] => 2025-01-18 03:44:06 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:44:06' and `end` < '2025-01-18 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-01-18 03:44:18] Production.INFO: count ==470 [2025-01-18 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:44:06 - End Time 2025-01-18 03:44:06 [2025-01-18 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272963', 'tblTempUsageDetail_20' ) start [2025-01-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272963', 'tblTempUsageDetail_20' ) end [2025-01-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272963', 'tblTempVendorCDR_20' ) start [2025-01-18 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272963', 'tblTempVendorCDR_20' ) end [2025-01-18 03:44:18] Production.INFO: ProcessCDR(1,14272963,1,1,2) [2025-01-18 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272963', 'tblTempUsageDetail_20' ) start [2025-01-18 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272963', 'tblTempUsageDetail_20' ) end [2025-01-18 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:44:22] Production.INFO: ==17507== Releasing lock... [2025-01-18 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:45:05 [end_date_ymd] => 2025-01-18 03:45:05 [RateCDR] => 1 ) [2025-01-18 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:45:05' and `end` < '2025-01-18 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:45:17] Production.INFO: count ==470 [2025-01-18 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:45:05 - End Time 2025-01-18 03:45:05 [2025-01-18 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272968', 'tblTempUsageDetail_20' ) start [2025-01-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272968', 'tblTempUsageDetail_20' ) end [2025-01-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272968', 'tblTempVendorCDR_20' ) start [2025-01-18 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272968', 'tblTempVendorCDR_20' ) end [2025-01-18 03:45:17] Production.INFO: ProcessCDR(1,14272968,1,1,2) [2025-01-18 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272968', 'tblTempUsageDetail_20' ) start [2025-01-18 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272968', 'tblTempUsageDetail_20' ) end [2025-01-18 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:45:21] Production.INFO: ==17619== Releasing lock... [2025-01-18 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:46:06 [end_date_ymd] => 2025-01-18 03:46:06 [RateCDR] => 1 ) [2025-01-18 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:46:06' and `end` < '2025-01-18 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:46:19] Production.INFO: count ==463 [2025-01-18 03:46:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:46:06 - End Time 2025-01-18 03:46:06 [2025-01-18 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272973', 'tblTempUsageDetail_20' ) start [2025-01-18 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272973', 'tblTempUsageDetail_20' ) end [2025-01-18 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272973', 'tblTempVendorCDR_20' ) start [2025-01-18 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272973', 'tblTempVendorCDR_20' ) end [2025-01-18 03:46:19] Production.INFO: ProcessCDR(1,14272973,1,1,2) [2025-01-18 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272973', 'tblTempUsageDetail_20' ) start [2025-01-18 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272973', 'tblTempUsageDetail_20' ) end [2025-01-18 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:46:22] Production.INFO: ==17690== Releasing lock... [2025-01-18 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:47:05 [end_date_ymd] => 2025-01-18 03:47:05 [RateCDR] => 1 ) [2025-01-18 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:47:05' and `end` < '2025-01-18 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:47:18] Production.INFO: count ==462 [2025-01-18 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:47:05 - End Time 2025-01-18 03:47:05 [2025-01-18 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272978', 'tblTempUsageDetail_20' ) start [2025-01-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272978', 'tblTempUsageDetail_20' ) end [2025-01-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272978', 'tblTempVendorCDR_20' ) start [2025-01-18 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272978', 'tblTempVendorCDR_20' ) end [2025-01-18 03:47:18] Production.INFO: ProcessCDR(1,14272978,1,1,2) [2025-01-18 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272978', 'tblTempUsageDetail_20' ) start [2025-01-18 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272978', 'tblTempUsageDetail_20' ) end [2025-01-18 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:47:21] Production.INFO: ==17762== Releasing lock... [2025-01-18 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:48:06 [end_date_ymd] => 2025-01-18 03:48:06 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:48:06' and `end` < '2025-01-18 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-01-18 03:48:18] Production.INFO: count ==460 [2025-01-18 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:48:06 - End Time 2025-01-18 03:48:06 [2025-01-18 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272983', 'tblTempUsageDetail_20' ) start [2025-01-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272983', 'tblTempUsageDetail_20' ) end [2025-01-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272983', 'tblTempVendorCDR_20' ) start [2025-01-18 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272983', 'tblTempVendorCDR_20' ) end [2025-01-18 03:48:18] Production.INFO: ProcessCDR(1,14272983,1,1,2) [2025-01-18 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272983', 'tblTempUsageDetail_20' ) start [2025-01-18 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272983', 'tblTempUsageDetail_20' ) end [2025-01-18 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:48:22] Production.INFO: ==17837== Releasing lock... [2025-01-18 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:49:05 [end_date_ymd] => 2025-01-18 03:49:05 [RateCDR] => 1 ) [2025-01-18 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:49:05' and `end` < '2025-01-18 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:49:17] Production.INFO: count ==459 [2025-01-18 03:49:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:49:05 - End Time 2025-01-18 03:49:05 [2025-01-18 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272988', 'tblTempUsageDetail_20' ) start [2025-01-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272988', 'tblTempUsageDetail_20' ) end [2025-01-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272988', 'tblTempVendorCDR_20' ) start [2025-01-18 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272988', 'tblTempVendorCDR_20' ) end [2025-01-18 03:49:17] Production.INFO: ProcessCDR(1,14272988,1,1,2) [2025-01-18 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272988', 'tblTempUsageDetail_20' ) start [2025-01-18 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272988', 'tblTempUsageDetail_20' ) end [2025-01-18 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:49:21] Production.INFO: ==17907== Releasing lock... [2025-01-18 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:50:07 [end_date_ymd] => 2025-01-18 03:50:07 [RateCDR] => 1 ) [2025-01-18 03: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-01-18 00:50:07' and `end` < '2025-01-18 03: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-01-18 03:50:19] Production.INFO: count ==459 [2025-01-18 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:50:07 - End Time 2025-01-18 03:50:07 [2025-01-18 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272994', 'tblTempUsageDetail_20' ) start [2025-01-18 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272994', 'tblTempUsageDetail_20' ) end [2025-01-18 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272994', 'tblTempVendorCDR_20' ) start [2025-01-18 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272994', 'tblTempVendorCDR_20' ) end [2025-01-18 03:50:19] Production.INFO: ProcessCDR(1,14272994,1,1,2) [2025-01-18 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272994', 'tblTempUsageDetail_20' ) start [2025-01-18 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272994', 'tblTempUsageDetail_20' ) end [2025-01-18 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:50:23] Production.INFO: ==17983== Releasing lock... [2025-01-18 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:51:05 [end_date_ymd] => 2025-01-18 03:51:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:51:05' and `end` < '2025-01-18 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-01-18 03:51:18] Production.INFO: count ==439 [2025-01-18 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:51:05 - End Time 2025-01-18 03:51:05 [2025-01-18 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272999', 'tblTempUsageDetail_20' ) start [2025-01-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14272999', 'tblTempUsageDetail_20' ) end [2025-01-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272999', 'tblTempVendorCDR_20' ) start [2025-01-18 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14272999', 'tblTempVendorCDR_20' ) end [2025-01-18 03:51:18] Production.INFO: ProcessCDR(1,14272999,1,1,2) [2025-01-18 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14272999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14272999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14272999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14272999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272999', 'tblTempUsageDetail_20' ) start [2025-01-18 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14272999', 'tblTempUsageDetail_20' ) end [2025-01-18 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:51:22] Production.INFO: ==18057== Releasing lock... [2025-01-18 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:51:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:52:06 [end_date_ymd] => 2025-01-18 03:52:06 [RateCDR] => 1 ) [2025-01-18 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:52:06' and `end` < '2025-01-18 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:52:19] Production.INFO: count ==439 [2025-01-18 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-18 00:52:06 - End Time 2025-01-18 03:52:06 [2025-01-18 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273004', 'tblTempUsageDetail_20' ) start [2025-01-18 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273004', 'tblTempUsageDetail_20' ) end [2025-01-18 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273004', 'tblTempVendorCDR_20' ) start [2025-01-18 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273004', 'tblTempVendorCDR_20' ) end [2025-01-18 03:52:19] Production.INFO: ProcessCDR(1,14273004,1,1,2) [2025-01-18 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273004', 'tblTempUsageDetail_20' ) start [2025-01-18 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273004', 'tblTempUsageDetail_20' ) end [2025-01-18 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:52:23] Production.INFO: ==18130== Releasing lock... [2025-01-18 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:52:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:53:05 [end_date_ymd] => 2025-01-18 03:53:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 00:53:05' and `end` < '2025-01-18 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-01-18 03:53:18] Production.INFO: count ==438 [2025-01-18 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:53:05 - End Time 2025-01-18 03:53:05 [2025-01-18 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273009', 'tblTempUsageDetail_20' ) start [2025-01-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273009', 'tblTempUsageDetail_20' ) end [2025-01-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273009', 'tblTempVendorCDR_20' ) start [2025-01-18 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273009', 'tblTempVendorCDR_20' ) end [2025-01-18 03:53:18] Production.INFO: ProcessCDR(1,14273009,1,1,2) [2025-01-18 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273009', 'tblTempUsageDetail_20' ) start [2025-01-18 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273009', 'tblTempUsageDetail_20' ) end [2025-01-18 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:53:22] Production.INFO: ==18199== Releasing lock... [2025-01-18 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:53:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:54:05 [end_date_ymd] => 2025-01-18 03:54:05 [RateCDR] => 1 ) [2025-01-18 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:54:05' and `end` < '2025-01-18 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:54:17] Production.INFO: count ==438 [2025-01-18 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:54:05 - End Time 2025-01-18 03:54:05 [2025-01-18 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273014', 'tblTempUsageDetail_20' ) start [2025-01-18 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273014', 'tblTempUsageDetail_20' ) end [2025-01-18 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273014', 'tblTempVendorCDR_20' ) start [2025-01-18 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273014', 'tblTempVendorCDR_20' ) end [2025-01-18 03:54:17] Production.INFO: ProcessCDR(1,14273014,1,1,2) [2025-01-18 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273014', 'tblTempUsageDetail_20' ) start [2025-01-18 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273014', 'tblTempUsageDetail_20' ) end [2025-01-18 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:54:21] Production.INFO: ==18270== Releasing lock... [2025-01-18 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:55:06 [end_date_ymd] => 2025-01-18 03:55:06 [RateCDR] => 1 ) [2025-01-18 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:55:06' and `end` < '2025-01-18 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:55:18] Production.INFO: count ==437 [2025-01-18 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:55:06 - End Time 2025-01-18 03:55:06 [2025-01-18 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273019', 'tblTempUsageDetail_20' ) start [2025-01-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273019', 'tblTempUsageDetail_20' ) end [2025-01-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273019', 'tblTempVendorCDR_20' ) start [2025-01-18 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273019', 'tblTempVendorCDR_20' ) end [2025-01-18 03:55:18] Production.INFO: ProcessCDR(1,14273019,1,1,2) [2025-01-18 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273019', 'tblTempUsageDetail_20' ) start [2025-01-18 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273019', 'tblTempUsageDetail_20' ) end [2025-01-18 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:55:22] Production.INFO: ==18339== Releasing lock... [2025-01-18 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:56:06 [end_date_ymd] => 2025-01-18 03:56:06 [RateCDR] => 1 ) [2025-01-18 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:56:06' and `end` < '2025-01-18 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:56:18] Production.INFO: count ==436 [2025-01-18 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:56:06 - End Time 2025-01-18 03:56:06 [2025-01-18 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273024', 'tblTempUsageDetail_20' ) start [2025-01-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273024', 'tblTempUsageDetail_20' ) end [2025-01-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273024', 'tblTempVendorCDR_20' ) start [2025-01-18 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273024', 'tblTempVendorCDR_20' ) end [2025-01-18 03:56:18] Production.INFO: ProcessCDR(1,14273024,1,1,2) [2025-01-18 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273024', 'tblTempUsageDetail_20' ) start [2025-01-18 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273024', 'tblTempUsageDetail_20' ) end [2025-01-18 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:56:22] Production.INFO: ==18411== Releasing lock... [2025-01-18 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:57:05 [end_date_ymd] => 2025-01-18 03:57:05 [RateCDR] => 1 ) [2025-01-18 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:57:05' and `end` < '2025-01-18 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:57:18] Production.INFO: count ==436 [2025-01-18 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:57:05 - End Time 2025-01-18 03:57:05 [2025-01-18 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273029', 'tblTempUsageDetail_20' ) start [2025-01-18 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273029', 'tblTempUsageDetail_20' ) end [2025-01-18 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273029', 'tblTempVendorCDR_20' ) start [2025-01-18 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273029', 'tblTempVendorCDR_20' ) end [2025-01-18 03:57:18] Production.INFO: ProcessCDR(1,14273029,1,1,2) [2025-01-18 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273029', 'tblTempUsageDetail_20' ) start [2025-01-18 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273029', 'tblTempUsageDetail_20' ) end [2025-01-18 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:57:21] Production.INFO: ==18481== Releasing lock... [2025-01-18 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:58:06 [end_date_ymd] => 2025-01-18 03:58:06 [RateCDR] => 1 ) [2025-01-18 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:58:06' and `end` < '2025-01-18 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:58:18] Production.INFO: count ==436 [2025-01-18 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-18 00:58:06 - End Time 2025-01-18 03:58:06 [2025-01-18 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273034', 'tblTempUsageDetail_20' ) start [2025-01-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273034', 'tblTempUsageDetail_20' ) end [2025-01-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273034', 'tblTempVendorCDR_20' ) start [2025-01-18 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273034', 'tblTempVendorCDR_20' ) end [2025-01-18 03:58:18] Production.INFO: ProcessCDR(1,14273034,1,1,2) [2025-01-18 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273034', 'tblTempUsageDetail_20' ) start [2025-01-18 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273034', 'tblTempUsageDetail_20' ) end [2025-01-18 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:58:21] Production.INFO: ==18554== Releasing lock... [2025-01-18 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 00:59:05 [end_date_ymd] => 2025-01-18 03:59:05 [RateCDR] => 1 ) [2025-01-18 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 00:59:05' and `end` < '2025-01-18 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 03:59:17] Production.INFO: count ==436 [2025-01-18 03:59:17] Production.ERROR: pbx CDR StartTime 2025-01-18 00:59:05 - End Time 2025-01-18 03:59:05 [2025-01-18 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273039', 'tblTempUsageDetail_20' ) start [2025-01-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273039', 'tblTempUsageDetail_20' ) end [2025-01-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273039', 'tblTempVendorCDR_20' ) start [2025-01-18 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273039', 'tblTempVendorCDR_20' ) end [2025-01-18 03:59:17] Production.INFO: ProcessCDR(1,14273039,1,1,2) [2025-01-18 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273039', 'tblTempUsageDetail_20' ) start [2025-01-18 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273039', 'tblTempUsageDetail_20' ) end [2025-01-18 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 03:59:21] Production.INFO: ==18623== Releasing lock... [2025-01-18 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 03:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:00:07 [end_date_ymd] => 2025-01-18 04:00:07 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:00:07' and `end` < '2025-01-18 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-01-18 04:00:19] Production.INFO: count ==436 [2025-01-18 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:00:07 - End Time 2025-01-18 04:00:07 [2025-01-18 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273046', 'tblTempUsageDetail_20' ) start [2025-01-18 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273046', 'tblTempUsageDetail_20' ) end [2025-01-18 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273046', 'tblTempVendorCDR_20' ) start [2025-01-18 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273046', 'tblTempVendorCDR_20' ) end [2025-01-18 04:00:19] Production.INFO: ProcessCDR(1,14273046,1,1,2) [2025-01-18 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273046', 'tblTempUsageDetail_20' ) start [2025-01-18 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273046', 'tblTempUsageDetail_20' ) end [2025-01-18 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:00:23] Production.INFO: ==18699== Releasing lock... [2025-01-18 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:01:05 [end_date_ymd] => 2025-01-18 04:01:05 [RateCDR] => 1 ) [2025-01-18 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:01:05' and `end` < '2025-01-18 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:01:19] Production.INFO: count ==430 [2025-01-18 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:01:05 - End Time 2025-01-18 04:01:05 [2025-01-18 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273051', 'tblTempUsageDetail_20' ) start [2025-01-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273051', 'tblTempUsageDetail_20' ) end [2025-01-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273051', 'tblTempVendorCDR_20' ) start [2025-01-18 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273051', 'tblTempVendorCDR_20' ) end [2025-01-18 04:01:19] Production.INFO: ProcessCDR(1,14273051,1,1,2) [2025-01-18 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273051', 'tblTempUsageDetail_20' ) start [2025-01-18 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273051', 'tblTempUsageDetail_20' ) end [2025-01-18 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:01:22] Production.INFO: ==18824== Releasing lock... [2025-01-18 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:02:06 [end_date_ymd] => 2025-01-18 04:02:06 [RateCDR] => 1 ) [2025-01-18 04:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:02:06' and `end` < '2025-01-18 04:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:02:19] Production.INFO: count ==429 [2025-01-18 04:02:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:02:06 - End Time 2025-01-18 04:02:06 [2025-01-18 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273056', 'tblTempUsageDetail_20' ) start [2025-01-18 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273056', 'tblTempUsageDetail_20' ) end [2025-01-18 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273056', 'tblTempVendorCDR_20' ) start [2025-01-18 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273056', 'tblTempVendorCDR_20' ) end [2025-01-18 04:02:19] Production.INFO: ProcessCDR(1,14273056,1,1,2) [2025-01-18 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273056', 'tblTempUsageDetail_20' ) start [2025-01-18 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273056', 'tblTempUsageDetail_20' ) end [2025-01-18 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:02:23] Production.INFO: ==18896== Releasing lock... [2025-01-18 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:02:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:03:05 [end_date_ymd] => 2025-01-18 04:03:05 [RateCDR] => 1 ) [2025-01-18 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:03:05' and `end` < '2025-01-18 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:03:18] Production.INFO: count ==432 [2025-01-18 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:03:05 - End Time 2025-01-18 04:03:05 [2025-01-18 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273061', 'tblTempUsageDetail_20' ) start [2025-01-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273061', 'tblTempUsageDetail_20' ) end [2025-01-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273061', 'tblTempVendorCDR_20' ) start [2025-01-18 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273061', 'tblTempVendorCDR_20' ) end [2025-01-18 04:03:18] Production.INFO: ProcessCDR(1,14273061,1,1,2) [2025-01-18 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273061', 'tblTempUsageDetail_20' ) start [2025-01-18 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273061', 'tblTempUsageDetail_20' ) end [2025-01-18 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:03:21] Production.INFO: ==18970== Releasing lock... [2025-01-18 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:04:06 [end_date_ymd] => 2025-01-18 04:04:06 [RateCDR] => 1 ) [2025-01-18 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:04:06' and `end` < '2025-01-18 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:04:18] Production.INFO: count ==432 [2025-01-18 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:04:06 - End Time 2025-01-18 04:04:06 [2025-01-18 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273066', 'tblTempUsageDetail_20' ) start [2025-01-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273066', 'tblTempUsageDetail_20' ) end [2025-01-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273066', 'tblTempVendorCDR_20' ) start [2025-01-18 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273066', 'tblTempVendorCDR_20' ) end [2025-01-18 04:04:18] Production.INFO: ProcessCDR(1,14273066,1,1,2) [2025-01-18 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273066', 'tblTempUsageDetail_20' ) start [2025-01-18 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273066', 'tblTempUsageDetail_20' ) end [2025-01-18 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:04:21] Production.INFO: ==19041== Releasing lock... [2025-01-18 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:05:05 [end_date_ymd] => 2025-01-18 04:05:05 [RateCDR] => 1 ) [2025-01-18 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:05:05' and `end` < '2025-01-18 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:05:17] Production.INFO: count ==432 [2025-01-18 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:05:05 - End Time 2025-01-18 04:05:05 [2025-01-18 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273071', 'tblTempUsageDetail_20' ) start [2025-01-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273071', 'tblTempUsageDetail_20' ) end [2025-01-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273071', 'tblTempVendorCDR_20' ) start [2025-01-18 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273071', 'tblTempVendorCDR_20' ) end [2025-01-18 04:05:17] Production.INFO: ProcessCDR(1,14273071,1,1,2) [2025-01-18 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273071', 'tblTempUsageDetail_20' ) start [2025-01-18 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273071', 'tblTempUsageDetail_20' ) end [2025-01-18 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:05:21] Production.INFO: ==19110== Releasing lock... [2025-01-18 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:06:05 [end_date_ymd] => 2025-01-18 04:06:05 [RateCDR] => 1 ) [2025-01-18 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:06:05' and `end` < '2025-01-18 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:06:17] Production.INFO: count ==432 [2025-01-18 04:06:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:06:05 - End Time 2025-01-18 04:06:05 [2025-01-18 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273076', 'tblTempUsageDetail_20' ) start [2025-01-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273076', 'tblTempUsageDetail_20' ) end [2025-01-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273076', 'tblTempVendorCDR_20' ) start [2025-01-18 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273076', 'tblTempVendorCDR_20' ) end [2025-01-18 04:06:17] Production.INFO: ProcessCDR(1,14273076,1,1,2) [2025-01-18 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273076', 'tblTempUsageDetail_20' ) start [2025-01-18 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273076', 'tblTempUsageDetail_20' ) end [2025-01-18 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:06:21] Production.INFO: ==19180== Releasing lock... [2025-01-18 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:07:05 [end_date_ymd] => 2025-01-18 04:07:05 [RateCDR] => 1 ) [2025-01-18 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:07:05' and `end` < '2025-01-18 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:07:19] Production.INFO: count ==432 [2025-01-18 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:07:05 - End Time 2025-01-18 04:07:05 [2025-01-18 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273081', 'tblTempUsageDetail_20' ) start [2025-01-18 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273081', 'tblTempUsageDetail_20' ) end [2025-01-18 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273081', 'tblTempVendorCDR_20' ) start [2025-01-18 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273081', 'tblTempVendorCDR_20' ) end [2025-01-18 04:07:19] Production.INFO: ProcessCDR(1,14273081,1,1,2) [2025-01-18 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273081', 'tblTempUsageDetail_20' ) start [2025-01-18 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273081', 'tblTempUsageDetail_20' ) end [2025-01-18 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:07:22] Production.INFO: ==19253== Releasing lock... [2025-01-18 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:08:05 [end_date_ymd] => 2025-01-18 04:08:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:08:05' and `end` < '2025-01-18 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-01-18 04:08:17] Production.INFO: count ==432 [2025-01-18 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:08:05 - End Time 2025-01-18 04:08:05 [2025-01-18 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273086', 'tblTempUsageDetail_20' ) start [2025-01-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273086', 'tblTempUsageDetail_20' ) end [2025-01-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273086', 'tblTempVendorCDR_20' ) start [2025-01-18 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273086', 'tblTempVendorCDR_20' ) end [2025-01-18 04:08:17] Production.INFO: ProcessCDR(1,14273086,1,1,2) [2025-01-18 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273086', 'tblTempUsageDetail_20' ) start [2025-01-18 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273086', 'tblTempUsageDetail_20' ) end [2025-01-18 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:08:21] Production.INFO: ==19322== Releasing lock... [2025-01-18 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:09:05 [end_date_ymd] => 2025-01-18 04:09:05 [RateCDR] => 1 ) [2025-01-18 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:09:05' and `end` < '2025-01-18 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:09:18] Production.INFO: count ==432 [2025-01-18 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:09:05 - End Time 2025-01-18 04:09:05 [2025-01-18 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273091', 'tblTempUsageDetail_20' ) start [2025-01-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273091', 'tblTempUsageDetail_20' ) end [2025-01-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273091', 'tblTempVendorCDR_20' ) start [2025-01-18 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273091', 'tblTempVendorCDR_20' ) end [2025-01-18 04:09:18] Production.INFO: ProcessCDR(1,14273091,1,1,2) [2025-01-18 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273091', 'tblTempUsageDetail_20' ) start [2025-01-18 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273091', 'tblTempUsageDetail_20' ) end [2025-01-18 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:09:21] Production.INFO: ==19391== Releasing lock... [2025-01-18 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:10:07 [end_date_ymd] => 2025-01-18 04:10:07 [RateCDR] => 1 ) [2025-01-18 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:10:07' and `end` < '2025-01-18 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:10:20] Production.INFO: count ==428 [2025-01-18 04:10:20] Production.ERROR: pbx CDR StartTime 2025-01-18 01:10:07 - End Time 2025-01-18 04:10:07 [2025-01-18 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273097', 'tblTempUsageDetail_20' ) start [2025-01-18 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273097', 'tblTempUsageDetail_20' ) end [2025-01-18 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273097', 'tblTempVendorCDR_20' ) start [2025-01-18 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273097', 'tblTempVendorCDR_20' ) end [2025-01-18 04:10:20] Production.INFO: ProcessCDR(1,14273097,1,1,2) [2025-01-18 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273097', 'tblTempUsageDetail_20' ) start [2025-01-18 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273097', 'tblTempUsageDetail_20' ) end [2025-01-18 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:10:23] Production.INFO: ==19464== Releasing lock... [2025-01-18 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:11:05 [end_date_ymd] => 2025-01-18 04:11:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:11:05' and `end` < '2025-01-18 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-01-18 04:11:17] Production.INFO: count ==428 [2025-01-18 04:11:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:11:05 - End Time 2025-01-18 04:11:05 [2025-01-18 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273102', 'tblTempUsageDetail_20' ) start [2025-01-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273102', 'tblTempUsageDetail_20' ) end [2025-01-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273102', 'tblTempVendorCDR_20' ) start [2025-01-18 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273102', 'tblTempVendorCDR_20' ) end [2025-01-18 04:11:17] Production.INFO: ProcessCDR(1,14273102,1,1,2) [2025-01-18 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273102', 'tblTempUsageDetail_20' ) start [2025-01-18 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273102', 'tblTempUsageDetail_20' ) end [2025-01-18 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:11:21] Production.INFO: ==19538== Releasing lock... [2025-01-18 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:12:06 [end_date_ymd] => 2025-01-18 04:12:06 [RateCDR] => 1 ) [2025-01-18 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:12:06' and `end` < '2025-01-18 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:12:18] Production.INFO: count ==428 [2025-01-18 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:12:06 - End Time 2025-01-18 04:12:06 [2025-01-18 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273107', 'tblTempUsageDetail_20' ) start [2025-01-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273107', 'tblTempUsageDetail_20' ) end [2025-01-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273107', 'tblTempVendorCDR_20' ) start [2025-01-18 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273107', 'tblTempVendorCDR_20' ) end [2025-01-18 04:12:18] Production.INFO: ProcessCDR(1,14273107,1,1,2) [2025-01-18 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273107', 'tblTempUsageDetail_20' ) start [2025-01-18 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273107', 'tblTempUsageDetail_20' ) end [2025-01-18 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:12:22] Production.INFO: ==19609== Releasing lock... [2025-01-18 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:13:05 [end_date_ymd] => 2025-01-18 04:13:05 [RateCDR] => 1 ) [2025-01-18 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:13:05' and `end` < '2025-01-18 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:13:18] Production.INFO: count ==428 [2025-01-18 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:13:05 - End Time 2025-01-18 04:13:05 [2025-01-18 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273112', 'tblTempUsageDetail_20' ) start [2025-01-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273112', 'tblTempUsageDetail_20' ) end [2025-01-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273112', 'tblTempVendorCDR_20' ) start [2025-01-18 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273112', 'tblTempVendorCDR_20' ) end [2025-01-18 04:13:18] Production.INFO: ProcessCDR(1,14273112,1,1,2) [2025-01-18 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273112', 'tblTempUsageDetail_20' ) start [2025-01-18 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273112', 'tblTempUsageDetail_20' ) end [2025-01-18 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:13:21] Production.INFO: ==19682== Releasing lock... [2025-01-18 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-18 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:14:05 [end_date_ymd] => 2025-01-18 04:14:05 [RateCDR] => 1 ) [2025-01-18 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:14:05' and `end` < '2025-01-18 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:14:19] Production.INFO: count ==424 [2025-01-18 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:14:05 - End Time 2025-01-18 04:14:05 [2025-01-18 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273117', 'tblTempUsageDetail_20' ) start [2025-01-18 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273117', 'tblTempUsageDetail_20' ) end [2025-01-18 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273117', 'tblTempVendorCDR_20' ) start [2025-01-18 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273117', 'tblTempVendorCDR_20' ) end [2025-01-18 04:14:19] Production.INFO: ProcessCDR(1,14273117,1,1,2) [2025-01-18 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273117', 'tblTempUsageDetail_20' ) start [2025-01-18 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273117', 'tblTempUsageDetail_20' ) end [2025-01-18 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:14:22] Production.INFO: ==19756== Releasing lock... [2025-01-18 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:15:05 [end_date_ymd] => 2025-01-18 04:15:05 [RateCDR] => 1 ) [2025-01-18 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:15:05' and `end` < '2025-01-18 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:15:17] Production.INFO: count ==421 [2025-01-18 04:15:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:15:05 - End Time 2025-01-18 04:15:05 [2025-01-18 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273122', 'tblTempUsageDetail_20' ) start [2025-01-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273122', 'tblTempUsageDetail_20' ) end [2025-01-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273122', 'tblTempVendorCDR_20' ) start [2025-01-18 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273122', 'tblTempVendorCDR_20' ) end [2025-01-18 04:15:17] Production.INFO: ProcessCDR(1,14273122,1,1,2) [2025-01-18 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273122', 'tblTempUsageDetail_20' ) start [2025-01-18 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273122', 'tblTempUsageDetail_20' ) end [2025-01-18 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:15:21] Production.INFO: ==19827== Releasing lock... [2025-01-18 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:16:05 [end_date_ymd] => 2025-01-18 04:16:05 [RateCDR] => 1 ) [2025-01-18 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:16:05' and `end` < '2025-01-18 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:16:19] Production.INFO: count ==421 [2025-01-18 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:16:05 - End Time 2025-01-18 04:16:05 [2025-01-18 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273127', 'tblTempUsageDetail_20' ) start [2025-01-18 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273127', 'tblTempUsageDetail_20' ) end [2025-01-18 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273127', 'tblTempVendorCDR_20' ) start [2025-01-18 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273127', 'tblTempVendorCDR_20' ) end [2025-01-18 04:16:19] Production.INFO: ProcessCDR(1,14273127,1,1,2) [2025-01-18 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273127', 'tblTempUsageDetail_20' ) start [2025-01-18 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273127', 'tblTempUsageDetail_20' ) end [2025-01-18 04:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:16:23] Production.INFO: ==19898== Releasing lock... [2025-01-18 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:17:04 [end_date_ymd] => 2025-01-18 04:17:04 [RateCDR] => 1 ) [2025-01-18 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:17:04' and `end` < '2025-01-18 04:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:17:18] Production.INFO: count ==421 [2025-01-18 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:17:04 - End Time 2025-01-18 04:17:04 [2025-01-18 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273132', 'tblTempUsageDetail_20' ) start [2025-01-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273132', 'tblTempUsageDetail_20' ) end [2025-01-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273132', 'tblTempVendorCDR_20' ) start [2025-01-18 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273132', 'tblTempVendorCDR_20' ) end [2025-01-18 04:17:18] Production.INFO: ProcessCDR(1,14273132,1,1,2) [2025-01-18 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273132', 'tblTempUsageDetail_20' ) start [2025-01-18 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273132', 'tblTempUsageDetail_20' ) end [2025-01-18 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:17:21] Production.INFO: ==20011== Releasing lock... [2025-01-18 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:18:05 [end_date_ymd] => 2025-01-18 04:18:05 [RateCDR] => 1 ) [2025-01-18 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:18:05' and `end` < '2025-01-18 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:18:18] Production.INFO: count ==421 [2025-01-18 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:18:05 - End Time 2025-01-18 04:18:05 [2025-01-18 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273137', 'tblTempUsageDetail_20' ) start [2025-01-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273137', 'tblTempUsageDetail_20' ) end [2025-01-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273137', 'tblTempVendorCDR_20' ) start [2025-01-18 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273137', 'tblTempVendorCDR_20' ) end [2025-01-18 04:18:18] Production.INFO: ProcessCDR(1,14273137,1,1,2) [2025-01-18 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273137', 'tblTempUsageDetail_20' ) start [2025-01-18 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273137', 'tblTempUsageDetail_20' ) end [2025-01-18 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:18:21] Production.INFO: ==20094== Releasing lock... [2025-01-18 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:19:04 [end_date_ymd] => 2025-01-18 04:19:04 [RateCDR] => 1 ) [2025-01-18 04:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:19:04' and `end` < '2025-01-18 04:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:19:18] Production.INFO: count ==421 [2025-01-18 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:19:04 - End Time 2025-01-18 04:19:04 [2025-01-18 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273142', 'tblTempUsageDetail_20' ) start [2025-01-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273142', 'tblTempUsageDetail_20' ) end [2025-01-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273142', 'tblTempVendorCDR_20' ) start [2025-01-18 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273142', 'tblTempVendorCDR_20' ) end [2025-01-18 04:19:18] Production.INFO: ProcessCDR(1,14273142,1,1,2) [2025-01-18 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273142', 'tblTempUsageDetail_20' ) start [2025-01-18 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273142', 'tblTempUsageDetail_20' ) end [2025-01-18 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:19:22] Production.INFO: ==20166== Releasing lock... [2025-01-18 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:20:06 [end_date_ymd] => 2025-01-18 04:20:06 [RateCDR] => 1 ) [2025-01-18 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:20:06' and `end` < '2025-01-18 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:20:18] Production.INFO: count ==415 [2025-01-18 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:20:06 - End Time 2025-01-18 04:20:06 [2025-01-18 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273148', 'tblTempUsageDetail_20' ) start [2025-01-18 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273148', 'tblTempUsageDetail_20' ) end [2025-01-18 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273148', 'tblTempVendorCDR_20' ) start [2025-01-18 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273148', 'tblTempVendorCDR_20' ) end [2025-01-18 04:20:18] Production.INFO: ProcessCDR(1,14273148,1,1,2) [2025-01-18 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273148', 'tblTempUsageDetail_20' ) start [2025-01-18 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273148', 'tblTempUsageDetail_20' ) end [2025-01-18 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:20:21] Production.INFO: ==20239== Releasing lock... [2025-01-18 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:21:05 [end_date_ymd] => 2025-01-18 04:21:05 [RateCDR] => 1 ) [2025-01-18 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:21:05' and `end` < '2025-01-18 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:21:18] Production.INFO: count ==405 [2025-01-18 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:21:05 - End Time 2025-01-18 04:21:05 [2025-01-18 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273153', 'tblTempUsageDetail_20' ) start [2025-01-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273153', 'tblTempUsageDetail_20' ) end [2025-01-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273153', 'tblTempVendorCDR_20' ) start [2025-01-18 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273153', 'tblTempVendorCDR_20' ) end [2025-01-18 04:21:18] Production.INFO: ProcessCDR(1,14273153,1,1,2) [2025-01-18 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273153', 'tblTempUsageDetail_20' ) start [2025-01-18 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273153', 'tblTempUsageDetail_20' ) end [2025-01-18 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:21:21] Production.INFO: ==20323== Releasing lock... [2025-01-18 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:22:04 [end_date_ymd] => 2025-01-18 04:22:04 [RateCDR] => 1 ) [2025-01-18 04: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-01-18 01:22:04' and `end` < '2025-01-18 04: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-01-18 04:22:18] Production.INFO: count ==405 [2025-01-18 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:22:04 - End Time 2025-01-18 04:22:04 [2025-01-18 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273158', 'tblTempUsageDetail_20' ) start [2025-01-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273158', 'tblTempUsageDetail_20' ) end [2025-01-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273158', 'tblTempVendorCDR_20' ) start [2025-01-18 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273158', 'tblTempVendorCDR_20' ) end [2025-01-18 04:22:18] Production.INFO: ProcessCDR(1,14273158,1,1,2) [2025-01-18 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273158', 'tblTempUsageDetail_20' ) start [2025-01-18 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273158', 'tblTempUsageDetail_20' ) end [2025-01-18 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:22:21] Production.INFO: ==20413== Releasing lock... [2025-01-18 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:23:05 [end_date_ymd] => 2025-01-18 04:23:05 [RateCDR] => 1 ) [2025-01-18 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:23:05' and `end` < '2025-01-18 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:23:19] Production.INFO: count ==405 [2025-01-18 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:23:05 - End Time 2025-01-18 04:23:05 [2025-01-18 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273163', 'tblTempUsageDetail_20' ) start [2025-01-18 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273163', 'tblTempUsageDetail_20' ) end [2025-01-18 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273163', 'tblTempVendorCDR_20' ) start [2025-01-18 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273163', 'tblTempVendorCDR_20' ) end [2025-01-18 04:23:19] Production.INFO: ProcessCDR(1,14273163,1,1,2) [2025-01-18 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273163', 'tblTempUsageDetail_20' ) start [2025-01-18 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273163', 'tblTempUsageDetail_20' ) end [2025-01-18 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:23:22] Production.INFO: ==20492== Releasing lock... [2025-01-18 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:24:05 [end_date_ymd] => 2025-01-18 04:24:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:24:05' and `end` < '2025-01-18 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:24:18] Production.INFO: count ==405 [2025-01-18 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:24:05 - End Time 2025-01-18 04:24:05 [2025-01-18 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273168', 'tblTempUsageDetail_20' ) start [2025-01-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273168', 'tblTempUsageDetail_20' ) end [2025-01-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273168', 'tblTempVendorCDR_20' ) start [2025-01-18 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273168', 'tblTempVendorCDR_20' ) end [2025-01-18 04:24:18] Production.INFO: ProcessCDR(1,14273168,1,1,2) [2025-01-18 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273168', 'tblTempUsageDetail_20' ) start [2025-01-18 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273168', 'tblTempUsageDetail_20' ) end [2025-01-18 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:24:22] Production.INFO: ==20594== Releasing lock... [2025-01-18 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:25:05 [end_date_ymd] => 2025-01-18 04:25:05 [RateCDR] => 1 ) [2025-01-18 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:25:05' and `end` < '2025-01-18 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:25:18] Production.INFO: count ==405 [2025-01-18 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:25:05 - End Time 2025-01-18 04:25:05 [2025-01-18 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273173', 'tblTempUsageDetail_20' ) start [2025-01-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273173', 'tblTempUsageDetail_20' ) end [2025-01-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273173', 'tblTempVendorCDR_20' ) start [2025-01-18 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273173', 'tblTempVendorCDR_20' ) end [2025-01-18 04:25:18] Production.INFO: ProcessCDR(1,14273173,1,1,2) [2025-01-18 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273173', 'tblTempUsageDetail_20' ) start [2025-01-18 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273173', 'tblTempUsageDetail_20' ) end [2025-01-18 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:25:21] Production.INFO: ==20669== Releasing lock... [2025-01-18 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:26:05 [end_date_ymd] => 2025-01-18 04:26:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:26:05' and `end` < '2025-01-18 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-01-18 04:26:18] Production.INFO: count ==405 [2025-01-18 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:26:05 - End Time 2025-01-18 04:26:05 [2025-01-18 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273178', 'tblTempUsageDetail_20' ) start [2025-01-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273178', 'tblTempUsageDetail_20' ) end [2025-01-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273178', 'tblTempVendorCDR_20' ) start [2025-01-18 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273178', 'tblTempVendorCDR_20' ) end [2025-01-18 04:26:18] Production.INFO: ProcessCDR(1,14273178,1,1,2) [2025-01-18 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273178', 'tblTempUsageDetail_20' ) start [2025-01-18 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273178', 'tblTempUsageDetail_20' ) end [2025-01-18 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:26:21] Production.INFO: ==20768== Releasing lock... [2025-01-18 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:27:05 [end_date_ymd] => 2025-01-18 04:27:05 [RateCDR] => 1 ) [2025-01-18 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:27:05' and `end` < '2025-01-18 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:27:18] Production.INFO: count ==405 [2025-01-18 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:27:05 - End Time 2025-01-18 04:27:05 [2025-01-18 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273183', 'tblTempUsageDetail_20' ) start [2025-01-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273183', 'tblTempUsageDetail_20' ) end [2025-01-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273183', 'tblTempVendorCDR_20' ) start [2025-01-18 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273183', 'tblTempVendorCDR_20' ) end [2025-01-18 04:27:18] Production.INFO: ProcessCDR(1,14273183,1,1,2) [2025-01-18 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273183', 'tblTempUsageDetail_20' ) start [2025-01-18 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273183', 'tblTempUsageDetail_20' ) end [2025-01-18 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:27:21] Production.INFO: ==20842== Releasing lock... [2025-01-18 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:28:05 [end_date_ymd] => 2025-01-18 04:28:05 [RateCDR] => 1 ) [2025-01-18 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:28:05' and `end` < '2025-01-18 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:28:18] Production.INFO: count ==405 [2025-01-18 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:28:05 - End Time 2025-01-18 04:28:05 [2025-01-18 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273188', 'tblTempUsageDetail_20' ) start [2025-01-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273188', 'tblTempUsageDetail_20' ) end [2025-01-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273188', 'tblTempVendorCDR_20' ) start [2025-01-18 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273188', 'tblTempVendorCDR_20' ) end [2025-01-18 04:28:18] Production.INFO: ProcessCDR(1,14273188,1,1,2) [2025-01-18 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273188', 'tblTempUsageDetail_20' ) start [2025-01-18 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273188', 'tblTempUsageDetail_20' ) end [2025-01-18 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:28:21] Production.INFO: ==20938== Releasing lock... [2025-01-18 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:29:05 [end_date_ymd] => 2025-01-18 04:29:05 [RateCDR] => 1 ) [2025-01-18 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:29:05' and `end` < '2025-01-18 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:29:17] Production.INFO: count ==405 [2025-01-18 04:29:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:29:05 - End Time 2025-01-18 04:29:05 [2025-01-18 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273193', 'tblTempUsageDetail_20' ) start [2025-01-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273193', 'tblTempUsageDetail_20' ) end [2025-01-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273193', 'tblTempVendorCDR_20' ) start [2025-01-18 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273193', 'tblTempVendorCDR_20' ) end [2025-01-18 04:29:17] Production.INFO: ProcessCDR(1,14273193,1,1,2) [2025-01-18 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273193', 'tblTempUsageDetail_20' ) start [2025-01-18 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273193', 'tblTempUsageDetail_20' ) end [2025-01-18 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:29:21] Production.INFO: ==21023== Releasing lock... [2025-01-18 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:30:06 [end_date_ymd] => 2025-01-18 04:30:06 [RateCDR] => 1 ) [2025-01-18 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:30:06' and `end` < '2025-01-18 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:30:18] Production.INFO: count ==405 [2025-01-18 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:30:06 - End Time 2025-01-18 04:30:06 [2025-01-18 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273200', 'tblTempUsageDetail_20' ) start [2025-01-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273200', 'tblTempUsageDetail_20' ) end [2025-01-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273200', 'tblTempVendorCDR_20' ) start [2025-01-18 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273200', 'tblTempVendorCDR_20' ) end [2025-01-18 04:30:19] Production.INFO: ProcessCDR(1,14273200,1,1,2) [2025-01-18 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273200', 'tblTempUsageDetail_20' ) start [2025-01-18 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273200', 'tblTempUsageDetail_20' ) end [2025-01-18 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:30:23] Production.INFO: ==21126== Releasing lock... [2025-01-18 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:30:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:31:05 [end_date_ymd] => 2025-01-18 04:31:05 [RateCDR] => 1 ) [2025-01-18 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:31:05' and `end` < '2025-01-18 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:31:18] Production.INFO: count ==402 [2025-01-18 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:31:05 - End Time 2025-01-18 04:31:05 [2025-01-18 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273205', 'tblTempUsageDetail_20' ) start [2025-01-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273205', 'tblTempUsageDetail_20' ) end [2025-01-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273205', 'tblTempVendorCDR_20' ) start [2025-01-18 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273205', 'tblTempVendorCDR_20' ) end [2025-01-18 04:31:18] Production.INFO: ProcessCDR(1,14273205,1,1,2) [2025-01-18 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273205', 'tblTempUsageDetail_20' ) start [2025-01-18 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273205', 'tblTempUsageDetail_20' ) end [2025-01-18 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:31:21] Production.INFO: ==21266== Releasing lock... [2025-01-18 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:32:04 [end_date_ymd] => 2025-01-18 04:32:04 [RateCDR] => 1 ) [2025-01-18 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:32:04' and `end` < '2025-01-18 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:32:17] Production.INFO: count ==399 [2025-01-18 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:32:04 - End Time 2025-01-18 04:32:04 [2025-01-18 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273210', 'tblTempUsageDetail_20' ) start [2025-01-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273210', 'tblTempUsageDetail_20' ) end [2025-01-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273210', 'tblTempVendorCDR_20' ) start [2025-01-18 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273210', 'tblTempVendorCDR_20' ) end [2025-01-18 04:32:17] Production.INFO: ProcessCDR(1,14273210,1,1,2) [2025-01-18 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273210', 'tblTempUsageDetail_20' ) start [2025-01-18 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273210', 'tblTempUsageDetail_20' ) end [2025-01-18 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:32:21] Production.INFO: ==21399== Releasing lock... [2025-01-18 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:33:05 [end_date_ymd] => 2025-01-18 04:33:05 [RateCDR] => 1 ) [2025-01-18 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:33:05' and `end` < '2025-01-18 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:33:17] Production.INFO: count ==399 [2025-01-18 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:33:05 - End Time 2025-01-18 04:33:05 [2025-01-18 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273215', 'tblTempUsageDetail_20' ) start [2025-01-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273215', 'tblTempUsageDetail_20' ) end [2025-01-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273215', 'tblTempVendorCDR_20' ) start [2025-01-18 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273215', 'tblTempVendorCDR_20' ) end [2025-01-18 04:33:17] Production.INFO: ProcessCDR(1,14273215,1,1,2) [2025-01-18 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273215', 'tblTempUsageDetail_20' ) start [2025-01-18 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273215', 'tblTempUsageDetail_20' ) end [2025-01-18 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:33:21] Production.INFO: ==21480== Releasing lock... [2025-01-18 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:34:05 [end_date_ymd] => 2025-01-18 04:34:05 [RateCDR] => 1 ) [2025-01-18 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:34:05' and `end` < '2025-01-18 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:34:18] Production.INFO: count ==399 [2025-01-18 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:34:05 - End Time 2025-01-18 04:34:05 [2025-01-18 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273220', 'tblTempUsageDetail_20' ) start [2025-01-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273220', 'tblTempUsageDetail_20' ) end [2025-01-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273220', 'tblTempVendorCDR_20' ) start [2025-01-18 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273220', 'tblTempVendorCDR_20' ) end [2025-01-18 04:34:18] Production.INFO: ProcessCDR(1,14273220,1,1,2) [2025-01-18 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273220', 'tblTempUsageDetail_20' ) start [2025-01-18 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273220', 'tblTempUsageDetail_20' ) end [2025-01-18 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:34:22] Production.INFO: ==21573== Releasing lock... [2025-01-18 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:35:05 [end_date_ymd] => 2025-01-18 04:35:05 [RateCDR] => 1 ) [2025-01-18 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:35:05' and `end` < '2025-01-18 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:35:17] Production.INFO: count ==399 [2025-01-18 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:35:05 - End Time 2025-01-18 04:35:05 [2025-01-18 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273225', 'tblTempUsageDetail_20' ) start [2025-01-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273225', 'tblTempUsageDetail_20' ) end [2025-01-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273225', 'tblTempVendorCDR_20' ) start [2025-01-18 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273225', 'tblTempVendorCDR_20' ) end [2025-01-18 04:35:17] Production.INFO: ProcessCDR(1,14273225,1,1,2) [2025-01-18 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273225', 'tblTempUsageDetail_20' ) start [2025-01-18 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273225', 'tblTempUsageDetail_20' ) end [2025-01-18 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:35:20] Production.INFO: ==21656== Releasing lock... [2025-01-18 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:35:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:36:06 [end_date_ymd] => 2025-01-18 04:36:06 [RateCDR] => 1 ) [2025-01-18 04:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:36:06' and `end` < '2025-01-18 04:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:36:18] Production.INFO: count ==399 [2025-01-18 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:36:06 - End Time 2025-01-18 04:36:06 [2025-01-18 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273230', 'tblTempUsageDetail_20' ) start [2025-01-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273230', 'tblTempUsageDetail_20' ) end [2025-01-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273230', 'tblTempVendorCDR_20' ) start [2025-01-18 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273230', 'tblTempVendorCDR_20' ) end [2025-01-18 04:36:18] Production.INFO: ProcessCDR(1,14273230,1,1,2) [2025-01-18 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273230', 'tblTempUsageDetail_20' ) start [2025-01-18 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273230', 'tblTempUsageDetail_20' ) end [2025-01-18 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:36:22] Production.INFO: ==21784== Releasing lock... [2025-01-18 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:37:05 [end_date_ymd] => 2025-01-18 04:37:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:37:05' and `end` < '2025-01-18 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-01-18 04:37:19] Production.INFO: count ==399 [2025-01-18 04:37:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:37:05 - End Time 2025-01-18 04:37:05 [2025-01-18 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273235', 'tblTempUsageDetail_20' ) start [2025-01-18 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273235', 'tblTempUsageDetail_20' ) end [2025-01-18 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273235', 'tblTempVendorCDR_20' ) start [2025-01-18 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273235', 'tblTempVendorCDR_20' ) end [2025-01-18 04:37:19] Production.INFO: ProcessCDR(1,14273235,1,1,2) [2025-01-18 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273235', 'tblTempUsageDetail_20' ) start [2025-01-18 04:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273235', 'tblTempUsageDetail_20' ) end [2025-01-18 04:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:37:23] Production.INFO: ==21921== Releasing lock... [2025-01-18 04:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:37:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:38:05 [end_date_ymd] => 2025-01-18 04:38:05 [RateCDR] => 1 ) [2025-01-18 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:38:05' and `end` < '2025-01-18 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:38:19] Production.INFO: count ==399 [2025-01-18 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:38:05 - End Time 2025-01-18 04:38:05 [2025-01-18 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273240', 'tblTempUsageDetail_20' ) start [2025-01-18 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273240', 'tblTempUsageDetail_20' ) end [2025-01-18 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273240', 'tblTempVendorCDR_20' ) start [2025-01-18 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273240', 'tblTempVendorCDR_20' ) end [2025-01-18 04:38:19] Production.INFO: ProcessCDR(1,14273240,1,1,2) [2025-01-18 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273240', 'tblTempUsageDetail_20' ) start [2025-01-18 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273240', 'tblTempUsageDetail_20' ) end [2025-01-18 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:38:22] Production.INFO: ==22018== Releasing lock... [2025-01-18 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-18 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:39:04 [end_date_ymd] => 2025-01-18 04:39:04 [RateCDR] => 1 ) [2025-01-18 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:39:04' and `end` < '2025-01-18 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:39:17] Production.INFO: count ==398 [2025-01-18 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:39:04 - End Time 2025-01-18 04:39:04 [2025-01-18 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273245', 'tblTempUsageDetail_20' ) start [2025-01-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273245', 'tblTempUsageDetail_20' ) end [2025-01-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273245', 'tblTempVendorCDR_20' ) start [2025-01-18 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273245', 'tblTempVendorCDR_20' ) end [2025-01-18 04:39:17] Production.INFO: ProcessCDR(1,14273245,1,1,2) [2025-01-18 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273245', 'tblTempUsageDetail_20' ) start [2025-01-18 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273245', 'tblTempUsageDetail_20' ) end [2025-01-18 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:39:20] Production.INFO: ==22107== Releasing lock... [2025-01-18 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:39:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:40:05 [end_date_ymd] => 2025-01-18 04:40:05 [RateCDR] => 1 ) [2025-01-18 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:40:05' and `end` < '2025-01-18 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:40:18] Production.INFO: count ==400 [2025-01-18 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:40:05 - End Time 2025-01-18 04:40:05 [2025-01-18 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273251', 'tblTempUsageDetail_20' ) start [2025-01-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273251', 'tblTempUsageDetail_20' ) end [2025-01-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273251', 'tblTempVendorCDR_20' ) start [2025-01-18 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273251', 'tblTempVendorCDR_20' ) end [2025-01-18 04:40:18] Production.INFO: ProcessCDR(1,14273251,1,1,2) [2025-01-18 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273251', 'tblTempUsageDetail_20' ) start [2025-01-18 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273251', 'tblTempUsageDetail_20' ) end [2025-01-18 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:40:21] Production.INFO: ==22189== Releasing lock... [2025-01-18 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:41:05 [end_date_ymd] => 2025-01-18 04:41:05 [RateCDR] => 1 ) [2025-01-18 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:41:05' and `end` < '2025-01-18 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:41:17] Production.INFO: count ==382 [2025-01-18 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:41:05 - End Time 2025-01-18 04:41:05 [2025-01-18 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273256', 'tblTempUsageDetail_20' ) start [2025-01-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273256', 'tblTempUsageDetail_20' ) end [2025-01-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273256', 'tblTempVendorCDR_20' ) start [2025-01-18 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273256', 'tblTempVendorCDR_20' ) end [2025-01-18 04:41:17] Production.INFO: ProcessCDR(1,14273256,1,1,2) [2025-01-18 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273256', 'tblTempUsageDetail_20' ) start [2025-01-18 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273256', 'tblTempUsageDetail_20' ) end [2025-01-18 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:41:20] Production.INFO: ==22261== Releasing lock... [2025-01-18 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:42:05 [end_date_ymd] => 2025-01-18 04:42:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:42:05' and `end` < '2025-01-18 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-01-18 04:42:18] Production.INFO: count ==375 [2025-01-18 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:42:05 - End Time 2025-01-18 04:42:05 [2025-01-18 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273261', 'tblTempUsageDetail_20' ) start [2025-01-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273261', 'tblTempUsageDetail_20' ) end [2025-01-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273261', 'tblTempVendorCDR_20' ) start [2025-01-18 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273261', 'tblTempVendorCDR_20' ) end [2025-01-18 04:42:18] Production.INFO: ProcessCDR(1,14273261,1,1,2) [2025-01-18 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273261', 'tblTempUsageDetail_20' ) start [2025-01-18 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273261', 'tblTempUsageDetail_20' ) end [2025-01-18 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:42:21] Production.INFO: ==22333== Releasing lock... [2025-01-18 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:42:21] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:43:05 [end_date_ymd] => 2025-01-18 04:43:05 [RateCDR] => 1 ) [2025-01-18 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:43:05' and `end` < '2025-01-18 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:43:17] Production.INFO: count ==365 [2025-01-18 04:43:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:43:05 - End Time 2025-01-18 04:43:05 [2025-01-18 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273266', 'tblTempUsageDetail_20' ) start [2025-01-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273266', 'tblTempUsageDetail_20' ) end [2025-01-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273266', 'tblTempVendorCDR_20' ) start [2025-01-18 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273266', 'tblTempVendorCDR_20' ) end [2025-01-18 04:43:17] Production.INFO: ProcessCDR(1,14273266,1,1,2) [2025-01-18 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273266', 'tblTempUsageDetail_20' ) start [2025-01-18 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273266', 'tblTempUsageDetail_20' ) end [2025-01-18 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:43:20] Production.INFO: ==22403== Releasing lock... [2025-01-18 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:44:05 [end_date_ymd] => 2025-01-18 04:44:05 [RateCDR] => 1 ) [2025-01-18 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:44:05' and `end` < '2025-01-18 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:44:17] Production.INFO: count ==362 [2025-01-18 04:44:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:44:05 - End Time 2025-01-18 04:44:05 [2025-01-18 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273271', 'tblTempUsageDetail_20' ) start [2025-01-18 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273271', 'tblTempUsageDetail_20' ) end [2025-01-18 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273271', 'tblTempVendorCDR_20' ) start [2025-01-18 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273271', 'tblTempVendorCDR_20' ) end [2025-01-18 04:44:17] Production.INFO: ProcessCDR(1,14273271,1,1,2) [2025-01-18 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273271', 'tblTempUsageDetail_20' ) start [2025-01-18 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273271', 'tblTempUsageDetail_20' ) end [2025-01-18 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:44:20] Production.INFO: ==22472== Releasing lock... [2025-01-18 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:44:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:45:05 [end_date_ymd] => 2025-01-18 04:45:05 [RateCDR] => 1 ) [2025-01-18 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:45:05' and `end` < '2025-01-18 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:45:17] Production.INFO: count ==362 [2025-01-18 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-18 01:45:05 - End Time 2025-01-18 04:45:05 [2025-01-18 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273276', 'tblTempUsageDetail_20' ) start [2025-01-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273276', 'tblTempUsageDetail_20' ) end [2025-01-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273276', 'tblTempVendorCDR_20' ) start [2025-01-18 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273276', 'tblTempVendorCDR_20' ) end [2025-01-18 04:45:17] Production.INFO: ProcessCDR(1,14273276,1,1,2) [2025-01-18 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273276', 'tblTempUsageDetail_20' ) start [2025-01-18 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273276', 'tblTempUsageDetail_20' ) end [2025-01-18 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:45:21] Production.INFO: ==22543== Releasing lock... [2025-01-18 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:46:05 [end_date_ymd] => 2025-01-18 04:46:05 [RateCDR] => 1 ) [2025-01-18 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:46:05' and `end` < '2025-01-18 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:46:28] Production.INFO: count ==362 [2025-01-18 04:46:28] Production.ERROR: pbx CDR StartTime 2025-01-18 01:46:05 - End Time 2025-01-18 04:46:05 [2025-01-18 04:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273281', 'tblTempUsageDetail_20' ) start [2025-01-18 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273281', 'tblTempUsageDetail_20' ) end [2025-01-18 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273281', 'tblTempVendorCDR_20' ) start [2025-01-18 04:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273281', 'tblTempVendorCDR_20' ) end [2025-01-18 04:46:28] Production.INFO: ProcessCDR(1,14273281,1,1,2) [2025-01-18 04:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273281', 'tblTempUsageDetail_20' ) start [2025-01-18 04:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273281', 'tblTempUsageDetail_20' ) end [2025-01-18 04:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:46:31] Production.INFO: ==22617== Releasing lock... [2025-01-18 04:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:46:31] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:47:05 [end_date_ymd] => 2025-01-18 04:47:05 [RateCDR] => 1 ) [2025-01-18 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:47:05' and `end` < '2025-01-18 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:47:19] Production.INFO: count ==362 [2025-01-18 04:47:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:47:05 - End Time 2025-01-18 04:47:05 [2025-01-18 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273286', 'tblTempUsageDetail_20' ) start [2025-01-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273286', 'tblTempUsageDetail_20' ) end [2025-01-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273286', 'tblTempVendorCDR_20' ) start [2025-01-18 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273286', 'tblTempVendorCDR_20' ) end [2025-01-18 04:47:19] Production.INFO: ProcessCDR(1,14273286,1,1,2) [2025-01-18 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273286', 'tblTempUsageDetail_20' ) start [2025-01-18 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273286', 'tblTempUsageDetail_20' ) end [2025-01-18 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:47:22] Production.INFO: ==22690== Releasing lock... [2025-01-18 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:48:05 [end_date_ymd] => 2025-01-18 04:48:05 [RateCDR] => 1 ) [2025-01-18 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:48:05' and `end` < '2025-01-18 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:48:19] Production.INFO: count ==360 [2025-01-18 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:48:05 - End Time 2025-01-18 04:48:05 [2025-01-18 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273291', 'tblTempUsageDetail_20' ) start [2025-01-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273291', 'tblTempUsageDetail_20' ) end [2025-01-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273291', 'tblTempVendorCDR_20' ) start [2025-01-18 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273291', 'tblTempVendorCDR_20' ) end [2025-01-18 04:48:19] Production.INFO: ProcessCDR(1,14273291,1,1,2) [2025-01-18 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273291', 'tblTempUsageDetail_20' ) start [2025-01-18 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273291', 'tblTempUsageDetail_20' ) end [2025-01-18 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:48:23] Production.INFO: ==22798== Releasing lock... [2025-01-18 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:49:04 [end_date_ymd] => 2025-01-18 04:49:04 [RateCDR] => 1 ) [2025-01-18 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:49:04' and `end` < '2025-01-18 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:49:19] Production.INFO: count ==359 [2025-01-18 04:49:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:49:04 - End Time 2025-01-18 04:49:04 [2025-01-18 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273296', 'tblTempUsageDetail_20' ) start [2025-01-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273296', 'tblTempUsageDetail_20' ) end [2025-01-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273296', 'tblTempVendorCDR_20' ) start [2025-01-18 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273296', 'tblTempVendorCDR_20' ) end [2025-01-18 04:49:19] Production.INFO: ProcessCDR(1,14273296,1,1,2) [2025-01-18 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273296', 'tblTempUsageDetail_20' ) start [2025-01-18 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273296', 'tblTempUsageDetail_20' ) end [2025-01-18 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:49:23] Production.INFO: ==22867== Releasing lock... [2025-01-18 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:49:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:50:05 [end_date_ymd] => 2025-01-18 04:50:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:50:05' and `end` < '2025-01-18 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-01-18 04:50:18] Production.INFO: count ==357 [2025-01-18 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:50:05 - End Time 2025-01-18 04:50:05 [2025-01-18 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273301', 'tblTempUsageDetail_20' ) start [2025-01-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273301', 'tblTempUsageDetail_20' ) end [2025-01-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273301', 'tblTempVendorCDR_20' ) start [2025-01-18 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273301', 'tblTempVendorCDR_20' ) end [2025-01-18 04:50:19] Production.INFO: ProcessCDR(1,14273301,1,1,2) [2025-01-18 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273301', 'tblTempUsageDetail_20' ) start [2025-01-18 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273301', 'tblTempUsageDetail_20' ) end [2025-01-18 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:50:22] Production.INFO: ==22944== Releasing lock... [2025-01-18 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-18 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:51:05 [end_date_ymd] => 2025-01-18 04:51:05 [RateCDR] => 1 ) [2025-01-18 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:51:05' and `end` < '2025-01-18 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:51:20] Production.INFO: count ==335 [2025-01-18 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-18 01:51:05 - End Time 2025-01-18 04:51:05 [2025-01-18 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273307', 'tblTempUsageDetail_20' ) start [2025-01-18 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273307', 'tblTempUsageDetail_20' ) end [2025-01-18 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273307', 'tblTempVendorCDR_20' ) start [2025-01-18 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273307', 'tblTempVendorCDR_20' ) end [2025-01-18 04:51:20] Production.INFO: ProcessCDR(1,14273307,1,1,2) [2025-01-18 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273307', 'tblTempUsageDetail_20' ) start [2025-01-18 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273307', 'tblTempUsageDetail_20' ) end [2025-01-18 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:51:23] Production.INFO: ==23018== Releasing lock... [2025-01-18 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:51:23] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:52:05 [end_date_ymd] => 2025-01-18 04:52:05 [RateCDR] => 1 ) [2025-01-18 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:52:05' and `end` < '2025-01-18 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:52:19] Production.INFO: count ==329 [2025-01-18 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:52:05 - End Time 2025-01-18 04:52:05 [2025-01-18 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273312', 'tblTempUsageDetail_20' ) start [2025-01-18 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273312', 'tblTempUsageDetail_20' ) end [2025-01-18 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273312', 'tblTempVendorCDR_20' ) start [2025-01-18 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273312', 'tblTempVendorCDR_20' ) end [2025-01-18 04:52:19] Production.INFO: ProcessCDR(1,14273312,1,1,2) [2025-01-18 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273312', 'tblTempUsageDetail_20' ) start [2025-01-18 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273312', 'tblTempUsageDetail_20' ) end [2025-01-18 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:52:22] Production.INFO: ==23087== Releasing lock... [2025-01-18 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:53:04 [end_date_ymd] => 2025-01-18 04:53:04 [RateCDR] => 1 ) [2025-01-18 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:53:04' and `end` < '2025-01-18 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:53:18] Production.INFO: count ==329 [2025-01-18 04:53:18] Production.ERROR: pbx CDR StartTime 2025-01-18 01:53:04 - End Time 2025-01-18 04:53:04 [2025-01-18 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273317', 'tblTempUsageDetail_20' ) start [2025-01-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273317', 'tblTempUsageDetail_20' ) end [2025-01-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273317', 'tblTempVendorCDR_20' ) start [2025-01-18 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273317', 'tblTempVendorCDR_20' ) end [2025-01-18 04:53:18] Production.INFO: ProcessCDR(1,14273317,1,1,2) [2025-01-18 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273317', 'tblTempUsageDetail_20' ) start [2025-01-18 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273317', 'tblTempUsageDetail_20' ) end [2025-01-18 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:53:21] Production.INFO: ==23158== Releasing lock... [2025-01-18 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:53:21] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:54:05 [end_date_ymd] => 2025-01-18 04:54:05 [RateCDR] => 1 ) [2025-01-18 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:54:05' and `end` < '2025-01-18 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:54:19] Production.INFO: count ==325 [2025-01-18 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:54:05 - End Time 2025-01-18 04:54:05 [2025-01-18 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273322', 'tblTempUsageDetail_20' ) start [2025-01-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273322', 'tblTempUsageDetail_20' ) end [2025-01-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273322', 'tblTempVendorCDR_20' ) start [2025-01-18 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273322', 'tblTempVendorCDR_20' ) end [2025-01-18 04:54:19] Production.INFO: ProcessCDR(1,14273322,1,1,2) [2025-01-18 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273322', 'tblTempUsageDetail_20' ) start [2025-01-18 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273322', 'tblTempUsageDetail_20' ) end [2025-01-18 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:54:23] Production.INFO: ==23230== Releasing lock... [2025-01-18 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:54:23] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:55:05 [end_date_ymd] => 2025-01-18 04:55:05 [RateCDR] => 1 ) [2025-01-18 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:55:05' and `end` < '2025-01-18 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:55:19] Production.INFO: count ==321 [2025-01-18 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:55:05 - End Time 2025-01-18 04:55:05 [2025-01-18 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273327', 'tblTempUsageDetail_20' ) start [2025-01-18 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273327', 'tblTempUsageDetail_20' ) end [2025-01-18 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273327', 'tblTempVendorCDR_20' ) start [2025-01-18 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273327', 'tblTempVendorCDR_20' ) end [2025-01-18 04:55:19] Production.INFO: ProcessCDR(1,14273327,1,1,2) [2025-01-18 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273327', 'tblTempUsageDetail_20' ) start [2025-01-18 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273327', 'tblTempUsageDetail_20' ) end [2025-01-18 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:55:22] Production.INFO: ==23305== Releasing lock... [2025-01-18 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:55:22] Production.INFO: 30 MB #Memory Used# [2025-01-18 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:56:05 [end_date_ymd] => 2025-01-18 04:56:05 [RateCDR] => 1 ) [2025-01-18 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:56:05' and `end` < '2025-01-18 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:56:19] Production.INFO: count ==317 [2025-01-18 04:56:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:56:05 - End Time 2025-01-18 04:56:05 [2025-01-18 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273332', 'tblTempUsageDetail_20' ) start [2025-01-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273332', 'tblTempUsageDetail_20' ) end [2025-01-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273332', 'tblTempVendorCDR_20' ) start [2025-01-18 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273332', 'tblTempVendorCDR_20' ) end [2025-01-18 04:56:19] Production.INFO: ProcessCDR(1,14273332,1,1,2) [2025-01-18 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273332', 'tblTempUsageDetail_20' ) start [2025-01-18 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273332', 'tblTempUsageDetail_20' ) end [2025-01-18 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:56:22] Production.INFO: ==23373== Releasing lock... [2025-01-18 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:56:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-18 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:57:06 [end_date_ymd] => 2025-01-18 04:57:06 [RateCDR] => 1 ) [2025-01-18 04:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:57:06' and `end` < '2025-01-18 04:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:57:19] Production.INFO: count ==316 [2025-01-18 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:57:06 - End Time 2025-01-18 04:57:06 [2025-01-18 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273337', 'tblTempUsageDetail_20' ) start [2025-01-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273337', 'tblTempUsageDetail_20' ) end [2025-01-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273337', 'tblTempVendorCDR_20' ) start [2025-01-18 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273337', 'tblTempVendorCDR_20' ) end [2025-01-18 04:57:19] Production.INFO: ProcessCDR(1,14273337,1,1,2) [2025-01-18 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273337', 'tblTempUsageDetail_20' ) start [2025-01-18 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273337', 'tblTempUsageDetail_20' ) end [2025-01-18 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:57:22] Production.INFO: ==23444== Releasing lock... [2025-01-18 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-18 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:58:05 [end_date_ymd] => 2025-01-18 04:58:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 01:58:05' and `end` < '2025-01-18 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-01-18 04:58:19] Production.INFO: count ==315 [2025-01-18 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:58:05 - End Time 2025-01-18 04:58:05 [2025-01-18 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273342', 'tblTempUsageDetail_20' ) start [2025-01-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273342', 'tblTempUsageDetail_20' ) end [2025-01-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273342', 'tblTempVendorCDR_20' ) start [2025-01-18 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273342', 'tblTempVendorCDR_20' ) end [2025-01-18 04:58:19] Production.INFO: ProcessCDR(1,14273342,1,1,2) [2025-01-18 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273342', 'tblTempUsageDetail_20' ) start [2025-01-18 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273342', 'tblTempUsageDetail_20' ) end [2025-01-18 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:58:22] Production.INFO: ==23514== Releasing lock... [2025-01-18 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-18 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 01:59:06 [end_date_ymd] => 2025-01-18 04:59:06 [RateCDR] => 1 ) [2025-01-18 04:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 01:59:06' and `end` < '2025-01-18 04:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 04:59:19] Production.INFO: count ==309 [2025-01-18 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-18 01:59:06 - End Time 2025-01-18 04:59:06 [2025-01-18 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273347', 'tblTempUsageDetail_20' ) start [2025-01-18 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273347', 'tblTempUsageDetail_20' ) end [2025-01-18 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273347', 'tblTempVendorCDR_20' ) start [2025-01-18 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273347', 'tblTempVendorCDR_20' ) end [2025-01-18 04:59:19] Production.INFO: ProcessCDR(1,14273347,1,1,2) [2025-01-18 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273347', 'tblTempUsageDetail_20' ) start [2025-01-18 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273347', 'tblTempUsageDetail_20' ) end [2025-01-18 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 04:59:23] Production.INFO: ==23584== Releasing lock... [2025-01-18 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 04:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-18 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:00:06 [end_date_ymd] => 2025-01-18 05:00:06 [RateCDR] => 1 ) [2025-01-18 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:00:06' and `end` < '2025-01-18 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:00:21] Production.INFO: count ==303 [2025-01-18 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-18 02:00:06 - End Time 2025-01-18 05:00:06 [2025-01-18 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273353', 'tblTempUsageDetail_20' ) start [2025-01-18 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273353', 'tblTempUsageDetail_20' ) end [2025-01-18 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273353', 'tblTempVendorCDR_20' ) start [2025-01-18 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273353', 'tblTempVendorCDR_20' ) end [2025-01-18 05:00:21] Production.INFO: ProcessCDR(1,14273353,1,1,2) [2025-01-18 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273353', 'tblTempUsageDetail_20' ) start [2025-01-18 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273353', 'tblTempUsageDetail_20' ) end [2025-01-18 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:00:24] Production.INFO: ==23656== Releasing lock... [2025-01-18 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:00:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-18 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:01:06 [end_date_ymd] => 2025-01-18 05:01:06 [RateCDR] => 1 ) [2025-01-18 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:01:06' and `end` < '2025-01-18 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:01:21] Production.INFO: count ==270 [2025-01-18 05:01:21] Production.ERROR: pbx CDR StartTime 2025-01-18 02:01:06 - End Time 2025-01-18 05:01:06 [2025-01-18 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273358', 'tblTempUsageDetail_20' ) start [2025-01-18 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273358', 'tblTempUsageDetail_20' ) end [2025-01-18 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273358', 'tblTempVendorCDR_20' ) start [2025-01-18 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273358', 'tblTempVendorCDR_20' ) end [2025-01-18 05:01:21] Production.INFO: ProcessCDR(1,14273358,1,1,2) [2025-01-18 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273358', 'tblTempUsageDetail_20' ) start [2025-01-18 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273358', 'tblTempUsageDetail_20' ) end [2025-01-18 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:01:24] Production.INFO: ==23750== Releasing lock... [2025-01-18 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:01:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:02:05 [end_date_ymd] => 2025-01-18 05:02:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:02:05' and `end` < '2025-01-18 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-01-18 05:02:19] Production.INFO: count ==268 [2025-01-18 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:02:05 - End Time 2025-01-18 05:02:05 [2025-01-18 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273363', 'tblTempUsageDetail_20' ) start [2025-01-18 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273363', 'tblTempUsageDetail_20' ) end [2025-01-18 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273363', 'tblTempVendorCDR_20' ) start [2025-01-18 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273363', 'tblTempVendorCDR_20' ) end [2025-01-18 05:02:19] Production.INFO: ProcessCDR(1,14273363,1,1,2) [2025-01-18 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273363', 'tblTempUsageDetail_20' ) start [2025-01-18 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273363', 'tblTempUsageDetail_20' ) end [2025-01-18 05:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:02:25] Production.INFO: ==23821== Releasing lock... [2025-01-18 05:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:02:25] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:03:05 [end_date_ymd] => 2025-01-18 05:03:05 [RateCDR] => 1 ) [2025-01-18 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:03:05' and `end` < '2025-01-18 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:03:19] Production.INFO: count ==268 [2025-01-18 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:03:05 - End Time 2025-01-18 05:03:05 [2025-01-18 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273368', 'tblTempUsageDetail_20' ) start [2025-01-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273368', 'tblTempUsageDetail_20' ) end [2025-01-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273368', 'tblTempVendorCDR_20' ) start [2025-01-18 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273368', 'tblTempVendorCDR_20' ) end [2025-01-18 05:03:19] Production.INFO: ProcessCDR(1,14273368,1,1,2) [2025-01-18 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273368', 'tblTempUsageDetail_20' ) start [2025-01-18 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273368', 'tblTempUsageDetail_20' ) end [2025-01-18 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:03:22] Production.INFO: ==23934== Releasing lock... [2025-01-18 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:04:06 [end_date_ymd] => 2025-01-18 05:04:06 [RateCDR] => 1 ) [2025-01-18 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:04:06' and `end` < '2025-01-18 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:04:19] Production.INFO: count ==270 [2025-01-18 05:04:20] Production.ERROR: pbx CDR StartTime 2025-01-18 02:04:06 - End Time 2025-01-18 05:04:06 [2025-01-18 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273373', 'tblTempUsageDetail_20' ) start [2025-01-18 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273373', 'tblTempUsageDetail_20' ) end [2025-01-18 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273373', 'tblTempVendorCDR_20' ) start [2025-01-18 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273373', 'tblTempVendorCDR_20' ) end [2025-01-18 05:04:20] Production.INFO: ProcessCDR(1,14273373,1,1,2) [2025-01-18 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273373', 'tblTempUsageDetail_20' ) start [2025-01-18 05:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273373', 'tblTempUsageDetail_20' ) end [2025-01-18 05:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:04:25] Production.INFO: ==24005== Releasing lock... [2025-01-18 05:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:04:25] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:05:05 [end_date_ymd] => 2025-01-18 05:05:05 [RateCDR] => 1 ) [2025-01-18 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:05:05' and `end` < '2025-01-18 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:05:17] Production.INFO: count ==269 [2025-01-18 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:05:05 - End Time 2025-01-18 05:05:05 [2025-01-18 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273378', 'tblTempUsageDetail_20' ) start [2025-01-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273378', 'tblTempUsageDetail_20' ) end [2025-01-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273378', 'tblTempVendorCDR_20' ) start [2025-01-18 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273378', 'tblTempVendorCDR_20' ) end [2025-01-18 05:05:17] Production.INFO: ProcessCDR(1,14273378,1,1,2) [2025-01-18 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273378', 'tblTempUsageDetail_20' ) start [2025-01-18 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273378', 'tblTempUsageDetail_20' ) end [2025-01-18 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:05:21] Production.INFO: ==24077== Releasing lock... [2025-01-18 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:06:06 [end_date_ymd] => 2025-01-18 05:06:06 [RateCDR] => 1 ) [2025-01-18 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:06:06' and `end` < '2025-01-18 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:06:26] Production.INFO: count ==267 [2025-01-18 05:06:26] Production.ERROR: pbx CDR StartTime 2025-01-18 02:06:06 - End Time 2025-01-18 05:06:06 [2025-01-18 05:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273383', 'tblTempUsageDetail_20' ) start [2025-01-18 05:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273383', 'tblTempUsageDetail_20' ) end [2025-01-18 05:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273383', 'tblTempVendorCDR_20' ) start [2025-01-18 05:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273383', 'tblTempVendorCDR_20' ) end [2025-01-18 05:06:26] Production.INFO: ProcessCDR(1,14273383,1,1,2) [2025-01-18 05:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273383', 'tblTempUsageDetail_20' ) start [2025-01-18 05:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273383', 'tblTempUsageDetail_20' ) end [2025-01-18 05:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:06:30] Production.INFO: ==24147== Releasing lock... [2025-01-18 05:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:06:30] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:07:05 [end_date_ymd] => 2025-01-18 05:07:05 [RateCDR] => 1 ) [2025-01-18 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:07:05' and `end` < '2025-01-18 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:07:19] Production.INFO: count ==266 [2025-01-18 05:07:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:07:05 - End Time 2025-01-18 05:07:05 [2025-01-18 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273388', 'tblTempUsageDetail_20' ) start [2025-01-18 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273388', 'tblTempUsageDetail_20' ) end [2025-01-18 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273388', 'tblTempVendorCDR_20' ) start [2025-01-18 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273388', 'tblTempVendorCDR_20' ) end [2025-01-18 05:07:19] Production.INFO: ProcessCDR(1,14273388,1,1,2) [2025-01-18 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273388', 'tblTempUsageDetail_20' ) start [2025-01-18 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273388', 'tblTempUsageDetail_20' ) end [2025-01-18 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:07:22] Production.INFO: ==24216== Releasing lock... [2025-01-18 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:08:05 [end_date_ymd] => 2025-01-18 05:08:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:08:05' and `end` < '2025-01-18 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-01-18 05:08:18] Production.INFO: count ==266 [2025-01-18 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:08:05 - End Time 2025-01-18 05:08:05 [2025-01-18 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273393', 'tblTempUsageDetail_20' ) start [2025-01-18 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273393', 'tblTempUsageDetail_20' ) end [2025-01-18 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273393', 'tblTempVendorCDR_20' ) start [2025-01-18 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273393', 'tblTempVendorCDR_20' ) end [2025-01-18 05:08:18] Production.INFO: ProcessCDR(1,14273393,1,1,2) [2025-01-18 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273393', 'tblTempUsageDetail_20' ) start [2025-01-18 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273393', 'tblTempUsageDetail_20' ) end [2025-01-18 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:08:22] Production.INFO: ==24287== Releasing lock... [2025-01-18 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:08:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:09:05 [end_date_ymd] => 2025-01-18 05:09:05 [RateCDR] => 1 ) [2025-01-18 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:09:05' and `end` < '2025-01-18 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:09:17] Production.INFO: count ==265 [2025-01-18 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:09:05 - End Time 2025-01-18 05:09:05 [2025-01-18 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273398', 'tblTempUsageDetail_20' ) start [2025-01-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273398', 'tblTempUsageDetail_20' ) end [2025-01-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273398', 'tblTempVendorCDR_20' ) start [2025-01-18 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273398', 'tblTempVendorCDR_20' ) end [2025-01-18 05:09:17] Production.INFO: ProcessCDR(1,14273398,1,1,2) [2025-01-18 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273398', 'tblTempUsageDetail_20' ) start [2025-01-18 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273398', 'tblTempUsageDetail_20' ) end [2025-01-18 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:09:20] Production.INFO: ==24360== Releasing lock... [2025-01-18 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-18 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:10:07 [end_date_ymd] => 2025-01-18 05:10:07 [RateCDR] => 1 ) [2025-01-18 05:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:10:07' and `end` < '2025-01-18 05:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:10:19] Production.INFO: count ==260 [2025-01-18 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:10:07 - End Time 2025-01-18 05:10:07 [2025-01-18 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273404', 'tblTempUsageDetail_20' ) start [2025-01-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273404', 'tblTempUsageDetail_20' ) end [2025-01-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273404', 'tblTempVendorCDR_20' ) start [2025-01-18 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273404', 'tblTempVendorCDR_20' ) end [2025-01-18 05:10:19] Production.INFO: ProcessCDR(1,14273404,1,1,2) [2025-01-18 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273404', 'tblTempUsageDetail_20' ) start [2025-01-18 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273404', 'tblTempUsageDetail_20' ) end [2025-01-18 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:10:22] Production.INFO: ==24434== Releasing lock... [2025-01-18 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:11:05 [end_date_ymd] => 2025-01-18 05:11:05 [RateCDR] => 1 ) [2025-01-18 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:11:05' and `end` < '2025-01-18 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:11:17] Production.INFO: count ==247 [2025-01-18 05:11:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:11:05 - End Time 2025-01-18 05:11:05 [2025-01-18 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273409', 'tblTempUsageDetail_20' ) start [2025-01-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273409', 'tblTempUsageDetail_20' ) end [2025-01-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273409', 'tblTempVendorCDR_20' ) start [2025-01-18 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273409', 'tblTempVendorCDR_20' ) end [2025-01-18 05:11:17] Production.INFO: ProcessCDR(1,14273409,1,1,2) [2025-01-18 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273409', 'tblTempUsageDetail_20' ) start [2025-01-18 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273409', 'tblTempUsageDetail_20' ) end [2025-01-18 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:11:21] Production.INFO: ==24506== Releasing lock... [2025-01-18 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:12:05 [end_date_ymd] => 2025-01-18 05:12:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:12:05' and `end` < '2025-01-18 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-01-18 05:12:18] Production.INFO: count ==247 [2025-01-18 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:12:05 - End Time 2025-01-18 05:12:05 [2025-01-18 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273414', 'tblTempUsageDetail_20' ) start [2025-01-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273414', 'tblTempUsageDetail_20' ) end [2025-01-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273414', 'tblTempVendorCDR_20' ) start [2025-01-18 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273414', 'tblTempVendorCDR_20' ) end [2025-01-18 05:12:18] Production.INFO: ProcessCDR(1,14273414,1,1,2) [2025-01-18 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273414', 'tblTempUsageDetail_20' ) start [2025-01-18 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273414', 'tblTempUsageDetail_20' ) end [2025-01-18 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:12:21] Production.INFO: ==24578== Releasing lock... [2025-01-18 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:13:05 [end_date_ymd] => 2025-01-18 05:13:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:13:05' and `end` < '2025-01-18 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-01-18 05:13:18] Production.INFO: count ==247 [2025-01-18 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:13:05 - End Time 2025-01-18 05:13:05 [2025-01-18 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273419', 'tblTempUsageDetail_20' ) start [2025-01-18 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273419', 'tblTempUsageDetail_20' ) end [2025-01-18 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273419', 'tblTempVendorCDR_20' ) start [2025-01-18 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273419', 'tblTempVendorCDR_20' ) end [2025-01-18 05:13:18] Production.INFO: ProcessCDR(1,14273419,1,1,2) [2025-01-18 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273419', 'tblTempUsageDetail_20' ) start [2025-01-18 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273419', 'tblTempUsageDetail_20' ) end [2025-01-18 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:13:21] Production.INFO: ==24650== Releasing lock... [2025-01-18 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:14:05 [end_date_ymd] => 2025-01-18 05:14:05 [RateCDR] => 1 ) [2025-01-18 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:14:05' and `end` < '2025-01-18 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:14:18] Production.INFO: count ==244 [2025-01-18 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:14:05 - End Time 2025-01-18 05:14:05 [2025-01-18 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273424', 'tblTempUsageDetail_20' ) start [2025-01-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273424', 'tblTempUsageDetail_20' ) end [2025-01-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273424', 'tblTempVendorCDR_20' ) start [2025-01-18 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273424', 'tblTempVendorCDR_20' ) end [2025-01-18 05:14:18] Production.INFO: ProcessCDR(1,14273424,1,1,2) [2025-01-18 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273424', 'tblTempUsageDetail_20' ) start [2025-01-18 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273424', 'tblTempUsageDetail_20' ) end [2025-01-18 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:14:22] Production.INFO: ==24721== Releasing lock... [2025-01-18 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:15:05 [end_date_ymd] => 2025-01-18 05:15:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:15:05' and `end` < '2025-01-18 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-01-18 05:15:17] Production.INFO: count ==244 [2025-01-18 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:15:05 - End Time 2025-01-18 05:15:05 [2025-01-18 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273429', 'tblTempUsageDetail_20' ) start [2025-01-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273429', 'tblTempUsageDetail_20' ) end [2025-01-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273429', 'tblTempVendorCDR_20' ) start [2025-01-18 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273429', 'tblTempVendorCDR_20' ) end [2025-01-18 05:15:17] Production.INFO: ProcessCDR(1,14273429,1,1,2) [2025-01-18 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273429', 'tblTempUsageDetail_20' ) start [2025-01-18 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273429', 'tblTempUsageDetail_20' ) end [2025-01-18 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:15:21] Production.INFO: ==24794== Releasing lock... [2025-01-18 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:16:06 [end_date_ymd] => 2025-01-18 05:16:06 [RateCDR] => 1 ) [2025-01-18 05:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:16:06' and `end` < '2025-01-18 05:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:16:19] Production.INFO: count ==244 [2025-01-18 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:16:06 - End Time 2025-01-18 05:16:06 [2025-01-18 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273434', 'tblTempUsageDetail_20' ) start [2025-01-18 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273434', 'tblTempUsageDetail_20' ) end [2025-01-18 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273434', 'tblTempVendorCDR_20' ) start [2025-01-18 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273434', 'tblTempVendorCDR_20' ) end [2025-01-18 05:16:19] Production.INFO: ProcessCDR(1,14273434,1,1,2) [2025-01-18 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273434', 'tblTempUsageDetail_20' ) start [2025-01-18 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273434', 'tblTempUsageDetail_20' ) end [2025-01-18 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:16:22] Production.INFO: ==24867== Releasing lock... [2025-01-18 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:17:04 [end_date_ymd] => 2025-01-18 05:17:04 [RateCDR] => 1 ) [2025-01-18 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:17:04' and `end` < '2025-01-18 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:17:17] Production.INFO: count ==244 [2025-01-18 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:17:04 - End Time 2025-01-18 05:17:04 [2025-01-18 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273439', 'tblTempUsageDetail_20' ) start [2025-01-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273439', 'tblTempUsageDetail_20' ) end [2025-01-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273439', 'tblTempVendorCDR_20' ) start [2025-01-18 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273439', 'tblTempVendorCDR_20' ) end [2025-01-18 05:17:17] Production.INFO: ProcessCDR(1,14273439,1,1,2) [2025-01-18 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273439', 'tblTempUsageDetail_20' ) start [2025-01-18 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273439', 'tblTempUsageDetail_20' ) end [2025-01-18 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:17:20] Production.INFO: ==24938== Releasing lock... [2025-01-18 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:18:05 [end_date_ymd] => 2025-01-18 05:18:05 [RateCDR] => 1 ) [2025-01-18 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:18:05' and `end` < '2025-01-18 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:18:18] Production.INFO: count ==244 [2025-01-18 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:18:05 - End Time 2025-01-18 05:18:05 [2025-01-18 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273444', 'tblTempUsageDetail_20' ) start [2025-01-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273444', 'tblTempUsageDetail_20' ) end [2025-01-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273444', 'tblTempVendorCDR_20' ) start [2025-01-18 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273444', 'tblTempVendorCDR_20' ) end [2025-01-18 05:18:18] Production.INFO: ProcessCDR(1,14273444,1,1,2) [2025-01-18 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273444', 'tblTempUsageDetail_20' ) start [2025-01-18 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273444', 'tblTempUsageDetail_20' ) end [2025-01-18 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:18:21] Production.INFO: ==25013== Releasing lock... [2025-01-18 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:19:05 [end_date_ymd] => 2025-01-18 05:19:05 [RateCDR] => 1 ) [2025-01-18 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:19:05' and `end` < '2025-01-18 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:19:17] Production.INFO: count ==244 [2025-01-18 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:19:05 - End Time 2025-01-18 05:19:05 [2025-01-18 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273449', 'tblTempUsageDetail_20' ) start [2025-01-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273449', 'tblTempUsageDetail_20' ) end [2025-01-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273449', 'tblTempVendorCDR_20' ) start [2025-01-18 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273449', 'tblTempVendorCDR_20' ) end [2025-01-18 05:19:17] Production.INFO: ProcessCDR(1,14273449,1,1,2) [2025-01-18 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273449', 'tblTempUsageDetail_20' ) start [2025-01-18 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273449', 'tblTempUsageDetail_20' ) end [2025-01-18 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:19:21] Production.INFO: ==25123== Releasing lock... [2025-01-18 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:20:06 [end_date_ymd] => 2025-01-18 05:20:06 [RateCDR] => 1 ) [2025-01-18 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:20:06' and `end` < '2025-01-18 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:20:18] Production.INFO: count ==244 [2025-01-18 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:20:06 - End Time 2025-01-18 05:20:06 [2025-01-18 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273455', 'tblTempUsageDetail_20' ) start [2025-01-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273455', 'tblTempUsageDetail_20' ) end [2025-01-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273455', 'tblTempVendorCDR_20' ) start [2025-01-18 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273455', 'tblTempVendorCDR_20' ) end [2025-01-18 05:20:18] Production.INFO: ProcessCDR(1,14273455,1,1,2) [2025-01-18 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273455', 'tblTempUsageDetail_20' ) start [2025-01-18 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273455', 'tblTempUsageDetail_20' ) end [2025-01-18 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:20:22] Production.INFO: ==25197== Releasing lock... [2025-01-18 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:21:05 [end_date_ymd] => 2025-01-18 05:21:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:21:05' and `end` < '2025-01-18 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:21:18] Production.INFO: count ==248 [2025-01-18 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:21:05 - End Time 2025-01-18 05:21:05 [2025-01-18 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273460', 'tblTempUsageDetail_20' ) start [2025-01-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273460', 'tblTempUsageDetail_20' ) end [2025-01-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273460', 'tblTempVendorCDR_20' ) start [2025-01-18 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273460', 'tblTempVendorCDR_20' ) end [2025-01-18 05:21:18] Production.INFO: ProcessCDR(1,14273460,1,1,2) [2025-01-18 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273460', 'tblTempUsageDetail_20' ) start [2025-01-18 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273460', 'tblTempUsageDetail_20' ) end [2025-01-18 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:21:21] Production.INFO: ==25268== Releasing lock... [2025-01-18 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:22:05 [end_date_ymd] => 2025-01-18 05:22:05 [RateCDR] => 1 ) [2025-01-18 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:22:05' and `end` < '2025-01-18 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:22:18] Production.INFO: count ==248 [2025-01-18 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:22:05 - End Time 2025-01-18 05:22:05 [2025-01-18 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273465', 'tblTempUsageDetail_20' ) start [2025-01-18 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273465', 'tblTempUsageDetail_20' ) end [2025-01-18 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273465', 'tblTempVendorCDR_20' ) start [2025-01-18 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273465', 'tblTempVendorCDR_20' ) end [2025-01-18 05:22:18] Production.INFO: ProcessCDR(1,14273465,1,1,2) [2025-01-18 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273465', 'tblTempUsageDetail_20' ) start [2025-01-18 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273465', 'tblTempUsageDetail_20' ) end [2025-01-18 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:22:22] Production.INFO: ==25340== Releasing lock... [2025-01-18 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:23:04 [end_date_ymd] => 2025-01-18 05:23:04 [RateCDR] => 1 ) [2025-01-18 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:23:04' and `end` < '2025-01-18 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:23:17] Production.INFO: count ==243 [2025-01-18 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:23:04 - End Time 2025-01-18 05:23:04 [2025-01-18 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273470', 'tblTempUsageDetail_20' ) start [2025-01-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273470', 'tblTempUsageDetail_20' ) end [2025-01-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273470', 'tblTempVendorCDR_20' ) start [2025-01-18 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273470', 'tblTempVendorCDR_20' ) end [2025-01-18 05:23:17] Production.INFO: ProcessCDR(1,14273470,1,1,2) [2025-01-18 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273470', 'tblTempUsageDetail_20' ) start [2025-01-18 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273470', 'tblTempUsageDetail_20' ) end [2025-01-18 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:23:20] Production.INFO: ==25408== Releasing lock... [2025-01-18 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-18 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:24:05 [end_date_ymd] => 2025-01-18 05:24:05 [RateCDR] => 1 ) [2025-01-18 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:24:05' and `end` < '2025-01-18 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:24:18] Production.INFO: count ==231 [2025-01-18 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:24:05 - End Time 2025-01-18 05:24:05 [2025-01-18 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273475', 'tblTempUsageDetail_20' ) start [2025-01-18 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273475', 'tblTempUsageDetail_20' ) end [2025-01-18 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273475', 'tblTempVendorCDR_20' ) start [2025-01-18 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273475', 'tblTempVendorCDR_20' ) end [2025-01-18 05:24:18] Production.INFO: ProcessCDR(1,14273475,1,1,2) [2025-01-18 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273475', 'tblTempUsageDetail_20' ) start [2025-01-18 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273475', 'tblTempUsageDetail_20' ) end [2025-01-18 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:24:21] Production.INFO: ==25482== Releasing lock... [2025-01-18 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:25:05 [end_date_ymd] => 2025-01-18 05:25:05 [RateCDR] => 1 ) [2025-01-18 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:25:05' and `end` < '2025-01-18 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:25:17] Production.INFO: count ==221 [2025-01-18 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:25:05 - End Time 2025-01-18 05:25:05 [2025-01-18 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273480', 'tblTempUsageDetail_20' ) start [2025-01-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273480', 'tblTempUsageDetail_20' ) end [2025-01-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273480', 'tblTempVendorCDR_20' ) start [2025-01-18 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273480', 'tblTempVendorCDR_20' ) end [2025-01-18 05:25:17] Production.INFO: ProcessCDR(1,14273480,1,1,2) [2025-01-18 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273480', 'tblTempUsageDetail_20' ) start [2025-01-18 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273480', 'tblTempUsageDetail_20' ) end [2025-01-18 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:25:21] Production.INFO: ==25552== Releasing lock... [2025-01-18 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:26:05 [end_date_ymd] => 2025-01-18 05:26:05 [RateCDR] => 1 ) [2025-01-18 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:26:05' and `end` < '2025-01-18 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:26:18] Production.INFO: count ==221 [2025-01-18 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:26:05 - End Time 2025-01-18 05:26:05 [2025-01-18 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273485', 'tblTempUsageDetail_20' ) start [2025-01-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273485', 'tblTempUsageDetail_20' ) end [2025-01-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273485', 'tblTempVendorCDR_20' ) start [2025-01-18 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273485', 'tblTempVendorCDR_20' ) end [2025-01-18 05:26:18] Production.INFO: ProcessCDR(1,14273485,1,1,2) [2025-01-18 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273485', 'tblTempUsageDetail_20' ) start [2025-01-18 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273485', 'tblTempUsageDetail_20' ) end [2025-01-18 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:26:21] Production.INFO: ==25624== Releasing lock... [2025-01-18 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:27:04 [end_date_ymd] => 2025-01-18 05:27:04 [RateCDR] => 1 ) [2025-01-18 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:27:04' and `end` < '2025-01-18 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:27:17] Production.INFO: count ==221 [2025-01-18 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:27:04 - End Time 2025-01-18 05:27:04 [2025-01-18 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273490', 'tblTempUsageDetail_20' ) start [2025-01-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273490', 'tblTempUsageDetail_20' ) end [2025-01-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273490', 'tblTempVendorCDR_20' ) start [2025-01-18 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273490', 'tblTempVendorCDR_20' ) end [2025-01-18 05:27:17] Production.INFO: ProcessCDR(1,14273490,1,1,2) [2025-01-18 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273490', 'tblTempUsageDetail_20' ) start [2025-01-18 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273490', 'tblTempUsageDetail_20' ) end [2025-01-18 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:27:21] Production.INFO: ==25693== Releasing lock... [2025-01-18 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:27:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:28:05 [end_date_ymd] => 2025-01-18 05:28:05 [RateCDR] => 1 ) [2025-01-18 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:28:05' and `end` < '2025-01-18 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:28:18] Production.INFO: count ==221 [2025-01-18 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:28:05 - End Time 2025-01-18 05:28:05 [2025-01-18 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273495', 'tblTempUsageDetail_20' ) start [2025-01-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273495', 'tblTempUsageDetail_20' ) end [2025-01-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273495', 'tblTempVendorCDR_20' ) start [2025-01-18 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273495', 'tblTempVendorCDR_20' ) end [2025-01-18 05:28:18] Production.INFO: ProcessCDR(1,14273495,1,1,2) [2025-01-18 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273495', 'tblTempUsageDetail_20' ) start [2025-01-18 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273495', 'tblTempUsageDetail_20' ) end [2025-01-18 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:28:21] Production.INFO: ==25763== Releasing lock... [2025-01-18 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:29:04 [end_date_ymd] => 2025-01-18 05:29:04 [RateCDR] => 1 ) [2025-01-18 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:29:04' and `end` < '2025-01-18 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:29:17] Production.INFO: count ==221 [2025-01-18 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:29:04 - End Time 2025-01-18 05:29:04 [2025-01-18 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273500', 'tblTempUsageDetail_20' ) start [2025-01-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273500', 'tblTempUsageDetail_20' ) end [2025-01-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273500', 'tblTempVendorCDR_20' ) start [2025-01-18 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273500', 'tblTempVendorCDR_20' ) end [2025-01-18 05:29:17] Production.INFO: ProcessCDR(1,14273500,1,1,2) [2025-01-18 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273500', 'tblTempUsageDetail_20' ) start [2025-01-18 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273500', 'tblTempUsageDetail_20' ) end [2025-01-18 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:29:20] Production.INFO: ==25832== Releasing lock... [2025-01-18 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:30:06 [end_date_ymd] => 2025-01-18 05:30:06 [RateCDR] => 1 ) [2025-01-18 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:30:06' and `end` < '2025-01-18 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:30:18] Production.INFO: count ==218 [2025-01-18 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:30:06 - End Time 2025-01-18 05:30:06 [2025-01-18 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273505', 'tblTempUsageDetail_20' ) start [2025-01-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273505', 'tblTempUsageDetail_20' ) end [2025-01-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273505', 'tblTempVendorCDR_20' ) start [2025-01-18 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273505', 'tblTempVendorCDR_20' ) end [2025-01-18 05:30:18] Production.INFO: ProcessCDR(1,14273505,1,1,2) [2025-01-18 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273505', 'tblTempUsageDetail_20' ) start [2025-01-18 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273505', 'tblTempUsageDetail_20' ) end [2025-01-18 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:30:21] Production.INFO: ==25911== Releasing lock... [2025-01-18 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-18 05:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:31:04 [end_date_ymd] => 2025-01-18 05:31:04 [RateCDR] => 1 ) [2025-01-18 05:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:31:04' and `end` < '2025-01-18 05:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:31:18] Production.INFO: count ==201 [2025-01-18 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:31:04 - End Time 2025-01-18 05:31:04 [2025-01-18 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273511', 'tblTempUsageDetail_20' ) start [2025-01-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273511', 'tblTempUsageDetail_20' ) end [2025-01-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273511', 'tblTempVendorCDR_20' ) start [2025-01-18 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273511', 'tblTempVendorCDR_20' ) end [2025-01-18 05:31:18] Production.INFO: ProcessCDR(1,14273511,1,1,2) [2025-01-18 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273511', 'tblTempUsageDetail_20' ) start [2025-01-18 05:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273511', 'tblTempUsageDetail_20' ) end [2025-01-18 05:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:31:23] Production.INFO: ==25986== Releasing lock... [2025-01-18 05:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:32:05 [end_date_ymd] => 2025-01-18 05:32:05 [RateCDR] => 1 ) [2025-01-18 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:32:05' and `end` < '2025-01-18 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:32:18] Production.INFO: count ==201 [2025-01-18 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:32:05 - End Time 2025-01-18 05:32:05 [2025-01-18 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273516', 'tblTempUsageDetail_20' ) start [2025-01-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273516', 'tblTempUsageDetail_20' ) end [2025-01-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273516', 'tblTempVendorCDR_20' ) start [2025-01-18 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273516', 'tblTempVendorCDR_20' ) end [2025-01-18 05:32:18] Production.INFO: ProcessCDR(1,14273516,1,1,2) [2025-01-18 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273516', 'tblTempUsageDetail_20' ) start [2025-01-18 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273516', 'tblTempUsageDetail_20' ) end [2025-01-18 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:32:21] Production.INFO: ==26060== Releasing lock... [2025-01-18 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:33:05 [end_date_ymd] => 2025-01-18 05:33:05 [RateCDR] => 1 ) [2025-01-18 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:33:05' and `end` < '2025-01-18 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:33:17] Production.INFO: count ==201 [2025-01-18 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:33:05 - End Time 2025-01-18 05:33:05 [2025-01-18 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273521', 'tblTempUsageDetail_20' ) start [2025-01-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273521', 'tblTempUsageDetail_20' ) end [2025-01-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273521', 'tblTempVendorCDR_20' ) start [2025-01-18 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273521', 'tblTempVendorCDR_20' ) end [2025-01-18 05:33:17] Production.INFO: ProcessCDR(1,14273521,1,1,2) [2025-01-18 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273521', 'tblTempUsageDetail_20' ) start [2025-01-18 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273521', 'tblTempUsageDetail_20' ) end [2025-01-18 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:33:21] Production.INFO: ==26129== Releasing lock... [2025-01-18 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:34:05 [end_date_ymd] => 2025-01-18 05:34:05 [RateCDR] => 1 ) [2025-01-18 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:34:05' and `end` < '2025-01-18 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:34:18] Production.INFO: count ==201 [2025-01-18 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:34:05 - End Time 2025-01-18 05:34:05 [2025-01-18 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273526', 'tblTempUsageDetail_20' ) start [2025-01-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273526', 'tblTempUsageDetail_20' ) end [2025-01-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273526', 'tblTempVendorCDR_20' ) start [2025-01-18 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273526', 'tblTempVendorCDR_20' ) end [2025-01-18 05:34:18] Production.INFO: ProcessCDR(1,14273526,1,1,2) [2025-01-18 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273526', 'tblTempUsageDetail_20' ) start [2025-01-18 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273526', 'tblTempUsageDetail_20' ) end [2025-01-18 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:34:22] Production.INFO: ==26199== Releasing lock... [2025-01-18 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:35:05 [end_date_ymd] => 2025-01-18 05:35:05 [RateCDR] => 1 ) [2025-01-18 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:35:05' and `end` < '2025-01-18 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:35:17] Production.INFO: count ==201 [2025-01-18 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:35:05 - End Time 2025-01-18 05:35:05 [2025-01-18 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273531', 'tblTempUsageDetail_20' ) start [2025-01-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273531', 'tblTempUsageDetail_20' ) end [2025-01-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273531', 'tblTempVendorCDR_20' ) start [2025-01-18 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273531', 'tblTempVendorCDR_20' ) end [2025-01-18 05:35:17] Production.INFO: ProcessCDR(1,14273531,1,1,2) [2025-01-18 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273531', 'tblTempUsageDetail_20' ) start [2025-01-18 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273531', 'tblTempUsageDetail_20' ) end [2025-01-18 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:35:20] Production.INFO: ==26309== Releasing lock... [2025-01-18 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:36:05 [end_date_ymd] => 2025-01-18 05:36:05 [RateCDR] => 1 ) [2025-01-18 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:36:05' and `end` < '2025-01-18 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:36:18] Production.INFO: count ==197 [2025-01-18 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:36:05 - End Time 2025-01-18 05:36:05 [2025-01-18 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273536', 'tblTempUsageDetail_20' ) start [2025-01-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273536', 'tblTempUsageDetail_20' ) end [2025-01-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273536', 'tblTempVendorCDR_20' ) start [2025-01-18 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273536', 'tblTempVendorCDR_20' ) end [2025-01-18 05:36:18] Production.INFO: ProcessCDR(1,14273536,1,1,2) [2025-01-18 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273536', 'tblTempUsageDetail_20' ) start [2025-01-18 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273536', 'tblTempUsageDetail_20' ) end [2025-01-18 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:36:21] Production.INFO: ==26382== Releasing lock... [2025-01-18 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:37:06 [end_date_ymd] => 2025-01-18 05:37:06 [RateCDR] => 1 ) [2025-01-18 05:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:37:06' and `end` < '2025-01-18 05:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:37:20] Production.INFO: count ==198 [2025-01-18 05:37:20] Production.ERROR: pbx CDR StartTime 2025-01-18 02:37:06 - End Time 2025-01-18 05:37:06 [2025-01-18 05:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273541', 'tblTempUsageDetail_20' ) start [2025-01-18 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273541', 'tblTempUsageDetail_20' ) end [2025-01-18 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273541', 'tblTempVendorCDR_20' ) start [2025-01-18 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273541', 'tblTempVendorCDR_20' ) end [2025-01-18 05:37:20] Production.INFO: ProcessCDR(1,14273541,1,1,2) [2025-01-18 05:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273541', 'tblTempUsageDetail_20' ) start [2025-01-18 05:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273541', 'tblTempUsageDetail_20' ) end [2025-01-18 05:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:37:25] Production.INFO: ==26453== Releasing lock... [2025-01-18 05:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:37:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:38:05 [end_date_ymd] => 2025-01-18 05:38:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:38:05' and `end` < '2025-01-18 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-01-18 05:38:18] Production.INFO: count ==198 [2025-01-18 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:38:05 - End Time 2025-01-18 05:38:05 [2025-01-18 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273546', 'tblTempUsageDetail_20' ) start [2025-01-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273546', 'tblTempUsageDetail_20' ) end [2025-01-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273546', 'tblTempVendorCDR_20' ) start [2025-01-18 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273546', 'tblTempVendorCDR_20' ) end [2025-01-18 05:38:18] Production.INFO: ProcessCDR(1,14273546,1,1,2) [2025-01-18 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273546', 'tblTempUsageDetail_20' ) start [2025-01-18 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273546', 'tblTempUsageDetail_20' ) end [2025-01-18 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:38:22] Production.INFO: ==26527== Releasing lock... [2025-01-18 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:39:05 [end_date_ymd] => 2025-01-18 05:39:05 [RateCDR] => 1 ) [2025-01-18 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:39:05' and `end` < '2025-01-18 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:39:17] Production.INFO: count ==198 [2025-01-18 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:39:05 - End Time 2025-01-18 05:39:05 [2025-01-18 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273551', 'tblTempUsageDetail_20' ) start [2025-01-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273551', 'tblTempUsageDetail_20' ) end [2025-01-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273551', 'tblTempVendorCDR_20' ) start [2025-01-18 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273551', 'tblTempVendorCDR_20' ) end [2025-01-18 05:39:17] Production.INFO: ProcessCDR(1,14273551,1,1,2) [2025-01-18 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273551', 'tblTempUsageDetail_20' ) start [2025-01-18 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273551', 'tblTempUsageDetail_20' ) end [2025-01-18 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:39:21] Production.INFO: ==26597== Releasing lock... [2025-01-18 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:40:06 [end_date_ymd] => 2025-01-18 05:40:06 [RateCDR] => 1 ) [2025-01-18 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:40:06' and `end` < '2025-01-18 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:40:19] Production.INFO: count ==195 [2025-01-18 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:40:06 - End Time 2025-01-18 05:40:06 [2025-01-18 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273557', 'tblTempUsageDetail_20' ) start [2025-01-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273557', 'tblTempUsageDetail_20' ) end [2025-01-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273557', 'tblTempVendorCDR_20' ) start [2025-01-18 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273557', 'tblTempVendorCDR_20' ) end [2025-01-18 05:40:19] Production.INFO: ProcessCDR(1,14273557,1,1,2) [2025-01-18 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273557', 'tblTempUsageDetail_20' ) start [2025-01-18 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273557', 'tblTempUsageDetail_20' ) end [2025-01-18 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:40:23] Production.INFO: ==26670== Releasing lock... [2025-01-18 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:41:05 [end_date_ymd] => 2025-01-18 05:41:05 [RateCDR] => 1 ) [2025-01-18 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:41:05' and `end` < '2025-01-18 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:41:18] Production.INFO: count ==185 [2025-01-18 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:41:05 - End Time 2025-01-18 05:41:05 [2025-01-18 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273562', 'tblTempUsageDetail_20' ) start [2025-01-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273562', 'tblTempUsageDetail_20' ) end [2025-01-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273562', 'tblTempVendorCDR_20' ) start [2025-01-18 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273562', 'tblTempVendorCDR_20' ) end [2025-01-18 05:41:18] Production.INFO: ProcessCDR(1,14273562,1,1,2) [2025-01-18 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273562', 'tblTempUsageDetail_20' ) start [2025-01-18 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273562', 'tblTempUsageDetail_20' ) end [2025-01-18 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:41:21] Production.INFO: ==26742== Releasing lock... [2025-01-18 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:42:05 [end_date_ymd] => 2025-01-18 05:42:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:42:05' and `end` < '2025-01-18 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-01-18 05:42:17] Production.INFO: count ==185 [2025-01-18 05:42:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:42:05 - End Time 2025-01-18 05:42:05 [2025-01-18 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273567', 'tblTempUsageDetail_20' ) start [2025-01-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273567', 'tblTempUsageDetail_20' ) end [2025-01-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273567', 'tblTempVendorCDR_20' ) start [2025-01-18 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273567', 'tblTempVendorCDR_20' ) end [2025-01-18 05:42:17] Production.INFO: ProcessCDR(1,14273567,1,1,2) [2025-01-18 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273567', 'tblTempUsageDetail_20' ) start [2025-01-18 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273567', 'tblTempUsageDetail_20' ) end [2025-01-18 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:42:20] Production.INFO: ==26812== Releasing lock... [2025-01-18 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:43:05 [end_date_ymd] => 2025-01-18 05:43:05 [RateCDR] => 1 ) [2025-01-18 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:43:05' and `end` < '2025-01-18 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:43:18] Production.INFO: count ==185 [2025-01-18 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:43:05 - End Time 2025-01-18 05:43:05 [2025-01-18 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273572', 'tblTempUsageDetail_20' ) start [2025-01-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273572', 'tblTempUsageDetail_20' ) end [2025-01-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273572', 'tblTempVendorCDR_20' ) start [2025-01-18 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273572', 'tblTempVendorCDR_20' ) end [2025-01-18 05:43:18] Production.INFO: ProcessCDR(1,14273572,1,1,2) [2025-01-18 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273572', 'tblTempUsageDetail_20' ) start [2025-01-18 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273572', 'tblTempUsageDetail_20' ) end [2025-01-18 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:43:22] Production.INFO: ==26883== Releasing lock... [2025-01-18 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:44:05 [end_date_ymd] => 2025-01-18 05:44:05 [RateCDR] => 1 ) [2025-01-18 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:44:05' and `end` < '2025-01-18 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:44:17] Production.INFO: count ==185 [2025-01-18 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:44:05 - End Time 2025-01-18 05:44:05 [2025-01-18 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273577', 'tblTempUsageDetail_20' ) start [2025-01-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273577', 'tblTempUsageDetail_20' ) end [2025-01-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273577', 'tblTempVendorCDR_20' ) start [2025-01-18 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273577', 'tblTempVendorCDR_20' ) end [2025-01-18 05:44:17] Production.INFO: ProcessCDR(1,14273577,1,1,2) [2025-01-18 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273577', 'tblTempUsageDetail_20' ) start [2025-01-18 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273577', 'tblTempUsageDetail_20' ) end [2025-01-18 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:44:21] Production.INFO: ==26955== Releasing lock... [2025-01-18 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:45:05 [end_date_ymd] => 2025-01-18 05:45:05 [RateCDR] => 1 ) [2025-01-18 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:45:05' and `end` < '2025-01-18 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:45:17] Production.INFO: count ==185 [2025-01-18 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:45:05 - End Time 2025-01-18 05:45:05 [2025-01-18 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273581', 'tblTempUsageDetail_20' ) start [2025-01-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273581', 'tblTempUsageDetail_20' ) end [2025-01-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273581', 'tblTempVendorCDR_20' ) start [2025-01-18 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273581', 'tblTempVendorCDR_20' ) end [2025-01-18 05:45:17] Production.INFO: ProcessCDR(1,14273581,1,1,2) [2025-01-18 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273581', 'tblTempUsageDetail_20' ) start [2025-01-18 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273581', 'tblTempUsageDetail_20' ) end [2025-01-18 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:45:20] Production.INFO: ==27033== Releasing lock... [2025-01-18 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:46:05 [end_date_ymd] => 2025-01-18 05:46:05 [RateCDR] => 1 ) [2025-01-18 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:46:05' and `end` < '2025-01-18 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:46:18] Production.INFO: count ==185 [2025-01-18 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:46:05 - End Time 2025-01-18 05:46:05 [2025-01-18 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273587', 'tblTempUsageDetail_20' ) start [2025-01-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273587', 'tblTempUsageDetail_20' ) end [2025-01-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273587', 'tblTempVendorCDR_20' ) start [2025-01-18 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273587', 'tblTempVendorCDR_20' ) end [2025-01-18 05:46:18] Production.INFO: ProcessCDR(1,14273587,1,1,2) [2025-01-18 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273587', 'tblTempUsageDetail_20' ) start [2025-01-18 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273587', 'tblTempUsageDetail_20' ) end [2025-01-18 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:46:21] Production.INFO: ==27103== Releasing lock... [2025-01-18 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:47:05 [end_date_ymd] => 2025-01-18 05:47:05 [RateCDR] => 1 ) [2025-01-18 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:47:05' and `end` < '2025-01-18 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:47:19] Production.INFO: count ==184 [2025-01-18 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-18 02:47:05 - End Time 2025-01-18 05:47:05 [2025-01-18 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273592', 'tblTempUsageDetail_20' ) start [2025-01-18 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273592', 'tblTempUsageDetail_20' ) end [2025-01-18 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273592', 'tblTempVendorCDR_20' ) start [2025-01-18 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273592', 'tblTempVendorCDR_20' ) end [2025-01-18 05:47:19] Production.INFO: ProcessCDR(1,14273592,1,1,2) [2025-01-18 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273592', 'tblTempUsageDetail_20' ) start [2025-01-18 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273592', 'tblTempUsageDetail_20' ) end [2025-01-18 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:47:22] Production.INFO: ==27173== Releasing lock... [2025-01-18 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:48:05 [end_date_ymd] => 2025-01-18 05:48:05 [RateCDR] => 1 ) [2025-01-18 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:48:05' and `end` < '2025-01-18 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:48:17] Production.INFO: count ==184 [2025-01-18 05:48:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:48:05 - End Time 2025-01-18 05:48:05 [2025-01-18 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273597', 'tblTempUsageDetail_20' ) start [2025-01-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273597', 'tblTempUsageDetail_20' ) end [2025-01-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273597', 'tblTempVendorCDR_20' ) start [2025-01-18 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273597', 'tblTempVendorCDR_20' ) end [2025-01-18 05:48:17] Production.INFO: ProcessCDR(1,14273597,1,1,2) [2025-01-18 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273597', 'tblTempUsageDetail_20' ) start [2025-01-18 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273597', 'tblTempUsageDetail_20' ) end [2025-01-18 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:48:21] Production.INFO: ==27244== Releasing lock... [2025-01-18 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:49:05 [end_date_ymd] => 2025-01-18 05:49:05 [RateCDR] => 1 ) [2025-01-18 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:49:05' and `end` < '2025-01-18 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:49:17] Production.INFO: count ==184 [2025-01-18 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-18 02:49:05 - End Time 2025-01-18 05:49:05 [2025-01-18 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273602', 'tblTempUsageDetail_20' ) start [2025-01-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273602', 'tblTempUsageDetail_20' ) end [2025-01-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273602', 'tblTempVendorCDR_20' ) start [2025-01-18 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273602', 'tblTempVendorCDR_20' ) end [2025-01-18 05:49:17] Production.INFO: ProcessCDR(1,14273602,1,1,2) [2025-01-18 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273602', 'tblTempUsageDetail_20' ) start [2025-01-18 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273602', 'tblTempUsageDetail_20' ) end [2025-01-18 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:49:20] Production.INFO: ==27313== Releasing lock... [2025-01-18 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:50:05 [end_date_ymd] => 2025-01-18 05:50:05 [RateCDR] => 1 ) [2025-01-18 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-01-18 02:50:05' and `end` < '2025-01-18 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-01-18 05:50:18] Production.INFO: count ==182 [2025-01-18 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:50:05 - End Time 2025-01-18 05:50:05 [2025-01-18 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273607', 'tblTempUsageDetail_20' ) start [2025-01-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273607', 'tblTempUsageDetail_20' ) end [2025-01-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273607', 'tblTempVendorCDR_20' ) start [2025-01-18 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273607', 'tblTempVendorCDR_20' ) end [2025-01-18 05:50:18] Production.INFO: ProcessCDR(1,14273607,1,1,2) [2025-01-18 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273607', 'tblTempUsageDetail_20' ) start [2025-01-18 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273607', 'tblTempUsageDetail_20' ) end [2025-01-18 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:50:21] Production.INFO: ==27423== Releasing lock... [2025-01-18 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:51:05 [end_date_ymd] => 2025-01-18 05:51:05 [RateCDR] => 1 ) [2025-01-18 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:51:05' and `end` < '2025-01-18 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-18 05:51:18] Production.INFO: count ==180 [2025-01-18 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-18 02:51:05 - End Time 2025-01-18 05:51:05 [2025-01-18 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273613', 'tblTempUsageDetail_20' ) start [2025-01-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14273613', 'tblTempUsageDetail_20' ) end [2025-01-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273613', 'tblTempVendorCDR_20' ) start [2025-01-18 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14273613', 'tblTempVendorCDR_20' ) end [2025-01-18 05:51:18] Production.INFO: ProcessCDR(1,14273613,1,1,2) [2025-01-18 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14273613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14273613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-18 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14273613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14273613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-18 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273613', 'tblTempUsageDetail_20' ) start [2025-01-18 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14273613', 'tblTempUsageDetail_20' ) end [2025-01-18 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-18 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-18 05:51:22] Production.INFO: ==27496== Releasing lock... [2025-01-18 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-18 05:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-18 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-18 02:52:05 [end_date_ymd] => 2025-01-18 05:52:05 [RateCDR] => 1 ) [2025-01-18 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-18 02:52:05' and `end` < '2025-01-18 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 ,'')