[2025-04-05 00:00:04] Production.INFO: next invoice date [2025-04-05 00:00:04] Production.INFO: 2025-05-05 [2025-04-05 00:00:04] Production.INFO: getdaysdiff [2025-04-05 00:00:04] Production.INFO: +30 [2025-04-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,30,30,'RMScheduler',2025-04-05 00:00:04,0,0,,,0) [2025-04-05 00:00:04] Production.INFO: next invoice date [2025-04-05 00:00:04] Production.INFO: 2025-05-05 [2025-04-05 00:00:04] Production.INFO: getdaysdiff [2025-04-05 00:00:04] Production.INFO: +30 [2025-04-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,30,30,'RMScheduler',2025-04-05 00:00:04,0,0,,,0) [2025-04-05 00:00:04] Production.INFO: next invoice date [2025-04-05 00:00:04] Production.INFO: 2025-05-05 [2025-04-05 00:00:04] Production.INFO: getdaysdiff [2025-04-05 00:00:04] Production.INFO: +30 [2025-04-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,30,30,'RMScheduler',2025-04-05 00:00:04,0,0,,,0) [2025-04-05 00:00:04] Production.INFO: next invoice date [2025-04-05 00:00:04] Production.INFO: 2025-05-05 [2025-04-05 00:00:04] Production.INFO: getdaysdiff [2025-04-05 00:00:04] Production.INFO: +30 [2025-04-05 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,30,30,'RMScheduler',2025-04-05 00:00:04,0,0,,,0) [2025-04-05 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:00:06 [end_date_ymd] => 2025-04-05 00:00:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:00:06' and `end` < '2025-04-05 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-04-05 00:00:20] Production.INFO: count ==1601 [2025-04-05 00:00:20] Production.ERROR: pbx CDR StartTime 2025-04-04 21:00:06 - End Time 2025-04-05 00:00:06 [2025-04-05 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836363', 'tblTempUsageDetail_20' ) start [2025-04-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836363', 'tblTempUsageDetail_20' ) end [2025-04-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836363', 'tblTempVendorCDR_20' ) start [2025-04-05 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836363', 'tblTempVendorCDR_20' ) end [2025-04-05 00:00:20] Production.INFO: ProcessCDR(1,14836363,1,1,2) [2025-04-05 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836363', 'tblTempUsageDetail_20' ) start [2025-04-05 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836363', 'tblTempUsageDetail_20' ) end [2025-04-05 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:00:25] Production.INFO: ==3952== Releasing lock... [2025-04-05 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:00:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:01:06 [end_date_ymd] => 2025-04-05 00:01:06 [RateCDR] => 1 ) [2025-04-05 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:01:06' and `end` < '2025-04-05 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:01:19] Production.INFO: count ==1000 [2025-04-05 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-04 21:01:06 - End Time 2025-04-05 00:01:06 [2025-04-05 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836369', 'tblTempUsageDetail_20' ) start [2025-04-05 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836369', 'tblTempUsageDetail_20' ) end [2025-04-05 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836369', 'tblTempVendorCDR_20' ) start [2025-04-05 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836369', 'tblTempVendorCDR_20' ) end [2025-04-05 00:01:20] Production.INFO: ProcessCDR(1,14836369,1,1,2) [2025-04-05 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836369', 'tblTempUsageDetail_20' ) start [2025-04-05 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836369', 'tblTempUsageDetail_20' ) end [2025-04-05 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:01:25] Production.INFO: ==4043== Releasing lock... [2025-04-05 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:01:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-05 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:02:05 [end_date_ymd] => 2025-04-05 00:02:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:02:05' and `end` < '2025-04-05 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-04-05 00:02:21] Production.INFO: count ==984 [2025-04-05 00:02:21] Production.ERROR: pbx CDR StartTime 2025-04-04 21:02:05 - End Time 2025-04-05 00:02:05 [2025-04-05 00:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836374', 'tblTempUsageDetail_20' ) start [2025-04-05 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836374', 'tblTempUsageDetail_20' ) end [2025-04-05 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836374', 'tblTempVendorCDR_20' ) start [2025-04-05 00:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836374', 'tblTempVendorCDR_20' ) end [2025-04-05 00:02:21] Production.INFO: ProcessCDR(1,14836374,1,1,2) [2025-04-05 00:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836374', 'tblTempUsageDetail_20' ) start [2025-04-05 00:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836374', 'tblTempUsageDetail_20' ) end [2025-04-05 00:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:02:25] Production.INFO: ==4116== Releasing lock... [2025-04-05 00:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:02:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-05 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:03:05 [end_date_ymd] => 2025-04-05 00:03:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:03:05' and `end` < '2025-04-05 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-04-05 00:03:21] Production.INFO: count ==991 [2025-04-05 00:03:21] Production.ERROR: pbx CDR StartTime 2025-04-04 21:03:05 - End Time 2025-04-05 00:03:05 [2025-04-05 00:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836379', 'tblTempUsageDetail_20' ) start [2025-04-05 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836379', 'tblTempUsageDetail_20' ) end [2025-04-05 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836379', 'tblTempVendorCDR_20' ) start [2025-04-05 00:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836379', 'tblTempVendorCDR_20' ) end [2025-04-05 00:03:21] Production.INFO: ProcessCDR(1,14836379,1,1,2) [2025-04-05 00:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836379', 'tblTempUsageDetail_20' ) start [2025-04-05 00:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836379', 'tblTempUsageDetail_20' ) end [2025-04-05 00:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:03:25] Production.INFO: ==4187== Releasing lock... [2025-04-05 00:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:03:25] Production.INFO: 37 MB #Memory Used# [2025-04-05 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:04:04 [end_date_ymd] => 2025-04-05 00:04:04 [RateCDR] => 1 ) [2025-04-05 00:04: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-04-04 21:04:04' and `end` < '2025-04-05 00:04: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-04-05 00:04:17] Production.INFO: count ==991 [2025-04-05 00:04:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:04:04 - End Time 2025-04-05 00:04:04 [2025-04-05 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836384', 'tblTempUsageDetail_20' ) start [2025-04-05 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836384', 'tblTempUsageDetail_20' ) end [2025-04-05 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836384', 'tblTempVendorCDR_20' ) start [2025-04-05 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836384', 'tblTempVendorCDR_20' ) end [2025-04-05 00:04:18] Production.INFO: ProcessCDR(1,14836384,1,1,2) [2025-04-05 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836384', 'tblTempUsageDetail_20' ) start [2025-04-05 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836384', 'tblTempUsageDetail_20' ) end [2025-04-05 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:04:21] Production.INFO: ==4259== Releasing lock... [2025-04-05 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:04:21] Production.INFO: 37 MB #Memory Used# [2025-04-05 00:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:05:06 [end_date_ymd] => 2025-04-05 00:05:06 [RateCDR] => 1 ) [2025-04-05 00:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:05:06' and `end` < '2025-04-05 00:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:05:33] Production.INFO: count ==990 [2025-04-05 00:05:33] Production.ERROR: pbx CDR StartTime 2025-04-04 21:05:06 - End Time 2025-04-05 00:05:06 [2025-04-05 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836389', 'tblTempUsageDetail_20' ) start [2025-04-05 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836389', 'tblTempUsageDetail_20' ) end [2025-04-05 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836389', 'tblTempVendorCDR_20' ) start [2025-04-05 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836389', 'tblTempVendorCDR_20' ) end [2025-04-05 00:05:33] Production.INFO: ProcessCDR(1,14836389,1,1,2) [2025-04-05 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836389', 'tblTempUsageDetail_20' ) start [2025-04-05 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836389', 'tblTempUsageDetail_20' ) end [2025-04-05 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:05:37] Production.INFO: ==4331== Releasing lock... [2025-04-05 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:05:37] Production.INFO: 37 MB #Memory Used# [2025-04-05 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:06:06 [end_date_ymd] => 2025-04-05 00:06:06 [RateCDR] => 1 ) [2025-04-05 00: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-04-04 21:06:06' and `end` < '2025-04-05 00: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-04-05 00:06:33] Production.INFO: count ==988 [2025-04-05 00:06:33] Production.ERROR: pbx CDR StartTime 2025-04-04 21:06:06 - End Time 2025-04-05 00:06:06 [2025-04-05 00:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836394', 'tblTempUsageDetail_20' ) start [2025-04-05 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836394', 'tblTempUsageDetail_20' ) end [2025-04-05 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836394', 'tblTempVendorCDR_20' ) start [2025-04-05 00:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836394', 'tblTempVendorCDR_20' ) end [2025-04-05 00:06:33] Production.INFO: ProcessCDR(1,14836394,1,1,2) [2025-04-05 00:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836394', 'tblTempUsageDetail_20' ) start [2025-04-05 00:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836394', 'tblTempUsageDetail_20' ) end [2025-04-05 00:06:39] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:06:39] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:06:39] Production.INFO: ==4404== Releasing lock... [2025-04-05 00:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:06:39] Production.INFO: 37 MB #Memory Used# [2025-04-05 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:07:05 [end_date_ymd] => 2025-04-05 00:07:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:07:05' and `end` < '2025-04-05 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-04-05 00:07:30] Production.INFO: count ==979 [2025-04-05 00:07:31] Production.ERROR: pbx CDR StartTime 2025-04-04 21:07:05 - End Time 2025-04-05 00:07:05 [2025-04-05 00:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836399', 'tblTempUsageDetail_20' ) start [2025-04-05 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836399', 'tblTempUsageDetail_20' ) end [2025-04-05 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836399', 'tblTempVendorCDR_20' ) start [2025-04-05 00:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836399', 'tblTempVendorCDR_20' ) end [2025-04-05 00:07:31] Production.INFO: ProcessCDR(1,14836399,1,1,2) [2025-04-05 00:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836399', 'tblTempUsageDetail_20' ) start [2025-04-05 00:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836399', 'tblTempUsageDetail_20' ) end [2025-04-05 00:07:34] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:07:34] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:07:34] Production.INFO: ==4476== Releasing lock... [2025-04-05 00:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:07:34] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:08:05 [end_date_ymd] => 2025-04-05 00:08:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:08:05' and `end` < '2025-04-05 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-04-05 00:08:28] Production.INFO: count ==977 [2025-04-05 00:08:29] Production.ERROR: pbx CDR StartTime 2025-04-04 21:08:05 - End Time 2025-04-05 00:08:05 [2025-04-05 00:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836404', 'tblTempUsageDetail_20' ) start [2025-04-05 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836404', 'tblTempUsageDetail_20' ) end [2025-04-05 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836404', 'tblTempVendorCDR_20' ) start [2025-04-05 00:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836404', 'tblTempVendorCDR_20' ) end [2025-04-05 00:08:29] Production.INFO: ProcessCDR(1,14836404,1,1,2) [2025-04-05 00:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836404', 'tblTempUsageDetail_20' ) start [2025-04-05 00:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836404', 'tblTempUsageDetail_20' ) end [2025-04-05 00:08:32] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:08:32] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:08:32] Production.INFO: ==4552== Releasing lock... [2025-04-05 00:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:08:32] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:09:05 [end_date_ymd] => 2025-04-05 00:09:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:09:05' and `end` < '2025-04-05 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-04-05 00:09:23] Production.INFO: count ==964 [2025-04-05 00:09:23] Production.ERROR: pbx CDR StartTime 2025-04-04 21:09:05 - End Time 2025-04-05 00:09:05 [2025-04-05 00:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836409', 'tblTempUsageDetail_20' ) start [2025-04-05 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836409', 'tblTempUsageDetail_20' ) end [2025-04-05 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836409', 'tblTempVendorCDR_20' ) start [2025-04-05 00:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836409', 'tblTempVendorCDR_20' ) end [2025-04-05 00:09:23] Production.INFO: ProcessCDR(1,14836409,1,1,2) [2025-04-05 00:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836409', 'tblTempUsageDetail_20' ) start [2025-04-05 00:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836409', 'tblTempUsageDetail_20' ) end [2025-04-05 00:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:09:27] Production.INFO: ==4635== Releasing lock... [2025-04-05 00:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:09:27] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:10:06 [end_date_ymd] => 2025-04-05 00:10:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:10:06' and `end` < '2025-04-05 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-04-05 00:10:20] Production.INFO: count ==964 [2025-04-05 00:10:21] Production.ERROR: pbx CDR StartTime 2025-04-04 21:10:06 - End Time 2025-04-05 00:10:06 [2025-04-05 00:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836415', 'tblTempUsageDetail_20' ) start [2025-04-05 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836415', 'tblTempUsageDetail_20' ) end [2025-04-05 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836415', 'tblTempVendorCDR_20' ) start [2025-04-05 00:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836415', 'tblTempVendorCDR_20' ) end [2025-04-05 00:10:21] Production.INFO: ProcessCDR(1,14836415,1,1,2) [2025-04-05 00:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836415', 'tblTempUsageDetail_20' ) start [2025-04-05 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836415', 'tblTempUsageDetail_20' ) end [2025-04-05 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:10:24] Production.INFO: ==4714== Releasing lock... [2025-04-05 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:10:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:11:05 [end_date_ymd] => 2025-04-05 00:11:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:11:05' and `end` < '2025-04-05 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-04-05 00:11:18] Production.INFO: count ==952 [2025-04-05 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:11:05 - End Time 2025-04-05 00:11:05 [2025-04-05 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836420', 'tblTempUsageDetail_20' ) start [2025-04-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836420', 'tblTempUsageDetail_20' ) end [2025-04-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836420', 'tblTempVendorCDR_20' ) start [2025-04-05 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836420', 'tblTempVendorCDR_20' ) end [2025-04-05 00:11:18] Production.INFO: ProcessCDR(1,14836420,1,1,2) [2025-04-05 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836420', 'tblTempUsageDetail_20' ) start [2025-04-05 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836420', 'tblTempUsageDetail_20' ) end [2025-04-05 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:11:22] Production.INFO: ==4785== Releasing lock... [2025-04-05 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:11:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:12:05 [end_date_ymd] => 2025-04-05 00:12:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:12:05' and `end` < '2025-04-05 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-04-05 00:12:18] Production.INFO: count ==943 [2025-04-05 00:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:12:05 - End Time 2025-04-05 00:12:05 [2025-04-05 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836425', 'tblTempUsageDetail_20' ) start [2025-04-05 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836425', 'tblTempUsageDetail_20' ) end [2025-04-05 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836425', 'tblTempVendorCDR_20' ) start [2025-04-05 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836425', 'tblTempVendorCDR_20' ) end [2025-04-05 00:12:19] Production.INFO: ProcessCDR(1,14836425,1,1,2) [2025-04-05 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836425', 'tblTempUsageDetail_20' ) start [2025-04-05 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836425', 'tblTempUsageDetail_20' ) end [2025-04-05 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:12:22] Production.INFO: ==4867== Releasing lock... [2025-04-05 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:13:05 [end_date_ymd] => 2025-04-05 00:13:05 [RateCDR] => 1 ) [2025-04-05 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:13:05' and `end` < '2025-04-05 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:13:18] Production.INFO: count ==944 [2025-04-05 00:13:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:13:05 - End Time 2025-04-05 00:13:05 [2025-04-05 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836430', 'tblTempUsageDetail_20' ) start [2025-04-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836430', 'tblTempUsageDetail_20' ) end [2025-04-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836430', 'tblTempVendorCDR_20' ) start [2025-04-05 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836430', 'tblTempVendorCDR_20' ) end [2025-04-05 00:13:19] Production.INFO: ProcessCDR(1,14836430,1,1,2) [2025-04-05 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836430', 'tblTempUsageDetail_20' ) start [2025-04-05 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836430', 'tblTempUsageDetail_20' ) end [2025-04-05 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:13:22] Production.INFO: ==4977== Releasing lock... [2025-04-05 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:14:05 [end_date_ymd] => 2025-04-05 00:14:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:14:05' and `end` < '2025-04-05 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-04-05 00:14:18] Production.INFO: count ==942 [2025-04-05 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:14:05 - End Time 2025-04-05 00:14:05 [2025-04-05 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836435', 'tblTempUsageDetail_20' ) start [2025-04-05 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836435', 'tblTempUsageDetail_20' ) end [2025-04-05 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836435', 'tblTempVendorCDR_20' ) start [2025-04-05 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836435', 'tblTempVendorCDR_20' ) end [2025-04-05 00:14:19] Production.INFO: ProcessCDR(1,14836435,1,1,2) [2025-04-05 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836435', 'tblTempUsageDetail_20' ) start [2025-04-05 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836435', 'tblTempUsageDetail_20' ) end [2025-04-05 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:14:22] Production.INFO: ==5053== Releasing lock... [2025-04-05 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:14:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:15:05 [end_date_ymd] => 2025-04-05 00:15:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:15:05' and `end` < '2025-04-05 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-04-05 00:15:17] Production.INFO: count ==940 [2025-04-05 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:15:05 - End Time 2025-04-05 00:15:05 [2025-04-05 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836440', 'tblTempUsageDetail_20' ) start [2025-04-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836440', 'tblTempUsageDetail_20' ) end [2025-04-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836440', 'tblTempVendorCDR_20' ) start [2025-04-05 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836440', 'tblTempVendorCDR_20' ) end [2025-04-05 00:15:18] Production.INFO: ProcessCDR(1,14836440,1,1,2) [2025-04-05 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836440', 'tblTempUsageDetail_20' ) start [2025-04-05 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836440', 'tblTempUsageDetail_20' ) end [2025-04-05 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:15:21] Production.INFO: ==5126== Releasing lock... [2025-04-05 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:15:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:16:05 [end_date_ymd] => 2025-04-05 00:16:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:16:05' and `end` < '2025-04-05 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-04-05 00:16:18] Production.INFO: count ==945 [2025-04-05 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:16:05 - End Time 2025-04-05 00:16:05 [2025-04-05 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836445', 'tblTempUsageDetail_20' ) start [2025-04-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836445', 'tblTempUsageDetail_20' ) end [2025-04-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836445', 'tblTempVendorCDR_20' ) start [2025-04-05 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836445', 'tblTempVendorCDR_20' ) end [2025-04-05 00:16:19] Production.INFO: ProcessCDR(1,14836445,1,1,2) [2025-04-05 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836445', 'tblTempUsageDetail_20' ) start [2025-04-05 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836445', 'tblTempUsageDetail_20' ) end [2025-04-05 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:16:24] Production.INFO: ==5197== Releasing lock... [2025-04-05 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:17:05 [end_date_ymd] => 2025-04-05 00:17:05 [RateCDR] => 1 ) [2025-04-05 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:17:05' and `end` < '2025-04-05 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:17:17] Production.INFO: count ==937 [2025-04-05 00:17:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:17:05 - End Time 2025-04-05 00:17:05 [2025-04-05 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836450', 'tblTempUsageDetail_20' ) start [2025-04-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836450', 'tblTempUsageDetail_20' ) end [2025-04-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836450', 'tblTempVendorCDR_20' ) start [2025-04-05 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836450', 'tblTempVendorCDR_20' ) end [2025-04-05 00:17:18] Production.INFO: ProcessCDR(1,14836450,1,1,2) [2025-04-05 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836450', 'tblTempUsageDetail_20' ) start [2025-04-05 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836450', 'tblTempUsageDetail_20' ) end [2025-04-05 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:17:21] Production.INFO: ==5267== Releasing lock... [2025-04-05 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:17:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:18:05 [end_date_ymd] => 2025-04-05 00:18:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:18:05' and `end` < '2025-04-05 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-04-05 00:18:18] Production.INFO: count ==937 [2025-04-05 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:18:05 - End Time 2025-04-05 00:18:05 [2025-04-05 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836455', 'tblTempUsageDetail_20' ) start [2025-04-05 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836455', 'tblTempUsageDetail_20' ) end [2025-04-05 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836455', 'tblTempVendorCDR_20' ) start [2025-04-05 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836455', 'tblTempVendorCDR_20' ) end [2025-04-05 00:18:19] Production.INFO: ProcessCDR(1,14836455,1,1,2) [2025-04-05 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836455', 'tblTempUsageDetail_20' ) start [2025-04-05 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836455', 'tblTempUsageDetail_20' ) end [2025-04-05 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:18:22] Production.INFO: ==5339== Releasing lock... [2025-04-05 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:18:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:19:04 [end_date_ymd] => 2025-04-05 00:19:04 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:19:04' and `end` < '2025-04-05 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-04-05 00:19:17] Production.INFO: count ==931 [2025-04-05 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:19:04 - End Time 2025-04-05 00:19:04 [2025-04-05 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836460', 'tblTempUsageDetail_20' ) start [2025-04-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836460', 'tblTempUsageDetail_20' ) end [2025-04-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836460', 'tblTempVendorCDR_20' ) start [2025-04-05 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836460', 'tblTempVendorCDR_20' ) end [2025-04-05 00:19:18] Production.INFO: ProcessCDR(1,14836460,1,1,2) [2025-04-05 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836460', 'tblTempUsageDetail_20' ) start [2025-04-05 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836460', 'tblTempUsageDetail_20' ) end [2025-04-05 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:19:21] Production.INFO: ==5409== Releasing lock... [2025-04-05 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:19:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:20:06 [end_date_ymd] => 2025-04-05 00:20:06 [RateCDR] => 1 ) [2025-04-05 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:20:06' and `end` < '2025-04-05 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:20:19] Production.INFO: count ==937 [2025-04-05 00:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:20:06 - End Time 2025-04-05 00:20:06 [2025-04-05 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836465', 'tblTempUsageDetail_20' ) start [2025-04-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836465', 'tblTempUsageDetail_20' ) end [2025-04-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836465', 'tblTempVendorCDR_20' ) start [2025-04-05 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836465', 'tblTempVendorCDR_20' ) end [2025-04-05 00:20:19] Production.INFO: ProcessCDR(1,14836465,1,1,2) [2025-04-05 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836465', 'tblTempUsageDetail_20' ) start [2025-04-05 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836465', 'tblTempUsageDetail_20' ) end [2025-04-05 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:20:23] Production.INFO: ==5482== Releasing lock... [2025-04-05 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:20:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:21:05 [end_date_ymd] => 2025-04-05 00:21:05 [RateCDR] => 1 ) [2025-04-05 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:21:05' and `end` < '2025-04-05 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:21:17] Production.INFO: count ==953 [2025-04-05 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:21:05 - End Time 2025-04-05 00:21:05 [2025-04-05 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836471', 'tblTempUsageDetail_20' ) start [2025-04-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836471', 'tblTempUsageDetail_20' ) end [2025-04-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836471', 'tblTempVendorCDR_20' ) start [2025-04-05 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836471', 'tblTempVendorCDR_20' ) end [2025-04-05 00:21:18] Production.INFO: ProcessCDR(1,14836471,1,1,2) [2025-04-05 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836471', 'tblTempUsageDetail_20' ) start [2025-04-05 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836471', 'tblTempUsageDetail_20' ) end [2025-04-05 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:21:21] Production.INFO: ==5556== Releasing lock... [2025-04-05 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:21:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:22:05 [end_date_ymd] => 2025-04-05 00:22:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:22:05' and `end` < '2025-04-05 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-04-05 00:22:18] Production.INFO: count ==952 [2025-04-05 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:22:05 - End Time 2025-04-05 00:22:05 [2025-04-05 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836476', 'tblTempUsageDetail_20' ) start [2025-04-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836476', 'tblTempUsageDetail_20' ) end [2025-04-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836476', 'tblTempVendorCDR_20' ) start [2025-04-05 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836476', 'tblTempVendorCDR_20' ) end [2025-04-05 00:22:18] Production.INFO: ProcessCDR(1,14836476,1,1,2) [2025-04-05 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836476', 'tblTempUsageDetail_20' ) start [2025-04-05 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836476', 'tblTempUsageDetail_20' ) end [2025-04-05 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:22:22] Production.INFO: ==5627== Releasing lock... [2025-04-05 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:22:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:23:05 [end_date_ymd] => 2025-04-05 00:23:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:23:05' and `end` < '2025-04-05 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-04-05 00:23:18] Production.INFO: count ==956 [2025-04-05 00:23:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:23:05 - End Time 2025-04-05 00:23:05 [2025-04-05 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836481', 'tblTempUsageDetail_20' ) start [2025-04-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836481', 'tblTempUsageDetail_20' ) end [2025-04-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836481', 'tblTempVendorCDR_20' ) start [2025-04-05 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836481', 'tblTempVendorCDR_20' ) end [2025-04-05 00:23:19] Production.INFO: ProcessCDR(1,14836481,1,1,2) [2025-04-05 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836481', 'tblTempUsageDetail_20' ) start [2025-04-05 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836481', 'tblTempUsageDetail_20' ) end [2025-04-05 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:23:24] Production.INFO: ==5705== Releasing lock... [2025-04-05 00:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:23:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:24:06 [end_date_ymd] => 2025-04-05 00:24:06 [RateCDR] => 1 ) [2025-04-05 00:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:24:06' and `end` < '2025-04-05 00:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:24:18] Production.INFO: count ==936 [2025-04-05 00:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:24:06 - End Time 2025-04-05 00:24:06 [2025-04-05 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836486', 'tblTempUsageDetail_20' ) start [2025-04-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836486', 'tblTempUsageDetail_20' ) end [2025-04-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836486', 'tblTempVendorCDR_20' ) start [2025-04-05 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836486', 'tblTempVendorCDR_20' ) end [2025-04-05 00:24:19] Production.INFO: ProcessCDR(1,14836486,1,1,2) [2025-04-05 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836486', 'tblTempUsageDetail_20' ) start [2025-04-05 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836486', 'tblTempUsageDetail_20' ) end [2025-04-05 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:24:22] Production.INFO: ==5775== Releasing lock... [2025-04-05 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:24:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:25:06 [end_date_ymd] => 2025-04-05 00:25:06 [RateCDR] => 1 ) [2025-04-05 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:25:06' and `end` < '2025-04-05 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:25:19] Production.INFO: count ==937 [2025-04-05 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:25:06 - End Time 2025-04-05 00:25:06 [2025-04-05 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836491', 'tblTempUsageDetail_20' ) start [2025-04-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836491', 'tblTempUsageDetail_20' ) end [2025-04-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836491', 'tblTempVendorCDR_20' ) start [2025-04-05 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836491', 'tblTempVendorCDR_20' ) end [2025-04-05 00:25:19] Production.INFO: ProcessCDR(1,14836491,1,1,2) [2025-04-05 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836491', 'tblTempUsageDetail_20' ) start [2025-04-05 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836491', 'tblTempUsageDetail_20' ) end [2025-04-05 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:25:22] Production.INFO: ==5844== Releasing lock... [2025-04-05 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:25:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:26:05 [end_date_ymd] => 2025-04-05 00:26:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:26:05' and `end` < '2025-04-05 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-04-05 00:26:18] Production.INFO: count ==937 [2025-04-05 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:26:05 - End Time 2025-04-05 00:26:05 [2025-04-05 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836496', 'tblTempUsageDetail_20' ) start [2025-04-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836496', 'tblTempUsageDetail_20' ) end [2025-04-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836496', 'tblTempVendorCDR_20' ) start [2025-04-05 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836496', 'tblTempVendorCDR_20' ) end [2025-04-05 00:26:18] Production.INFO: ProcessCDR(1,14836496,1,1,2) [2025-04-05 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836496', 'tblTempUsageDetail_20' ) start [2025-04-05 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836496', 'tblTempUsageDetail_20' ) end [2025-04-05 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:26:22] Production.INFO: ==5918== Releasing lock... [2025-04-05 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:26:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:27:05 [end_date_ymd] => 2025-04-05 00:27:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:27:05' and `end` < '2025-04-05 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-04-05 00:27:18] Production.INFO: count ==944 [2025-04-05 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:27:05 - End Time 2025-04-05 00:27:05 [2025-04-05 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836501', 'tblTempUsageDetail_20' ) start [2025-04-05 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836501', 'tblTempUsageDetail_20' ) end [2025-04-05 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836501', 'tblTempVendorCDR_20' ) start [2025-04-05 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836501', 'tblTempVendorCDR_20' ) end [2025-04-05 00:27:18] Production.INFO: ProcessCDR(1,14836501,1,1,2) [2025-04-05 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836501', 'tblTempUsageDetail_20' ) start [2025-04-05 00:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836501', 'tblTempUsageDetail_20' ) end [2025-04-05 00:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:27:23] Production.INFO: ==5989== Releasing lock... [2025-04-05 00:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:27:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:28:05 [end_date_ymd] => 2025-04-05 00:28:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:28:05' and `end` < '2025-04-05 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-04-05 00:28:18] Production.INFO: count ==950 [2025-04-05 00:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:28:05 - End Time 2025-04-05 00:28:05 [2025-04-05 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836506', 'tblTempUsageDetail_20' ) start [2025-04-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836506', 'tblTempUsageDetail_20' ) end [2025-04-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836506', 'tblTempVendorCDR_20' ) start [2025-04-05 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836506', 'tblTempVendorCDR_20' ) end [2025-04-05 00:28:19] Production.INFO: ProcessCDR(1,14836506,1,1,2) [2025-04-05 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836506', 'tblTempUsageDetail_20' ) start [2025-04-05 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836506', 'tblTempUsageDetail_20' ) end [2025-04-05 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:28:22] Production.INFO: ==6060== Releasing lock... [2025-04-05 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:28:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:29:05 [end_date_ymd] => 2025-04-05 00:29:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:29:05' and `end` < '2025-04-05 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-04-05 00:29:18] Production.INFO: count ==945 [2025-04-05 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:29:05 - End Time 2025-04-05 00:29:05 [2025-04-05 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836511', 'tblTempUsageDetail_20' ) start [2025-04-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836511', 'tblTempUsageDetail_20' ) end [2025-04-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836511', 'tblTempVendorCDR_20' ) start [2025-04-05 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836511', 'tblTempVendorCDR_20' ) end [2025-04-05 00:29:18] Production.INFO: ProcessCDR(1,14836511,1,1,2) [2025-04-05 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836511', 'tblTempUsageDetail_20' ) start [2025-04-05 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836511', 'tblTempUsageDetail_20' ) end [2025-04-05 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:29:22] Production.INFO: ==6170== Releasing lock... [2025-04-05 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:30:05 [end_date_ymd] => 2025-04-05 00:30:05 [RateCDR] => 1 ) [2025-04-05 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:30:05' and `end` < '2025-04-05 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:30:18] Production.INFO: count ==951 [2025-04-05 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:30:05 - End Time 2025-04-05 00:30:05 [2025-04-05 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836517', 'tblTempUsageDetail_20' ) start [2025-04-05 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836517', 'tblTempUsageDetail_20' ) end [2025-04-05 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836517', 'tblTempVendorCDR_20' ) start [2025-04-05 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836517', 'tblTempVendorCDR_20' ) end [2025-04-05 00:30:19] Production.INFO: ProcessCDR(1,14836517,1,1,2) [2025-04-05 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836517', 'tblTempUsageDetail_20' ) start [2025-04-05 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836517', 'tblTempUsageDetail_20' ) end [2025-04-05 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:30:22] Production.INFO: ==6243== Releasing lock... [2025-04-05 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:30:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:31:05 [end_date_ymd] => 2025-04-05 00:31:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:31:05' and `end` < '2025-04-05 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-04-05 00:31:18] Production.INFO: count ==977 [2025-04-05 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:31:05 - End Time 2025-04-05 00:31:05 [2025-04-05 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836522', 'tblTempUsageDetail_20' ) start [2025-04-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836522', 'tblTempUsageDetail_20' ) end [2025-04-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836522', 'tblTempVendorCDR_20' ) start [2025-04-05 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836522', 'tblTempVendorCDR_20' ) end [2025-04-05 00:31:18] Production.INFO: ProcessCDR(1,14836522,1,1,2) [2025-04-05 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836522', 'tblTempUsageDetail_20' ) start [2025-04-05 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836522', 'tblTempUsageDetail_20' ) end [2025-04-05 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:31:22] Production.INFO: ==6314== Releasing lock... [2025-04-05 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:31:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:32:06 [end_date_ymd] => 2025-04-05 00:32:06 [RateCDR] => 1 ) [2025-04-05 00:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:32:06' and `end` < '2025-04-05 00:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:32:19] Production.INFO: count ==961 [2025-04-05 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:32:06 - End Time 2025-04-05 00:32:06 [2025-04-05 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836527', 'tblTempUsageDetail_20' ) start [2025-04-05 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836527', 'tblTempUsageDetail_20' ) end [2025-04-05 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836527', 'tblTempVendorCDR_20' ) start [2025-04-05 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836527', 'tblTempVendorCDR_20' ) end [2025-04-05 00:32:19] Production.INFO: ProcessCDR(1,14836527,1,1,2) [2025-04-05 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836527', 'tblTempUsageDetail_20' ) start [2025-04-05 00:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836527', 'tblTempUsageDetail_20' ) end [2025-04-05 00:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:32:24] Production.INFO: ==6391== Releasing lock... [2025-04-05 00:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:32:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:33:05 [end_date_ymd] => 2025-04-05 00:33:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:33:05' and `end` < '2025-04-05 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-04-05 00:33:18] Production.INFO: count ==953 [2025-04-05 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:33:05 - End Time 2025-04-05 00:33:05 [2025-04-05 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836532', 'tblTempUsageDetail_20' ) start [2025-04-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836532', 'tblTempUsageDetail_20' ) end [2025-04-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836532', 'tblTempVendorCDR_20' ) start [2025-04-05 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836532', 'tblTempVendorCDR_20' ) end [2025-04-05 00:33:18] Production.INFO: ProcessCDR(1,14836532,1,1,2) [2025-04-05 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836532', 'tblTempUsageDetail_20' ) start [2025-04-05 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836532', 'tblTempUsageDetail_20' ) end [2025-04-05 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:33:22] Production.INFO: ==6462== Releasing lock... [2025-04-05 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:34:05 [end_date_ymd] => 2025-04-05 00:34:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:34:05' and `end` < '2025-04-05 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-04-05 00:34:18] Production.INFO: count ==960 [2025-04-05 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:34:05 - End Time 2025-04-05 00:34:05 [2025-04-05 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836537', 'tblTempUsageDetail_20' ) start [2025-04-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836537', 'tblTempUsageDetail_20' ) end [2025-04-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836537', 'tblTempVendorCDR_20' ) start [2025-04-05 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836537', 'tblTempVendorCDR_20' ) end [2025-04-05 00:34:19] Production.INFO: ProcessCDR(1,14836537,1,1,2) [2025-04-05 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836537', 'tblTempUsageDetail_20' ) start [2025-04-05 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836537', 'tblTempUsageDetail_20' ) end [2025-04-05 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:34:22] Production.INFO: ==6540== Releasing lock... [2025-04-05 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:34:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:35:05 [end_date_ymd] => 2025-04-05 00:35:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:35:05' and `end` < '2025-04-05 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-04-05 00:35:17] Production.INFO: count ==960 [2025-04-05 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:35:05 - End Time 2025-04-05 00:35:05 [2025-04-05 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836542', 'tblTempUsageDetail_20' ) start [2025-04-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836542', 'tblTempUsageDetail_20' ) end [2025-04-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836542', 'tblTempVendorCDR_20' ) start [2025-04-05 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836542', 'tblTempVendorCDR_20' ) end [2025-04-05 00:35:18] Production.INFO: ProcessCDR(1,14836542,1,1,2) [2025-04-05 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836542', 'tblTempUsageDetail_20' ) start [2025-04-05 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836542', 'tblTempUsageDetail_20' ) end [2025-04-05 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:35:21] Production.INFO: ==6611== Releasing lock... [2025-04-05 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:35:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:36:05 [end_date_ymd] => 2025-04-05 00:36:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:36:05' and `end` < '2025-04-05 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-04-05 00:36:18] Production.INFO: count ==963 [2025-04-05 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:36:05 - End Time 2025-04-05 00:36:05 [2025-04-05 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836547', 'tblTempUsageDetail_20' ) start [2025-04-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836547', 'tblTempUsageDetail_20' ) end [2025-04-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836547', 'tblTempVendorCDR_20' ) start [2025-04-05 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836547', 'tblTempVendorCDR_20' ) end [2025-04-05 00:36:19] Production.INFO: ProcessCDR(1,14836547,1,1,2) [2025-04-05 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836547', 'tblTempUsageDetail_20' ) start [2025-04-05 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836547', 'tblTempUsageDetail_20' ) end [2025-04-05 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:36:22] Production.INFO: ==6681== Releasing lock... [2025-04-05 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:36:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:37:05 [end_date_ymd] => 2025-04-05 00:37:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:37:05' and `end` < '2025-04-05 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-04-05 00:37:18] Production.INFO: count ==967 [2025-04-05 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:37:05 - End Time 2025-04-05 00:37:05 [2025-04-05 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836552', 'tblTempUsageDetail_20' ) start [2025-04-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836552', 'tblTempUsageDetail_20' ) end [2025-04-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836552', 'tblTempVendorCDR_20' ) start [2025-04-05 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836552', 'tblTempVendorCDR_20' ) end [2025-04-05 00:37:19] Production.INFO: ProcessCDR(1,14836552,1,1,2) [2025-04-05 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836552', 'tblTempUsageDetail_20' ) start [2025-04-05 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836552', 'tblTempUsageDetail_20' ) end [2025-04-05 00:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:37:24] Production.INFO: ==6750== Releasing lock... [2025-04-05 00:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:37:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:38:06 [end_date_ymd] => 2025-04-05 00:38:06 [RateCDR] => 1 ) [2025-04-05 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:38:06' and `end` < '2025-04-05 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:38:18] Production.INFO: count ==965 [2025-04-05 00:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:38:06 - End Time 2025-04-05 00:38:06 [2025-04-05 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836557', 'tblTempUsageDetail_20' ) start [2025-04-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836557', 'tblTempUsageDetail_20' ) end [2025-04-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836557', 'tblTempVendorCDR_20' ) start [2025-04-05 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836557', 'tblTempVendorCDR_20' ) end [2025-04-05 00:38:19] Production.INFO: ProcessCDR(1,14836557,1,1,2) [2025-04-05 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836557', 'tblTempUsageDetail_20' ) start [2025-04-05 00:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836557', 'tblTempUsageDetail_20' ) end [2025-04-05 00:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:38:24] Production.INFO: ==6825== Releasing lock... [2025-04-05 00:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:38:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:39:05 [end_date_ymd] => 2025-04-05 00:39:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:39:05' and `end` < '2025-04-05 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-04-05 00:39:18] Production.INFO: count ==961 [2025-04-05 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:39:05 - End Time 2025-04-05 00:39:05 [2025-04-05 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836562', 'tblTempUsageDetail_20' ) start [2025-04-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836562', 'tblTempUsageDetail_20' ) end [2025-04-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836562', 'tblTempVendorCDR_20' ) start [2025-04-05 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836562', 'tblTempVendorCDR_20' ) end [2025-04-05 00:39:18] Production.INFO: ProcessCDR(1,14836562,1,1,2) [2025-04-05 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836562', 'tblTempUsageDetail_20' ) start [2025-04-05 00:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836562', 'tblTempUsageDetail_20' ) end [2025-04-05 00:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:39:23] Production.INFO: ==6896== Releasing lock... [2025-04-05 00:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:39:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:40:06 [end_date_ymd] => 2025-04-05 00:40:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:40:06' and `end` < '2025-04-05 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-04-05 00:40:19] Production.INFO: count ==964 [2025-04-05 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:40:06 - End Time 2025-04-05 00:40:06 [2025-04-05 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836567', 'tblTempUsageDetail_20' ) start [2025-04-05 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836567', 'tblTempUsageDetail_20' ) end [2025-04-05 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836567', 'tblTempVendorCDR_20' ) start [2025-04-05 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836567', 'tblTempVendorCDR_20' ) end [2025-04-05 00:40:19] Production.INFO: ProcessCDR(1,14836567,1,1,2) [2025-04-05 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836567', 'tblTempUsageDetail_20' ) start [2025-04-05 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836567', 'tblTempUsageDetail_20' ) end [2025-04-05 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:40:22] Production.INFO: ==6970== Releasing lock... [2025-04-05 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:40:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:41:06 [end_date_ymd] => 2025-04-05 00:41:06 [RateCDR] => 1 ) [2025-04-05 00:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:41:06' and `end` < '2025-04-05 00:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:41:18] Production.INFO: count ==984 [2025-04-05 00:41:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:41:06 - End Time 2025-04-05 00:41:06 [2025-04-05 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836573', 'tblTempUsageDetail_20' ) start [2025-04-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836573', 'tblTempUsageDetail_20' ) end [2025-04-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836573', 'tblTempVendorCDR_20' ) start [2025-04-05 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836573', 'tblTempVendorCDR_20' ) end [2025-04-05 00:41:19] Production.INFO: ProcessCDR(1,14836573,1,1,2) [2025-04-05 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836573', 'tblTempUsageDetail_20' ) start [2025-04-05 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836573', 'tblTempUsageDetail_20' ) end [2025-04-05 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:41:22] Production.INFO: ==7043== Releasing lock... [2025-04-05 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:41:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:42:05 [end_date_ymd] => 2025-04-05 00:42:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:42:05' and `end` < '2025-04-05 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-04-05 00:42:18] Production.INFO: count ==984 [2025-04-05 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:42:05 - End Time 2025-04-05 00:42:05 [2025-04-05 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836578', 'tblTempUsageDetail_20' ) start [2025-04-05 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836578', 'tblTempUsageDetail_20' ) end [2025-04-05 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836578', 'tblTempVendorCDR_20' ) start [2025-04-05 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836578', 'tblTempVendorCDR_20' ) end [2025-04-05 00:42:18] Production.INFO: ProcessCDR(1,14836578,1,1,2) [2025-04-05 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836578', 'tblTempUsageDetail_20' ) start [2025-04-05 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836578', 'tblTempUsageDetail_20' ) end [2025-04-05 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:42:22] Production.INFO: ==7113== Releasing lock... [2025-04-05 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:42:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:43:06 [end_date_ymd] => 2025-04-05 00:43:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:43:06' and `end` < '2025-04-05 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-04-05 00:43:18] Production.INFO: count ==980 [2025-04-05 00:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:43:06 - End Time 2025-04-05 00:43:06 [2025-04-05 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836583', 'tblTempUsageDetail_20' ) start [2025-04-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836583', 'tblTempUsageDetail_20' ) end [2025-04-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836583', 'tblTempVendorCDR_20' ) start [2025-04-05 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836583', 'tblTempVendorCDR_20' ) end [2025-04-05 00:43:19] Production.INFO: ProcessCDR(1,14836583,1,1,2) [2025-04-05 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836583', 'tblTempUsageDetail_20' ) start [2025-04-05 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836583', 'tblTempUsageDetail_20' ) end [2025-04-05 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:43:22] Production.INFO: ==7184== Releasing lock... [2025-04-05 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:43:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:44:05 [end_date_ymd] => 2025-04-05 00:44:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:44:05' and `end` < '2025-04-05 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-04-05 00:44:18] Production.INFO: count ==982 [2025-04-05 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:44:05 - End Time 2025-04-05 00:44:05 [2025-04-05 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836588', 'tblTempUsageDetail_20' ) start [2025-04-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836588', 'tblTempUsageDetail_20' ) end [2025-04-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836588', 'tblTempVendorCDR_20' ) start [2025-04-05 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836588', 'tblTempVendorCDR_20' ) end [2025-04-05 00:44:18] Production.INFO: ProcessCDR(1,14836588,1,1,2) [2025-04-05 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836588', 'tblTempUsageDetail_20' ) start [2025-04-05 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836588', 'tblTempUsageDetail_20' ) end [2025-04-05 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:44:22] Production.INFO: ==7294== Releasing lock... [2025-04-05 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:44:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:45:05 [end_date_ymd] => 2025-04-05 00:45:05 [RateCDR] => 1 ) [2025-04-05 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:45:05' and `end` < '2025-04-05 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:45:18] Production.INFO: count ==983 [2025-04-05 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:45:05 - End Time 2025-04-05 00:45:05 [2025-04-05 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836593', 'tblTempUsageDetail_20' ) start [2025-04-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836593', 'tblTempUsageDetail_20' ) end [2025-04-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836593', 'tblTempVendorCDR_20' ) start [2025-04-05 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836593', 'tblTempVendorCDR_20' ) end [2025-04-05 00:45:18] Production.INFO: ProcessCDR(1,14836593,1,1,2) [2025-04-05 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836593', 'tblTempUsageDetail_20' ) start [2025-04-05 00:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836593', 'tblTempUsageDetail_20' ) end [2025-04-05 00:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:45:23] Production.INFO: ==7366== Releasing lock... [2025-04-05 00:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:45:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:46:05 [end_date_ymd] => 2025-04-05 00:46:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:46:05' and `end` < '2025-04-05 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-04-05 00:46:18] Production.INFO: count ==981 [2025-04-05 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:46:05 - End Time 2025-04-05 00:46:05 [2025-04-05 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836598', 'tblTempUsageDetail_20' ) start [2025-04-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836598', 'tblTempUsageDetail_20' ) end [2025-04-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836598', 'tblTempVendorCDR_20' ) start [2025-04-05 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836598', 'tblTempVendorCDR_20' ) end [2025-04-05 00:46:18] Production.INFO: ProcessCDR(1,14836598,1,1,2) [2025-04-05 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836598', 'tblTempUsageDetail_20' ) start [2025-04-05 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836598', 'tblTempUsageDetail_20' ) end [2025-04-05 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:46:23] Production.INFO: ==7437== Releasing lock... [2025-04-05 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:47:05 [end_date_ymd] => 2025-04-05 00:47:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:47:05' and `end` < '2025-04-05 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-04-05 00:47:18] Production.INFO: count ==981 [2025-04-05 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:47:05 - End Time 2025-04-05 00:47:05 [2025-04-05 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836603', 'tblTempUsageDetail_20' ) start [2025-04-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836603', 'tblTempUsageDetail_20' ) end [2025-04-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836603', 'tblTempVendorCDR_20' ) start [2025-04-05 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836603', 'tblTempVendorCDR_20' ) end [2025-04-05 00:47:18] Production.INFO: ProcessCDR(1,14836603,1,1,2) [2025-04-05 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836603', 'tblTempUsageDetail_20' ) start [2025-04-05 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836603', 'tblTempUsageDetail_20' ) end [2025-04-05 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:47:22] Production.INFO: ==7506== Releasing lock... [2025-04-05 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:48:05 [end_date_ymd] => 2025-04-05 00:48:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:48:05' and `end` < '2025-04-05 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-04-05 00:48:18] Production.INFO: count ==983 [2025-04-05 00:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:48:05 - End Time 2025-04-05 00:48:05 [2025-04-05 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836608', 'tblTempUsageDetail_20' ) start [2025-04-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836608', 'tblTempUsageDetail_20' ) end [2025-04-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836608', 'tblTempVendorCDR_20' ) start [2025-04-05 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836608', 'tblTempVendorCDR_20' ) end [2025-04-05 00:48:18] Production.INFO: ProcessCDR(1,14836608,1,1,2) [2025-04-05 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836608', 'tblTempUsageDetail_20' ) start [2025-04-05 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836608', 'tblTempUsageDetail_20' ) end [2025-04-05 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:48:22] Production.INFO: ==7577== Releasing lock... [2025-04-05 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:48:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:49:05 [end_date_ymd] => 2025-04-05 00:49:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:49:05' and `end` < '2025-04-05 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-04-05 00:49:18] Production.INFO: count ==982 [2025-04-05 00:49:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:49:05 - End Time 2025-04-05 00:49:05 [2025-04-05 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836613', 'tblTempUsageDetail_20' ) start [2025-04-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836613', 'tblTempUsageDetail_20' ) end [2025-04-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836613', 'tblTempVendorCDR_20' ) start [2025-04-05 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836613', 'tblTempVendorCDR_20' ) end [2025-04-05 00:49:18] Production.INFO: ProcessCDR(1,14836613,1,1,2) [2025-04-05 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836613', 'tblTempUsageDetail_20' ) start [2025-04-05 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836613', 'tblTempUsageDetail_20' ) end [2025-04-05 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:49:22] Production.INFO: ==7649== Releasing lock... [2025-04-05 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:49:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:50:06 [end_date_ymd] => 2025-04-05 00:50:06 [RateCDR] => 1 ) [2025-04-05 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:50:06' and `end` < '2025-04-05 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:50:18] Production.INFO: count ==992 [2025-04-05 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:50:06 - End Time 2025-04-05 00:50:06 [2025-04-05 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836619', 'tblTempUsageDetail_20' ) start [2025-04-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836619', 'tblTempUsageDetail_20' ) end [2025-04-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836619', 'tblTempVendorCDR_20' ) start [2025-04-05 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836619', 'tblTempVendorCDR_20' ) end [2025-04-05 00:50:19] Production.INFO: ProcessCDR(1,14836619,1,1,2) [2025-04-05 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836619', 'tblTempUsageDetail_20' ) start [2025-04-05 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836619', 'tblTempUsageDetail_20' ) end [2025-04-05 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:50:22] Production.INFO: ==7720== Releasing lock... [2025-04-05 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:50:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:51:05 [end_date_ymd] => 2025-04-05 00:51:05 [RateCDR] => 1 ) [2025-04-05 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:51:05' and `end` < '2025-04-05 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:51:18] Production.INFO: count ==1011 [2025-04-05 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:51:05 - End Time 2025-04-05 00:51:05 [2025-04-05 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836624', 'tblTempUsageDetail_20' ) start [2025-04-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836624', 'tblTempUsageDetail_20' ) end [2025-04-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836624', 'tblTempVendorCDR_20' ) start [2025-04-05 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836624', 'tblTempVendorCDR_20' ) end [2025-04-05 00:51:18] Production.INFO: ProcessCDR(1,14836624,1,1,2) [2025-04-05 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836624', 'tblTempUsageDetail_20' ) start [2025-04-05 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836624', 'tblTempUsageDetail_20' ) end [2025-04-05 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:51:22] Production.INFO: ==7798== Releasing lock... [2025-04-05 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:52:05 [end_date_ymd] => 2025-04-05 00:52:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:52:05' and `end` < '2025-04-05 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-04-05 00:52:18] Production.INFO: count ==1011 [2025-04-05 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:52:05 - End Time 2025-04-05 00:52:05 [2025-04-05 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836629', 'tblTempUsageDetail_20' ) start [2025-04-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836629', 'tblTempUsageDetail_20' ) end [2025-04-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836629', 'tblTempVendorCDR_20' ) start [2025-04-05 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836629', 'tblTempVendorCDR_20' ) end [2025-04-05 00:52:19] Production.INFO: ProcessCDR(1,14836629,1,1,2) [2025-04-05 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836629', 'tblTempUsageDetail_20' ) start [2025-04-05 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836629', 'tblTempUsageDetail_20' ) end [2025-04-05 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:52:22] Production.INFO: ==7869== Releasing lock... [2025-04-05 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:53:05 [end_date_ymd] => 2025-04-05 00:53:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:53:05' and `end` < '2025-04-05 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-04-05 00:53:18] Production.INFO: count ==1010 [2025-04-05 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:53:05 - End Time 2025-04-05 00:53:05 [2025-04-05 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836634', 'tblTempUsageDetail_20' ) start [2025-04-05 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836634', 'tblTempUsageDetail_20' ) end [2025-04-05 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836634', 'tblTempVendorCDR_20' ) start [2025-04-05 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836634', 'tblTempVendorCDR_20' ) end [2025-04-05 00:53:18] Production.INFO: ProcessCDR(1,14836634,1,1,2) [2025-04-05 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836634', 'tblTempUsageDetail_20' ) start [2025-04-05 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836634', 'tblTempUsageDetail_20' ) end [2025-04-05 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:53:22] Production.INFO: ==7944== Releasing lock... [2025-04-05 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:53:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:54:06 [end_date_ymd] => 2025-04-05 00:54:06 [RateCDR] => 1 ) [2025-04-05 00: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-04-04 21:54:06' and `end` < '2025-04-05 00: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-04-05 00:54:19] Production.INFO: count ==1014 [2025-04-05 00:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:54:06 - End Time 2025-04-05 00:54:06 [2025-04-05 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836639', 'tblTempUsageDetail_20' ) start [2025-04-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836639', 'tblTempUsageDetail_20' ) end [2025-04-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836639', 'tblTempVendorCDR_20' ) start [2025-04-05 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836639', 'tblTempVendorCDR_20' ) end [2025-04-05 00:54:19] Production.INFO: ProcessCDR(1,14836639,1,1,2) [2025-04-05 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836639', 'tblTempUsageDetail_20' ) start [2025-04-05 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836639', 'tblTempUsageDetail_20' ) end [2025-04-05 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:54:23] Production.INFO: ==8018== Releasing lock... [2025-04-05 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:55:05 [end_date_ymd] => 2025-04-05 00:55:05 [RateCDR] => 1 ) [2025-04-05 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:55:05' and `end` < '2025-04-05 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:55:18] Production.INFO: count ==1012 [2025-04-05 00:55:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:55:05 - End Time 2025-04-05 00:55:05 [2025-04-05 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836644', 'tblTempUsageDetail_20' ) start [2025-04-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836644', 'tblTempUsageDetail_20' ) end [2025-04-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836644', 'tblTempVendorCDR_20' ) start [2025-04-05 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836644', 'tblTempVendorCDR_20' ) end [2025-04-05 00:55:18] Production.INFO: ProcessCDR(1,14836644,1,1,2) [2025-04-05 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836644', 'tblTempUsageDetail_20' ) start [2025-04-05 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836644', 'tblTempUsageDetail_20' ) end [2025-04-05 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:55:21] Production.INFO: ==8088== Releasing lock... [2025-04-05 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:55:21] Production.INFO: 36 MB #Memory Used# [2025-04-05 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:56:05 [end_date_ymd] => 2025-04-05 00:56:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 21:56:05' and `end` < '2025-04-05 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-04-05 00:56:18] Production.INFO: count ==1014 [2025-04-05 00:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:56:05 - End Time 2025-04-05 00:56:05 [2025-04-05 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836649', 'tblTempUsageDetail_20' ) start [2025-04-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836649', 'tblTempUsageDetail_20' ) end [2025-04-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836649', 'tblTempVendorCDR_20' ) start [2025-04-05 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836649', 'tblTempVendorCDR_20' ) end [2025-04-05 00:56:19] Production.INFO: ProcessCDR(1,14836649,1,1,2) [2025-04-05 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836649', 'tblTempUsageDetail_20' ) start [2025-04-05 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836649', 'tblTempUsageDetail_20' ) end [2025-04-05 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:56:22] Production.INFO: ==8160== Releasing lock... [2025-04-05 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:56:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:57:05 [end_date_ymd] => 2025-04-05 00:57:05 [RateCDR] => 1 ) [2025-04-05 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:57:05' and `end` < '2025-04-05 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:57:18] Production.INFO: count ==1014 [2025-04-05 00:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 21:57:05 - End Time 2025-04-05 00:57:05 [2025-04-05 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836654', 'tblTempUsageDetail_20' ) start [2025-04-05 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836654', 'tblTempUsageDetail_20' ) end [2025-04-05 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836654', 'tblTempVendorCDR_20' ) start [2025-04-05 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836654', 'tblTempVendorCDR_20' ) end [2025-04-05 00:57:18] Production.INFO: ProcessCDR(1,14836654,1,1,2) [2025-04-05 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836654', 'tblTempUsageDetail_20' ) start [2025-04-05 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836654', 'tblTempUsageDetail_20' ) end [2025-04-05 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:57:22] Production.INFO: ==8233== Releasing lock... [2025-04-05 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:57:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:58:06 [end_date_ymd] => 2025-04-05 00:58:06 [RateCDR] => 1 ) [2025-04-05 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:58:06' and `end` < '2025-04-05 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:58:19] Production.INFO: count ==1014 [2025-04-05 00:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:58:06 - End Time 2025-04-05 00:58:06 [2025-04-05 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836659', 'tblTempUsageDetail_20' ) start [2025-04-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836659', 'tblTempUsageDetail_20' ) end [2025-04-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836659', 'tblTempVendorCDR_20' ) start [2025-04-05 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836659', 'tblTempVendorCDR_20' ) end [2025-04-05 00:58:19] Production.INFO: ProcessCDR(1,14836659,1,1,2) [2025-04-05 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836659', 'tblTempUsageDetail_20' ) start [2025-04-05 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836659', 'tblTempUsageDetail_20' ) end [2025-04-05 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:58:23] Production.INFO: ==8303== Releasing lock... [2025-04-05 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:58:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 21:59:05 [end_date_ymd] => 2025-04-05 00:59:05 [RateCDR] => 1 ) [2025-04-05 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 21:59:05' and `end` < '2025-04-05 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 00:59:18] Production.INFO: count ==1015 [2025-04-05 00:59:19] Production.ERROR: pbx CDR StartTime 2025-04-04 21:59:05 - End Time 2025-04-05 00:59:05 [2025-04-05 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836664', 'tblTempUsageDetail_20' ) start [2025-04-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836664', 'tblTempUsageDetail_20' ) end [2025-04-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836664', 'tblTempVendorCDR_20' ) start [2025-04-05 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836664', 'tblTempVendorCDR_20' ) end [2025-04-05 00:59:19] Production.INFO: ProcessCDR(1,14836664,1,1,2) [2025-04-05 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836664', 'tblTempUsageDetail_20' ) start [2025-04-05 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836664', 'tblTempUsageDetail_20' ) end [2025-04-05 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 00:59:22] Production.INFO: ==8423== Releasing lock... [2025-04-05 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 00:59:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:00:06 [end_date_ymd] => 2025-04-05 01:00:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:00:06' and `end` < '2025-04-05 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-04-05 01:00:19] Production.INFO: count ==1016 [2025-04-05 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:00:06 - End Time 2025-04-05 01:00:06 [2025-04-05 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836670', 'tblTempUsageDetail_20' ) start [2025-04-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836670', 'tblTempUsageDetail_20' ) end [2025-04-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836670', 'tblTempVendorCDR_20' ) start [2025-04-05 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836670', 'tblTempVendorCDR_20' ) end [2025-04-05 01:00:19] Production.INFO: ProcessCDR(1,14836670,1,1,2) [2025-04-05 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836670', 'tblTempUsageDetail_20' ) start [2025-04-05 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836670', 'tblTempUsageDetail_20' ) end [2025-04-05 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:00:23] Production.INFO: ==8525== Releasing lock... [2025-04-05 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:01:06 [end_date_ymd] => 2025-04-05 01:01:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:01:06' and `end` < '2025-04-05 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-04-05 01:01:19] Production.INFO: count ==1020 [2025-04-05 01:01:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:01:06 - End Time 2025-04-05 01:01:06 [2025-04-05 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836675', 'tblTempUsageDetail_20' ) start [2025-04-05 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836675', 'tblTempUsageDetail_20' ) end [2025-04-05 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836675', 'tblTempVendorCDR_20' ) start [2025-04-05 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836675', 'tblTempVendorCDR_20' ) end [2025-04-05 01:01:19] Production.INFO: ProcessCDR(1,14836675,1,1,2) [2025-04-05 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836675', 'tblTempUsageDetail_20' ) start [2025-04-05 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836675', 'tblTempUsageDetail_20' ) end [2025-04-05 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:01:23] Production.INFO: ==8638== Releasing lock... [2025-04-05 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:01:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:02:06 [end_date_ymd] => 2025-04-05 01:02:06 [RateCDR] => 1 ) [2025-04-05 01: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-04-04 22:02:06' and `end` < '2025-04-05 01: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-04-05 01:02:19] Production.INFO: count ==1003 [2025-04-05 01:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:02:06 - End Time 2025-04-05 01:02:06 [2025-04-05 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836680', 'tblTempUsageDetail_20' ) start [2025-04-05 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836680', 'tblTempUsageDetail_20' ) end [2025-04-05 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836680', 'tblTempVendorCDR_20' ) start [2025-04-05 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836680', 'tblTempVendorCDR_20' ) end [2025-04-05 01:02:19] Production.INFO: ProcessCDR(1,14836680,1,1,2) [2025-04-05 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836680', 'tblTempUsageDetail_20' ) start [2025-04-05 01:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836680', 'tblTempUsageDetail_20' ) end [2025-04-05 01:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:02:23] Production.INFO: ==8740== Releasing lock... [2025-04-05 01:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:03:05 [end_date_ymd] => 2025-04-05 01:03:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:03:05' and `end` < '2025-04-05 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-04-05 01:03:18] Production.INFO: count ==1004 [2025-04-05 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:03:05 - End Time 2025-04-05 01:03:05 [2025-04-05 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836685', 'tblTempUsageDetail_20' ) start [2025-04-05 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836685', 'tblTempUsageDetail_20' ) end [2025-04-05 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836685', 'tblTempVendorCDR_20' ) start [2025-04-05 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836685', 'tblTempVendorCDR_20' ) end [2025-04-05 01:03:18] Production.INFO: ProcessCDR(1,14836685,1,1,2) [2025-04-05 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836685', 'tblTempUsageDetail_20' ) start [2025-04-05 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836685', 'tblTempUsageDetail_20' ) end [2025-04-05 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:03:22] Production.INFO: ==8848== Releasing lock... [2025-04-05 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:04:05 [end_date_ymd] => 2025-04-05 01:04:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:04:05' and `end` < '2025-04-05 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-04-05 01:04:18] Production.INFO: count ==1001 [2025-04-05 01:04:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:04:05 - End Time 2025-04-05 01:04:05 [2025-04-05 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836690', 'tblTempUsageDetail_20' ) start [2025-04-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836690', 'tblTempUsageDetail_20' ) end [2025-04-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836690', 'tblTempVendorCDR_20' ) start [2025-04-05 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836690', 'tblTempVendorCDR_20' ) end [2025-04-05 01:04:19] Production.INFO: ProcessCDR(1,14836690,1,1,2) [2025-04-05 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836690', 'tblTempUsageDetail_20' ) start [2025-04-05 01:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836690', 'tblTempUsageDetail_20' ) end [2025-04-05 01:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:04:24] Production.INFO: ==8977== Releasing lock... [2025-04-05 01:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:04:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:05:05 [end_date_ymd] => 2025-04-05 01:05:05 [RateCDR] => 1 ) [2025-04-05 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:05:05' and `end` < '2025-04-05 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:05:18] Production.INFO: count ==1003 [2025-04-05 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:05:05 - End Time 2025-04-05 01:05:05 [2025-04-05 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836695', 'tblTempUsageDetail_20' ) start [2025-04-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836695', 'tblTempUsageDetail_20' ) end [2025-04-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836695', 'tblTempVendorCDR_20' ) start [2025-04-05 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836695', 'tblTempVendorCDR_20' ) end [2025-04-05 01:05:18] Production.INFO: ProcessCDR(1,14836695,1,1,2) [2025-04-05 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836695', 'tblTempUsageDetail_20' ) start [2025-04-05 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836695', 'tblTempUsageDetail_20' ) end [2025-04-05 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:05:22] Production.INFO: ==9077== Releasing lock... [2025-04-05 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:05:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:06:05 [end_date_ymd] => 2025-04-05 01:06:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:06:05' and `end` < '2025-04-05 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-04-05 01:06:18] Production.INFO: count ==1006 [2025-04-05 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:06:05 - End Time 2025-04-05 01:06:05 [2025-04-05 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836700', 'tblTempUsageDetail_20' ) start [2025-04-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836700', 'tblTempUsageDetail_20' ) end [2025-04-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836700', 'tblTempVendorCDR_20' ) start [2025-04-05 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836700', 'tblTempVendorCDR_20' ) end [2025-04-05 01:06:18] Production.INFO: ProcessCDR(1,14836700,1,1,2) [2025-04-05 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836700', 'tblTempUsageDetail_20' ) start [2025-04-05 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836700', 'tblTempUsageDetail_20' ) end [2025-04-05 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:06:22] Production.INFO: ==9190== Releasing lock... [2025-04-05 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:06:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:07:05 [end_date_ymd] => 2025-04-05 01:07:05 [RateCDR] => 1 ) [2025-04-05 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:07:05' and `end` < '2025-04-05 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:07:17] Production.INFO: count ==1004 [2025-04-05 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:07:05 - End Time 2025-04-05 01:07:05 [2025-04-05 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836705', 'tblTempUsageDetail_20' ) start [2025-04-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836705', 'tblTempUsageDetail_20' ) end [2025-04-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836705', 'tblTempVendorCDR_20' ) start [2025-04-05 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836705', 'tblTempVendorCDR_20' ) end [2025-04-05 01:07:18] Production.INFO: ProcessCDR(1,14836705,1,1,2) [2025-04-05 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836705', 'tblTempUsageDetail_20' ) start [2025-04-05 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836705', 'tblTempUsageDetail_20' ) end [2025-04-05 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:07:21] Production.INFO: ==9299== Releasing lock... [2025-04-05 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:07:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:08:06 [end_date_ymd] => 2025-04-05 01:08:06 [RateCDR] => 1 ) [2025-04-05 01:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:08:06' and `end` < '2025-04-05 01:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:08:18] Production.INFO: count ==1008 [2025-04-05 01:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:08:06 - End Time 2025-04-05 01:08:06 [2025-04-05 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836710', 'tblTempUsageDetail_20' ) start [2025-04-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836710', 'tblTempUsageDetail_20' ) end [2025-04-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836710', 'tblTempVendorCDR_20' ) start [2025-04-05 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836710', 'tblTempVendorCDR_20' ) end [2025-04-05 01:08:19] Production.INFO: ProcessCDR(1,14836710,1,1,2) [2025-04-05 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836710', 'tblTempUsageDetail_20' ) start [2025-04-05 01:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836710', 'tblTempUsageDetail_20' ) end [2025-04-05 01:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:08:24] Production.INFO: ==9408== Releasing lock... [2025-04-05 01:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:08:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:09:05 [end_date_ymd] => 2025-04-05 01:09:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:09:05' and `end` < '2025-04-05 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-04-05 01:09:18] Production.INFO: count ==1000 [2025-04-05 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:09:05 - End Time 2025-04-05 01:09:05 [2025-04-05 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836715', 'tblTempUsageDetail_20' ) start [2025-04-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836715', 'tblTempUsageDetail_20' ) end [2025-04-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836715', 'tblTempVendorCDR_20' ) start [2025-04-05 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836715', 'tblTempVendorCDR_20' ) end [2025-04-05 01:09:18] Production.INFO: ProcessCDR(1,14836715,1,1,2) [2025-04-05 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836715', 'tblTempUsageDetail_20' ) start [2025-04-05 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836715', 'tblTempUsageDetail_20' ) end [2025-04-05 01:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:09:24] Production.INFO: ==9518== Releasing lock... [2025-04-05 01:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:09:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:10:06 [end_date_ymd] => 2025-04-05 01:10:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:10:06' and `end` < '2025-04-05 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-04-05 01:10:18] Production.INFO: count ==1005 [2025-04-05 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:10:06 - End Time 2025-04-05 01:10:06 [2025-04-05 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836720', 'tblTempUsageDetail_20' ) start [2025-04-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836720', 'tblTempUsageDetail_20' ) end [2025-04-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836720', 'tblTempVendorCDR_20' ) start [2025-04-05 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836720', 'tblTempVendorCDR_20' ) end [2025-04-05 01:10:19] Production.INFO: ProcessCDR(1,14836720,1,1,2) [2025-04-05 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836720', 'tblTempUsageDetail_20' ) start [2025-04-05 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836720', 'tblTempUsageDetail_20' ) end [2025-04-05 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:10:22] Production.INFO: ==9628== Releasing lock... [2025-04-05 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:10:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:11:06 [end_date_ymd] => 2025-04-05 01:11:06 [RateCDR] => 1 ) [2025-04-05 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:11:06' and `end` < '2025-04-05 01:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:11:19] Production.INFO: count ==1009 [2025-04-05 01:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:11:06 - End Time 2025-04-05 01:11:06 [2025-04-05 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836726', 'tblTempUsageDetail_20' ) start [2025-04-05 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836726', 'tblTempUsageDetail_20' ) end [2025-04-05 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836726', 'tblTempVendorCDR_20' ) start [2025-04-05 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836726', 'tblTempVendorCDR_20' ) end [2025-04-05 01:11:19] Production.INFO: ProcessCDR(1,14836726,1,1,2) [2025-04-05 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836726', 'tblTempUsageDetail_20' ) start [2025-04-05 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836726', 'tblTempUsageDetail_20' ) end [2025-04-05 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:11:22] Production.INFO: ==9744== Releasing lock... [2025-04-05 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:11:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:12:06 [end_date_ymd] => 2025-04-05 01:12:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:12:06' and `end` < '2025-04-05 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-04-05 01:12:18] Production.INFO: count ==1001 [2025-04-05 01:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:12:06 - End Time 2025-04-05 01:12:06 [2025-04-05 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836731', 'tblTempUsageDetail_20' ) start [2025-04-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836731', 'tblTempUsageDetail_20' ) end [2025-04-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836731', 'tblTempVendorCDR_20' ) start [2025-04-05 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836731', 'tblTempVendorCDR_20' ) end [2025-04-05 01:12:19] Production.INFO: ProcessCDR(1,14836731,1,1,2) [2025-04-05 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836731', 'tblTempUsageDetail_20' ) start [2025-04-05 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836731', 'tblTempUsageDetail_20' ) end [2025-04-05 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:12:22] Production.INFO: ==9849== Releasing lock... [2025-04-05 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:12:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:13:05 [end_date_ymd] => 2025-04-05 01:13:05 [RateCDR] => 1 ) [2025-04-05 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:13:05' and `end` < '2025-04-05 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:13:18] Production.INFO: count ==1001 [2025-04-05 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:13:05 - End Time 2025-04-05 01:13:05 [2025-04-05 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836736', 'tblTempUsageDetail_20' ) start [2025-04-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836736', 'tblTempUsageDetail_20' ) end [2025-04-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836736', 'tblTempVendorCDR_20' ) start [2025-04-05 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836736', 'tblTempVendorCDR_20' ) end [2025-04-05 01:13:19] Production.INFO: ProcessCDR(1,14836736,1,1,2) [2025-04-05 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836736', 'tblTempUsageDetail_20' ) start [2025-04-05 01:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836736', 'tblTempUsageDetail_20' ) end [2025-04-05 01:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:13:24] Production.INFO: ==9961== Releasing lock... [2025-04-05 01:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:13:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:14:05 [end_date_ymd] => 2025-04-05 01:14:05 [RateCDR] => 1 ) [2025-04-05 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:14:05' and `end` < '2025-04-05 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:14:18] Production.INFO: count ==1000 [2025-04-05 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:14:05 - End Time 2025-04-05 01:14:05 [2025-04-05 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836741', 'tblTempUsageDetail_20' ) start [2025-04-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836741', 'tblTempUsageDetail_20' ) end [2025-04-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836741', 'tblTempVendorCDR_20' ) start [2025-04-05 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836741', 'tblTempVendorCDR_20' ) end [2025-04-05 01:14:18] Production.INFO: ProcessCDR(1,14836741,1,1,2) [2025-04-05 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836741', 'tblTempUsageDetail_20' ) start [2025-04-05 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836741', 'tblTempUsageDetail_20' ) end [2025-04-05 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:14:22] Production.INFO: ==10069== Releasing lock... [2025-04-05 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:15:05 [end_date_ymd] => 2025-04-05 01:15:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:15:05' and `end` < '2025-04-05 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-04-05 01:15:18] Production.INFO: count ==1000 [2025-04-05 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:15:05 - End Time 2025-04-05 01:15:05 [2025-04-05 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836746', 'tblTempUsageDetail_20' ) start [2025-04-05 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836746', 'tblTempUsageDetail_20' ) end [2025-04-05 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836746', 'tblTempVendorCDR_20' ) start [2025-04-05 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836746', 'tblTempVendorCDR_20' ) end [2025-04-05 01:15:18] Production.INFO: ProcessCDR(1,14836746,1,1,2) [2025-04-05 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836746', 'tblTempUsageDetail_20' ) start [2025-04-05 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836746', 'tblTempUsageDetail_20' ) end [2025-04-05 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:15:22] Production.INFO: ==10218== Releasing lock... [2025-04-05 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:15:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:16:05 [end_date_ymd] => 2025-04-05 01:16:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:16:05' and `end` < '2025-04-05 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-04-05 01:16:17] Production.INFO: count ==997 [2025-04-05 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:16:05 - End Time 2025-04-05 01:16:05 [2025-04-05 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836751', 'tblTempUsageDetail_20' ) start [2025-04-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836751', 'tblTempUsageDetail_20' ) end [2025-04-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836751', 'tblTempVendorCDR_20' ) start [2025-04-05 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836751', 'tblTempVendorCDR_20' ) end [2025-04-05 01:16:18] Production.INFO: ProcessCDR(1,14836751,1,1,2) [2025-04-05 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836751', 'tblTempUsageDetail_20' ) start [2025-04-05 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836751', 'tblTempUsageDetail_20' ) end [2025-04-05 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:16:21] Production.INFO: ==10326== Releasing lock... [2025-04-05 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:16:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:17:06 [end_date_ymd] => 2025-04-05 01:17:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:17:06' and `end` < '2025-04-05 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-04-05 01:17:19] Production.INFO: count ==999 [2025-04-05 01:17:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:17:06 - End Time 2025-04-05 01:17:06 [2025-04-05 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836756', 'tblTempUsageDetail_20' ) start [2025-04-05 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836756', 'tblTempUsageDetail_20' ) end [2025-04-05 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836756', 'tblTempVendorCDR_20' ) start [2025-04-05 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836756', 'tblTempVendorCDR_20' ) end [2025-04-05 01:17:19] Production.INFO: ProcessCDR(1,14836756,1,1,2) [2025-04-05 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836756', 'tblTempUsageDetail_20' ) start [2025-04-05 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836756', 'tblTempUsageDetail_20' ) end [2025-04-05 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:17:23] Production.INFO: ==10434== Releasing lock... [2025-04-05 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:17:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:18:05 [end_date_ymd] => 2025-04-05 01:18:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:18:05' and `end` < '2025-04-05 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-04-05 01:18:18] Production.INFO: count ==994 [2025-04-05 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:18:05 - End Time 2025-04-05 01:18:05 [2025-04-05 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836761', 'tblTempUsageDetail_20' ) start [2025-04-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836761', 'tblTempUsageDetail_20' ) end [2025-04-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836761', 'tblTempVendorCDR_20' ) start [2025-04-05 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836761', 'tblTempVendorCDR_20' ) end [2025-04-05 01:18:18] Production.INFO: ProcessCDR(1,14836761,1,1,2) [2025-04-05 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836761', 'tblTempUsageDetail_20' ) start [2025-04-05 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836761', 'tblTempUsageDetail_20' ) end [2025-04-05 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:18:22] Production.INFO: ==10527== Releasing lock... [2025-04-05 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:18:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:19:05 [end_date_ymd] => 2025-04-05 01:19:05 [RateCDR] => 1 ) [2025-04-05 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:19:05' and `end` < '2025-04-05 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:19:18] Production.INFO: count ==991 [2025-04-05 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:19:05 - End Time 2025-04-05 01:19:05 [2025-04-05 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836766', 'tblTempUsageDetail_20' ) start [2025-04-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836766', 'tblTempUsageDetail_20' ) end [2025-04-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836766', 'tblTempVendorCDR_20' ) start [2025-04-05 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836766', 'tblTempVendorCDR_20' ) end [2025-04-05 01:19:18] Production.INFO: ProcessCDR(1,14836766,1,1,2) [2025-04-05 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836766', 'tblTempUsageDetail_20' ) start [2025-04-05 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836766', 'tblTempUsageDetail_20' ) end [2025-04-05 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:19:22] Production.INFO: ==10613== Releasing lock... [2025-04-05 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:19:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:20:06 [end_date_ymd] => 2025-04-05 01:20:06 [RateCDR] => 1 ) [2025-04-05 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:20:06' and `end` < '2025-04-05 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:20:19] Production.INFO: count ==1007 [2025-04-05 01:20:20] Production.ERROR: pbx CDR StartTime 2025-04-04 22:20:06 - End Time 2025-04-05 01:20:06 [2025-04-05 01:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836772', 'tblTempUsageDetail_20' ) start [2025-04-05 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836772', 'tblTempUsageDetail_20' ) end [2025-04-05 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836772', 'tblTempVendorCDR_20' ) start [2025-04-05 01:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836772', 'tblTempVendorCDR_20' ) end [2025-04-05 01:20:20] Production.INFO: ProcessCDR(1,14836772,1,1,2) [2025-04-05 01:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836772', 'tblTempUsageDetail_20' ) start [2025-04-05 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836772', 'tblTempUsageDetail_20' ) end [2025-04-05 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:20:23] Production.INFO: ==10686== Releasing lock... [2025-04-05 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:20:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:21:05 [end_date_ymd] => 2025-04-05 01:21:05 [RateCDR] => 1 ) [2025-04-05 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:21:05' and `end` < '2025-04-05 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:21:18] Production.INFO: count ==1007 [2025-04-05 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:21:05 - End Time 2025-04-05 01:21:05 [2025-04-05 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836777', 'tblTempUsageDetail_20' ) start [2025-04-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836777', 'tblTempUsageDetail_20' ) end [2025-04-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836777', 'tblTempVendorCDR_20' ) start [2025-04-05 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836777', 'tblTempVendorCDR_20' ) end [2025-04-05 01:21:18] Production.INFO: ProcessCDR(1,14836777,1,1,2) [2025-04-05 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836777', 'tblTempUsageDetail_20' ) start [2025-04-05 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836777', 'tblTempUsageDetail_20' ) end [2025-04-05 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:21:21] Production.INFO: ==10779== Releasing lock... [2025-04-05 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:21:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:22:06 [end_date_ymd] => 2025-04-05 01:22:06 [RateCDR] => 1 ) [2025-04-05 01: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-04-04 22:22:06' and `end` < '2025-04-05 01: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-04-05 01:22:18] Production.INFO: count ==1007 [2025-04-05 01:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:22:06 - End Time 2025-04-05 01:22:06 [2025-04-05 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836782', 'tblTempUsageDetail_20' ) start [2025-04-05 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836782', 'tblTempUsageDetail_20' ) end [2025-04-05 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836782', 'tblTempVendorCDR_20' ) start [2025-04-05 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836782', 'tblTempVendorCDR_20' ) end [2025-04-05 01:22:19] Production.INFO: ProcessCDR(1,14836782,1,1,2) [2025-04-05 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836782', 'tblTempUsageDetail_20' ) start [2025-04-05 01:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836782', 'tblTempUsageDetail_20' ) end [2025-04-05 01:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:22:24] Production.INFO: ==10857== Releasing lock... [2025-04-05 01:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:22:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:23:05 [end_date_ymd] => 2025-04-05 01:23:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:23:05' and `end` < '2025-04-05 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-04-05 01:23:18] Production.INFO: count ==995 [2025-04-05 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:23:05 - End Time 2025-04-05 01:23:05 [2025-04-05 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836787', 'tblTempUsageDetail_20' ) start [2025-04-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836787', 'tblTempUsageDetail_20' ) end [2025-04-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836787', 'tblTempVendorCDR_20' ) start [2025-04-05 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836787', 'tblTempVendorCDR_20' ) end [2025-04-05 01:23:18] Production.INFO: ProcessCDR(1,14836787,1,1,2) [2025-04-05 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836787', 'tblTempUsageDetail_20' ) start [2025-04-05 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836787', 'tblTempUsageDetail_20' ) end [2025-04-05 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:23:23] Production.INFO: ==10938== Releasing lock... [2025-04-05 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:23:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:24:06 [end_date_ymd] => 2025-04-05 01:24:06 [RateCDR] => 1 ) [2025-04-05 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:24:06' and `end` < '2025-04-05 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:24:18] Production.INFO: count ==993 [2025-04-05 01:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:24:06 - End Time 2025-04-05 01:24:06 [2025-04-05 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836792', 'tblTempUsageDetail_20' ) start [2025-04-05 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836792', 'tblTempUsageDetail_20' ) end [2025-04-05 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836792', 'tblTempVendorCDR_20' ) start [2025-04-05 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836792', 'tblTempVendorCDR_20' ) end [2025-04-05 01:24:19] Production.INFO: ProcessCDR(1,14836792,1,1,2) [2025-04-05 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836792', 'tblTempUsageDetail_20' ) start [2025-04-05 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836792', 'tblTempUsageDetail_20' ) end [2025-04-05 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:24:23] Production.INFO: ==11021== Releasing lock... [2025-04-05 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:24:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:25:05 [end_date_ymd] => 2025-04-05 01:25:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:25:05' and `end` < '2025-04-05 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-04-05 01:25:17] Production.INFO: count ==974 [2025-04-05 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:25:05 - End Time 2025-04-05 01:25:05 [2025-04-05 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836797', 'tblTempUsageDetail_20' ) start [2025-04-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836797', 'tblTempUsageDetail_20' ) end [2025-04-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836797', 'tblTempVendorCDR_20' ) start [2025-04-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836797', 'tblTempVendorCDR_20' ) end [2025-04-05 01:25:18] Production.INFO: ProcessCDR(1,14836797,1,1,2) [2025-04-05 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836797', 'tblTempUsageDetail_20' ) start [2025-04-05 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836797', 'tblTempUsageDetail_20' ) end [2025-04-05 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:25:21] Production.INFO: ==11101== Releasing lock... [2025-04-05 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:25:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:26:05 [end_date_ymd] => 2025-04-05 01:26:05 [RateCDR] => 1 ) [2025-04-05 01: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-04-04 22:26:05' and `end` < '2025-04-05 01: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-04-05 01:26:18] Production.INFO: count ==966 [2025-04-05 01:26:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:26:05 - End Time 2025-04-05 01:26:05 [2025-04-05 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836802', 'tblTempUsageDetail_20' ) start [2025-04-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836802', 'tblTempUsageDetail_20' ) end [2025-04-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836802', 'tblTempVendorCDR_20' ) start [2025-04-05 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836802', 'tblTempVendorCDR_20' ) end [2025-04-05 01:26:18] Production.INFO: ProcessCDR(1,14836802,1,1,2) [2025-04-05 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836802', 'tblTempUsageDetail_20' ) start [2025-04-05 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836802', 'tblTempUsageDetail_20' ) end [2025-04-05 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:26:21] Production.INFO: ==11185== Releasing lock... [2025-04-05 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:26:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:27:05 [end_date_ymd] => 2025-04-05 01:27:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:27:05' and `end` < '2025-04-05 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-04-05 01:27:18] Production.INFO: count ==967 [2025-04-05 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:27:05 - End Time 2025-04-05 01:27:05 [2025-04-05 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836807', 'tblTempUsageDetail_20' ) start [2025-04-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836807', 'tblTempUsageDetail_20' ) end [2025-04-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836807', 'tblTempVendorCDR_20' ) start [2025-04-05 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836807', 'tblTempVendorCDR_20' ) end [2025-04-05 01:27:18] Production.INFO: ProcessCDR(1,14836807,1,1,2) [2025-04-05 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836807', 'tblTempUsageDetail_20' ) start [2025-04-05 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836807', 'tblTempUsageDetail_20' ) end [2025-04-05 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:27:21] Production.INFO: ==11259== Releasing lock... [2025-04-05 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:27:21] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:28:05 [end_date_ymd] => 2025-04-05 01:28:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:28:05' and `end` < '2025-04-05 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-04-05 01:28:18] Production.INFO: count ==977 [2025-04-05 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:28:05 - End Time 2025-04-05 01:28:05 [2025-04-05 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836812', 'tblTempUsageDetail_20' ) start [2025-04-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836812', 'tblTempUsageDetail_20' ) end [2025-04-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836812', 'tblTempVendorCDR_20' ) start [2025-04-05 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836812', 'tblTempVendorCDR_20' ) end [2025-04-05 01:28:19] Production.INFO: ProcessCDR(1,14836812,1,1,2) [2025-04-05 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836812', 'tblTempUsageDetail_20' ) start [2025-04-05 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836812', 'tblTempUsageDetail_20' ) end [2025-04-05 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:28:22] Production.INFO: ==11340== Releasing lock... [2025-04-05 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:29:05 [end_date_ymd] => 2025-04-05 01:29:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:29:05' and `end` < '2025-04-05 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-04-05 01:29:18] Production.INFO: count ==975 [2025-04-05 01:29:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:29:05 - End Time 2025-04-05 01:29:05 [2025-04-05 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836817', 'tblTempUsageDetail_20' ) start [2025-04-05 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836817', 'tblTempUsageDetail_20' ) end [2025-04-05 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836817', 'tblTempVendorCDR_20' ) start [2025-04-05 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836817', 'tblTempVendorCDR_20' ) end [2025-04-05 01:29:19] Production.INFO: ProcessCDR(1,14836817,1,1,2) [2025-04-05 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836817', 'tblTempUsageDetail_20' ) start [2025-04-05 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836817', 'tblTempUsageDetail_20' ) end [2025-04-05 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:29:22] Production.INFO: ==11419== Releasing lock... [2025-04-05 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:29:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:30:06 [end_date_ymd] => 2025-04-05 01:30:06 [RateCDR] => 1 ) [2025-04-05 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:30:06' and `end` < '2025-04-05 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:30:19] Production.INFO: count ==980 [2025-04-05 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:30:06 - End Time 2025-04-05 01:30:06 [2025-04-05 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836823', 'tblTempUsageDetail_20' ) start [2025-04-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836823', 'tblTempUsageDetail_20' ) end [2025-04-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836823', 'tblTempVendorCDR_20' ) start [2025-04-05 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836823', 'tblTempVendorCDR_20' ) end [2025-04-05 01:30:19] Production.INFO: ProcessCDR(1,14836823,1,1,2) [2025-04-05 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836823', 'tblTempUsageDetail_20' ) start [2025-04-05 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836823', 'tblTempUsageDetail_20' ) end [2025-04-05 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:30:22] Production.INFO: ==11544== Releasing lock... [2025-04-05 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:30:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:31:06 [end_date_ymd] => 2025-04-05 01:31:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:31:06' and `end` < '2025-04-05 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-04-05 01:31:19] Production.INFO: count ==991 [2025-04-05 01:31:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:31:06 - End Time 2025-04-05 01:31:06 [2025-04-05 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836828', 'tblTempUsageDetail_20' ) start [2025-04-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836828', 'tblTempUsageDetail_20' ) end [2025-04-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836828', 'tblTempVendorCDR_20' ) start [2025-04-05 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836828', 'tblTempVendorCDR_20' ) end [2025-04-05 01:31:19] Production.INFO: ProcessCDR(1,14836828,1,1,2) [2025-04-05 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836828', 'tblTempUsageDetail_20' ) start [2025-04-05 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836828', 'tblTempUsageDetail_20' ) end [2025-04-05 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:31:23] Production.INFO: ==11627== Releasing lock... [2025-04-05 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:31:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:32:05 [end_date_ymd] => 2025-04-05 01:32:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:32:05' and `end` < '2025-04-05 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-04-05 01:32:18] Production.INFO: count ==990 [2025-04-05 01:32:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:32:05 - End Time 2025-04-05 01:32:05 [2025-04-05 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836833', 'tblTempUsageDetail_20' ) start [2025-04-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836833', 'tblTempUsageDetail_20' ) end [2025-04-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836833', 'tblTempVendorCDR_20' ) start [2025-04-05 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836833', 'tblTempVendorCDR_20' ) end [2025-04-05 01:32:19] Production.INFO: ProcessCDR(1,14836833,1,1,2) [2025-04-05 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836833', 'tblTempUsageDetail_20' ) start [2025-04-05 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836833', 'tblTempUsageDetail_20' ) end [2025-04-05 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:32:22] Production.INFO: ==11704== Releasing lock... [2025-04-05 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:33:06 [end_date_ymd] => 2025-04-05 01:33:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:33:06' and `end` < '2025-04-05 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-04-05 01:33:19] Production.INFO: count ==1003 [2025-04-05 01:33:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:33:06 - End Time 2025-04-05 01:33:06 [2025-04-05 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836838', 'tblTempUsageDetail_20' ) start [2025-04-05 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836838', 'tblTempUsageDetail_20' ) end [2025-04-05 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836838', 'tblTempVendorCDR_20' ) start [2025-04-05 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836838', 'tblTempVendorCDR_20' ) end [2025-04-05 01:33:19] Production.INFO: ProcessCDR(1,14836838,1,1,2) [2025-04-05 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836838', 'tblTempUsageDetail_20' ) start [2025-04-05 01:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836838', 'tblTempUsageDetail_20' ) end [2025-04-05 01:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:33:23] Production.INFO: ==11782== Releasing lock... [2025-04-05 01:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:33:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:34:06 [end_date_ymd] => 2025-04-05 01:34:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:34:06' and `end` < '2025-04-05 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-04-05 01:34:18] Production.INFO: count ==1010 [2025-04-05 01:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:34:06 - End Time 2025-04-05 01:34:06 [2025-04-05 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836843', 'tblTempUsageDetail_20' ) start [2025-04-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836843', 'tblTempUsageDetail_20' ) end [2025-04-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836843', 'tblTempVendorCDR_20' ) start [2025-04-05 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836843', 'tblTempVendorCDR_20' ) end [2025-04-05 01:34:19] Production.INFO: ProcessCDR(1,14836843,1,1,2) [2025-04-05 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836843', 'tblTempUsageDetail_20' ) start [2025-04-05 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836843', 'tblTempUsageDetail_20' ) end [2025-04-05 01:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:34:24] Production.INFO: ==11864== Releasing lock... [2025-04-05 01:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:34:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:35:06 [end_date_ymd] => 2025-04-05 01:35:06 [RateCDR] => 1 ) [2025-04-05 01:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:35:06' and `end` < '2025-04-05 01:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:35:19] Production.INFO: count ==1012 [2025-04-05 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:35:06 - End Time 2025-04-05 01:35:06 [2025-04-05 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836848', 'tblTempUsageDetail_20' ) start [2025-04-05 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836848', 'tblTempUsageDetail_20' ) end [2025-04-05 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836848', 'tblTempVendorCDR_20' ) start [2025-04-05 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836848', 'tblTempVendorCDR_20' ) end [2025-04-05 01:35:19] Production.INFO: ProcessCDR(1,14836848,1,1,2) [2025-04-05 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836848', 'tblTempUsageDetail_20' ) start [2025-04-05 01:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836848', 'tblTempUsageDetail_20' ) end [2025-04-05 01:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:35:24] Production.INFO: ==11945== Releasing lock... [2025-04-05 01:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:35:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:36:05 [end_date_ymd] => 2025-04-05 01:36:05 [RateCDR] => 1 ) [2025-04-05 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:36:05' and `end` < '2025-04-05 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:36:18] Production.INFO: count ==1016 [2025-04-05 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:36:05 - End Time 2025-04-05 01:36:05 [2025-04-05 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836853', 'tblTempUsageDetail_20' ) start [2025-04-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836853', 'tblTempUsageDetail_20' ) end [2025-04-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836853', 'tblTempVendorCDR_20' ) start [2025-04-05 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836853', 'tblTempVendorCDR_20' ) end [2025-04-05 01:36:19] Production.INFO: ProcessCDR(1,14836853,1,1,2) [2025-04-05 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836853', 'tblTempUsageDetail_20' ) start [2025-04-05 01:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836853', 'tblTempUsageDetail_20' ) end [2025-04-05 01:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:36:24] Production.INFO: ==12023== Releasing lock... [2025-04-05 01:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:36:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:37:05 [end_date_ymd] => 2025-04-05 01:37:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:37:05' and `end` < '2025-04-05 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-04-05 01:37:18] Production.INFO: count ==1023 [2025-04-05 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:37:05 - End Time 2025-04-05 01:37:05 [2025-04-05 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836858', 'tblTempUsageDetail_20' ) start [2025-04-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836858', 'tblTempUsageDetail_20' ) end [2025-04-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836858', 'tblTempVendorCDR_20' ) start [2025-04-05 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836858', 'tblTempVendorCDR_20' ) end [2025-04-05 01:37:18] Production.INFO: ProcessCDR(1,14836858,1,1,2) [2025-04-05 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836858', 'tblTempUsageDetail_20' ) start [2025-04-05 01:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836858', 'tblTempUsageDetail_20' ) end [2025-04-05 01:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:37:24] Production.INFO: ==12110== Releasing lock... [2025-04-05 01:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:37:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:38:06 [end_date_ymd] => 2025-04-05 01:38:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:38:06' and `end` < '2025-04-05 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-04-05 01:38:18] Production.INFO: count ==1027 [2025-04-05 01:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:38:06 - End Time 2025-04-05 01:38:06 [2025-04-05 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836863', 'tblTempUsageDetail_20' ) start [2025-04-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836863', 'tblTempUsageDetail_20' ) end [2025-04-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836863', 'tblTempVendorCDR_20' ) start [2025-04-05 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836863', 'tblTempVendorCDR_20' ) end [2025-04-05 01:38:19] Production.INFO: ProcessCDR(1,14836863,1,1,2) [2025-04-05 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836863', 'tblTempUsageDetail_20' ) start [2025-04-05 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836863', 'tblTempUsageDetail_20' ) end [2025-04-05 01:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:38:24] Production.INFO: ==12189== Releasing lock... [2025-04-05 01:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:38:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:39:06 [end_date_ymd] => 2025-04-05 01:39:06 [RateCDR] => 1 ) [2025-04-05 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:39:06' and `end` < '2025-04-05 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:39:19] Production.INFO: count ==1026 [2025-04-05 01:39:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:39:06 - End Time 2025-04-05 01:39:06 [2025-04-05 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836868', 'tblTempUsageDetail_20' ) start [2025-04-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836868', 'tblTempUsageDetail_20' ) end [2025-04-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836868', 'tblTempVendorCDR_20' ) start [2025-04-05 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836868', 'tblTempVendorCDR_20' ) end [2025-04-05 01:39:19] Production.INFO: ProcessCDR(1,14836868,1,1,2) [2025-04-05 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836868', 'tblTempUsageDetail_20' ) start [2025-04-05 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836868', 'tblTempUsageDetail_20' ) end [2025-04-05 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:39:23] Production.INFO: ==12266== Releasing lock... [2025-04-05 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:39:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:40:06 [end_date_ymd] => 2025-04-05 01:40:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:40:06' and `end` < '2025-04-05 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-04-05 01:40:19] Production.INFO: count ==1014 [2025-04-05 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:40:06 - End Time 2025-04-05 01:40:06 [2025-04-05 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836874', 'tblTempUsageDetail_20' ) start [2025-04-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836874', 'tblTempUsageDetail_20' ) end [2025-04-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836874', 'tblTempVendorCDR_20' ) start [2025-04-05 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836874', 'tblTempVendorCDR_20' ) end [2025-04-05 01:40:19] Production.INFO: ProcessCDR(1,14836874,1,1,2) [2025-04-05 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836874', 'tblTempUsageDetail_20' ) start [2025-04-05 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836874', 'tblTempUsageDetail_20' ) end [2025-04-05 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:40:23] Production.INFO: ==12341== Releasing lock... [2025-04-05 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:40:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:41:05 [end_date_ymd] => 2025-04-05 01:41:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:41:05' and `end` < '2025-04-05 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-04-05 01:41:18] Production.INFO: count ==994 [2025-04-05 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:41:05 - End Time 2025-04-05 01:41:05 [2025-04-05 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836879', 'tblTempUsageDetail_20' ) start [2025-04-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836879', 'tblTempUsageDetail_20' ) end [2025-04-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836879', 'tblTempVendorCDR_20' ) start [2025-04-05 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836879', 'tblTempVendorCDR_20' ) end [2025-04-05 01:41:19] Production.INFO: ProcessCDR(1,14836879,1,1,2) [2025-04-05 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836879', 'tblTempUsageDetail_20' ) start [2025-04-05 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836879', 'tblTempUsageDetail_20' ) end [2025-04-05 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:41:22] Production.INFO: ==12424== Releasing lock... [2025-04-05 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:42:06 [end_date_ymd] => 2025-04-05 01:42:06 [RateCDR] => 1 ) [2025-04-05 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:42:06' and `end` < '2025-04-05 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:42:18] Production.INFO: count ==985 [2025-04-05 01:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:42:06 - End Time 2025-04-05 01:42:06 [2025-04-05 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836884', 'tblTempUsageDetail_20' ) start [2025-04-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836884', 'tblTempUsageDetail_20' ) end [2025-04-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836884', 'tblTempVendorCDR_20' ) start [2025-04-05 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836884', 'tblTempVendorCDR_20' ) end [2025-04-05 01:42:19] Production.INFO: ProcessCDR(1,14836884,1,1,2) [2025-04-05 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836884', 'tblTempUsageDetail_20' ) start [2025-04-05 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836884', 'tblTempUsageDetail_20' ) end [2025-04-05 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:42:22] Production.INFO: ==12498== Releasing lock... [2025-04-05 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:42:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:43:06 [end_date_ymd] => 2025-04-05 01:43:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:43:06' and `end` < '2025-04-05 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-04-05 01:43:19] Production.INFO: count ==984 [2025-04-05 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:43:06 - End Time 2025-04-05 01:43:06 [2025-04-05 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836889', 'tblTempUsageDetail_20' ) start [2025-04-05 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836889', 'tblTempUsageDetail_20' ) end [2025-04-05 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836889', 'tblTempVendorCDR_20' ) start [2025-04-05 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836889', 'tblTempVendorCDR_20' ) end [2025-04-05 01:43:19] Production.INFO: ProcessCDR(1,14836889,1,1,2) [2025-04-05 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836889', 'tblTempUsageDetail_20' ) start [2025-04-05 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836889', 'tblTempUsageDetail_20' ) end [2025-04-05 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:43:23] Production.INFO: ==12573== Releasing lock... [2025-04-05 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:43:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:44:05 [end_date_ymd] => 2025-04-05 01:44:05 [RateCDR] => 1 ) [2025-04-05 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:44:05' and `end` < '2025-04-05 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:44:18] Production.INFO: count ==982 [2025-04-05 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:44:05 - End Time 2025-04-05 01:44:05 [2025-04-05 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836894', 'tblTempUsageDetail_20' ) start [2025-04-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836894', 'tblTempUsageDetail_20' ) end [2025-04-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836894', 'tblTempVendorCDR_20' ) start [2025-04-05 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836894', 'tblTempVendorCDR_20' ) end [2025-04-05 01:44:18] Production.INFO: ProcessCDR(1,14836894,1,1,2) [2025-04-05 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836894', 'tblTempUsageDetail_20' ) start [2025-04-05 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836894', 'tblTempUsageDetail_20' ) end [2025-04-05 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:44:22] Production.INFO: ==12645== Releasing lock... [2025-04-05 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:44:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:45:05 [end_date_ymd] => 2025-04-05 01:45:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:45:05' and `end` < '2025-04-05 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-04-05 01:45:18] Production.INFO: count ==980 [2025-04-05 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:45:05 - End Time 2025-04-05 01:45:05 [2025-04-05 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836899', 'tblTempUsageDetail_20' ) start [2025-04-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836899', 'tblTempUsageDetail_20' ) end [2025-04-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836899', 'tblTempVendorCDR_20' ) start [2025-04-05 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836899', 'tblTempVendorCDR_20' ) end [2025-04-05 01:45:18] Production.INFO: ProcessCDR(1,14836899,1,1,2) [2025-04-05 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836899', 'tblTempUsageDetail_20' ) start [2025-04-05 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836899', 'tblTempUsageDetail_20' ) end [2025-04-05 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:45:22] Production.INFO: ==12721== Releasing lock... [2025-04-05 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:46:05 [end_date_ymd] => 2025-04-05 01:46:05 [RateCDR] => 1 ) [2025-04-05 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:46:05' and `end` < '2025-04-05 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:46:18] Production.INFO: count ==979 [2025-04-05 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:46:05 - End Time 2025-04-05 01:46:05 [2025-04-05 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836904', 'tblTempUsageDetail_20' ) start [2025-04-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836904', 'tblTempUsageDetail_20' ) end [2025-04-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836904', 'tblTempVendorCDR_20' ) start [2025-04-05 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836904', 'tblTempVendorCDR_20' ) end [2025-04-05 01:46:18] Production.INFO: ProcessCDR(1,14836904,1,1,2) [2025-04-05 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836904', 'tblTempUsageDetail_20' ) start [2025-04-05 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836904', 'tblTempUsageDetail_20' ) end [2025-04-05 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:46:21] Production.INFO: ==12830== Releasing lock... [2025-04-05 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:46:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:47:06 [end_date_ymd] => 2025-04-05 01:47:06 [RateCDR] => 1 ) [2025-04-05 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:47:06' and `end` < '2025-04-05 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:47:19] Production.INFO: count ==977 [2025-04-05 01:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:47:06 - End Time 2025-04-05 01:47:06 [2025-04-05 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836909', 'tblTempUsageDetail_20' ) start [2025-04-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836909', 'tblTempUsageDetail_20' ) end [2025-04-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836909', 'tblTempVendorCDR_20' ) start [2025-04-05 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836909', 'tblTempVendorCDR_20' ) end [2025-04-05 01:47:19] Production.INFO: ProcessCDR(1,14836909,1,1,2) [2025-04-05 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836909', 'tblTempUsageDetail_20' ) start [2025-04-05 01:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836909', 'tblTempUsageDetail_20' ) end [2025-04-05 01:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:47:23] Production.INFO: ==12905== Releasing lock... [2025-04-05 01:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:47:23] Production.INFO: 35 MB #Memory Used# [2025-04-05 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:48:05 [end_date_ymd] => 2025-04-05 01:48:05 [RateCDR] => 1 ) [2025-04-05 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:48:05' and `end` < '2025-04-05 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:48:18] Production.INFO: count ==969 [2025-04-05 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:48:05 - End Time 2025-04-05 01:48:05 [2025-04-05 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836914', 'tblTempUsageDetail_20' ) start [2025-04-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836914', 'tblTempUsageDetail_20' ) end [2025-04-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836914', 'tblTempVendorCDR_20' ) start [2025-04-05 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836914', 'tblTempVendorCDR_20' ) end [2025-04-05 01:48:18] Production.INFO: ProcessCDR(1,14836914,1,1,2) [2025-04-05 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836914', 'tblTempUsageDetail_20' ) start [2025-04-05 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836914', 'tblTempUsageDetail_20' ) end [2025-04-05 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:48:22] Production.INFO: ==12977== Releasing lock... [2025-04-05 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:48:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:49:06 [end_date_ymd] => 2025-04-05 01:49:06 [RateCDR] => 1 ) [2025-04-05 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:49:06' and `end` < '2025-04-05 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:49:18] Production.INFO: count ==969 [2025-04-05 01:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:49:06 - End Time 2025-04-05 01:49:06 [2025-04-05 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836919', 'tblTempUsageDetail_20' ) start [2025-04-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836919', 'tblTempUsageDetail_20' ) end [2025-04-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836919', 'tblTempVendorCDR_20' ) start [2025-04-05 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836919', 'tblTempVendorCDR_20' ) end [2025-04-05 01:49:19] Production.INFO: ProcessCDR(1,14836919,1,1,2) [2025-04-05 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836919', 'tblTempUsageDetail_20' ) start [2025-04-05 01:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836919', 'tblTempUsageDetail_20' ) end [2025-04-05 01:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:49:24] Production.INFO: ==13060== Releasing lock... [2025-04-05 01:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:49:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:50:06 [end_date_ymd] => 2025-04-05 01:50:06 [RateCDR] => 1 ) [2025-04-05 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:50:06' and `end` < '2025-04-05 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:50:19] Production.INFO: count ==981 [2025-04-05 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:50:06 - End Time 2025-04-05 01:50:06 [2025-04-05 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836925', 'tblTempUsageDetail_20' ) start [2025-04-05 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836925', 'tblTempUsageDetail_20' ) end [2025-04-05 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836925', 'tblTempVendorCDR_20' ) start [2025-04-05 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836925', 'tblTempVendorCDR_20' ) end [2025-04-05 01:50:19] Production.INFO: ProcessCDR(1,14836925,1,1,2) [2025-04-05 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836925', 'tblTempUsageDetail_20' ) start [2025-04-05 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836925', 'tblTempUsageDetail_20' ) end [2025-04-05 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:50:24] Production.INFO: ==13133== Releasing lock... [2025-04-05 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:50:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:51:05 [end_date_ymd] => 2025-04-05 01:51:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:51:05' and `end` < '2025-04-05 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-04-05 01:51:18] Production.INFO: count ==1003 [2025-04-05 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:51:05 - End Time 2025-04-05 01:51:05 [2025-04-05 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836930', 'tblTempUsageDetail_20' ) start [2025-04-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836930', 'tblTempUsageDetail_20' ) end [2025-04-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836930', 'tblTempVendorCDR_20' ) start [2025-04-05 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836930', 'tblTempVendorCDR_20' ) end [2025-04-05 01:51:18] Production.INFO: ProcessCDR(1,14836930,1,1,2) [2025-04-05 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836930', 'tblTempUsageDetail_20' ) start [2025-04-05 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836930', 'tblTempUsageDetail_20' ) end [2025-04-05 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:51:22] Production.INFO: ==13215== Releasing lock... [2025-04-05 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:51:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:52:05 [end_date_ymd] => 2025-04-05 01:52:05 [RateCDR] => 1 ) [2025-04-05 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:52:05' and `end` < '2025-04-05 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:52:18] Production.INFO: count ==1009 [2025-04-05 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:52:05 - End Time 2025-04-05 01:52:05 [2025-04-05 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836935', 'tblTempUsageDetail_20' ) start [2025-04-05 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836935', 'tblTempUsageDetail_20' ) end [2025-04-05 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836935', 'tblTempVendorCDR_20' ) start [2025-04-05 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836935', 'tblTempVendorCDR_20' ) end [2025-04-05 01:52:18] Production.INFO: ProcessCDR(1,14836935,1,1,2) [2025-04-05 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836935', 'tblTempUsageDetail_20' ) start [2025-04-05 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836935', 'tblTempUsageDetail_20' ) end [2025-04-05 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:52:22] Production.INFO: ==13289== Releasing lock... [2025-04-05 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:52:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:53:05 [end_date_ymd] => 2025-04-05 01:53:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:53:05' and `end` < '2025-04-05 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-04-05 01:53:18] Production.INFO: count ==1012 [2025-04-05 01:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:53:05 - End Time 2025-04-05 01:53:05 [2025-04-05 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836940', 'tblTempUsageDetail_20' ) start [2025-04-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836940', 'tblTempUsageDetail_20' ) end [2025-04-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836940', 'tblTempVendorCDR_20' ) start [2025-04-05 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836940', 'tblTempVendorCDR_20' ) end [2025-04-05 01:53:19] Production.INFO: ProcessCDR(1,14836940,1,1,2) [2025-04-05 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836940', 'tblTempUsageDetail_20' ) start [2025-04-05 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836940', 'tblTempUsageDetail_20' ) end [2025-04-05 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:53:22] Production.INFO: ==13363== Releasing lock... [2025-04-05 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:53:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:54:06 [end_date_ymd] => 2025-04-05 01:54:06 [RateCDR] => 1 ) [2025-04-05 01: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-04-04 22:54:06' and `end` < '2025-04-05 01: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-04-05 01:54:18] Production.INFO: count ==1021 [2025-04-05 01:54:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:54:06 - End Time 2025-04-05 01:54:06 [2025-04-05 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836945', 'tblTempUsageDetail_20' ) start [2025-04-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836945', 'tblTempUsageDetail_20' ) end [2025-04-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836945', 'tblTempVendorCDR_20' ) start [2025-04-05 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836945', 'tblTempVendorCDR_20' ) end [2025-04-05 01:54:19] Production.INFO: ProcessCDR(1,14836945,1,1,2) [2025-04-05 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836945', 'tblTempUsageDetail_20' ) start [2025-04-05 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836945', 'tblTempUsageDetail_20' ) end [2025-04-05 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:54:22] Production.INFO: ==13437== Releasing lock... [2025-04-05 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:54:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:55:06 [end_date_ymd] => 2025-04-05 01:55:06 [RateCDR] => 1 ) [2025-04-05 01:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:55:06' and `end` < '2025-04-05 01:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:55:18] Production.INFO: count ==1024 [2025-04-05 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:55:06 - End Time 2025-04-05 01:55:06 [2025-04-05 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836950', 'tblTempUsageDetail_20' ) start [2025-04-05 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836950', 'tblTempUsageDetail_20' ) end [2025-04-05 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836950', 'tblTempVendorCDR_20' ) start [2025-04-05 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836950', 'tblTempVendorCDR_20' ) end [2025-04-05 01:55:19] Production.INFO: ProcessCDR(1,14836950,1,1,2) [2025-04-05 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836950', 'tblTempUsageDetail_20' ) start [2025-04-05 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836950', 'tblTempUsageDetail_20' ) end [2025-04-05 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:55:22] Production.INFO: ==13510== Releasing lock... [2025-04-05 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:55:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:56:06 [end_date_ymd] => 2025-04-05 01:56:06 [RateCDR] => 1 ) [2025-04-05 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 22:56:06' and `end` < '2025-04-05 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 01:56:19] Production.INFO: count ==1024 [2025-04-05 01:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:56:06 - End Time 2025-04-05 01:56:06 [2025-04-05 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836955', 'tblTempUsageDetail_20' ) start [2025-04-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836955', 'tblTempUsageDetail_20' ) end [2025-04-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836955', 'tblTempVendorCDR_20' ) start [2025-04-05 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836955', 'tblTempVendorCDR_20' ) end [2025-04-05 01:56:19] Production.INFO: ProcessCDR(1,14836955,1,1,2) [2025-04-05 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836955', 'tblTempUsageDetail_20' ) start [2025-04-05 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836955', 'tblTempUsageDetail_20' ) end [2025-04-05 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:56:23] Production.INFO: ==13586== Releasing lock... [2025-04-05 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:56:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:57:05 [end_date_ymd] => 2025-04-05 01:57:05 [RateCDR] => 1 ) [2025-04-05 01: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-04-04 22:57:05' and `end` < '2025-04-05 01: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-04-05 01:57:18] Production.INFO: count ==1020 [2025-04-05 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:57:05 - End Time 2025-04-05 01:57:05 [2025-04-05 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836960', 'tblTempUsageDetail_20' ) start [2025-04-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836960', 'tblTempUsageDetail_20' ) end [2025-04-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836960', 'tblTempVendorCDR_20' ) start [2025-04-05 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836960', 'tblTempVendorCDR_20' ) end [2025-04-05 01:57:18] Production.INFO: ProcessCDR(1,14836960,1,1,2) [2025-04-05 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836960', 'tblTempUsageDetail_20' ) start [2025-04-05 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836960', 'tblTempUsageDetail_20' ) end [2025-04-05 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:57:22] Production.INFO: ==13658== Releasing lock... [2025-04-05 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:57:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:58:06 [end_date_ymd] => 2025-04-05 01:58:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:58:06' and `end` < '2025-04-05 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-04-05 01:58:19] Production.INFO: count ==1019 [2025-04-05 01:58:19] Production.ERROR: pbx CDR StartTime 2025-04-04 22:58:06 - End Time 2025-04-05 01:58:06 [2025-04-05 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836965', 'tblTempUsageDetail_20' ) start [2025-04-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836965', 'tblTempUsageDetail_20' ) end [2025-04-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836965', 'tblTempVendorCDR_20' ) start [2025-04-05 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836965', 'tblTempVendorCDR_20' ) end [2025-04-05 01:58:19] Production.INFO: ProcessCDR(1,14836965,1,1,2) [2025-04-05 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836965', 'tblTempUsageDetail_20' ) start [2025-04-05 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836965', 'tblTempUsageDetail_20' ) end [2025-04-05 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:58:23] Production.INFO: ==13731== Releasing lock... [2025-04-05 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:58:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 22:59:05 [end_date_ymd] => 2025-04-05 01:59:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 22:59:05' and `end` < '2025-04-05 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-04-05 01:59:18] Production.INFO: count ==1026 [2025-04-05 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 22:59:05 - End Time 2025-04-05 01:59:05 [2025-04-05 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836970', 'tblTempUsageDetail_20' ) start [2025-04-05 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836970', 'tblTempUsageDetail_20' ) end [2025-04-05 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836970', 'tblTempVendorCDR_20' ) start [2025-04-05 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836970', 'tblTempVendorCDR_20' ) end [2025-04-05 01:59:18] Production.INFO: ProcessCDR(1,14836970,1,1,2) [2025-04-05 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836970', 'tblTempUsageDetail_20' ) start [2025-04-05 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836970', 'tblTempUsageDetail_20' ) end [2025-04-05 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 01:59:23] Production.INFO: ==13804== Releasing lock... [2025-04-05 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 01:59:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:00:06 [end_date_ymd] => 2025-04-05 02:00:06 [RateCDR] => 1 ) [2025-04-05 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:00:06' and `end` < '2025-04-05 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:00:19] Production.INFO: count ==1036 [2025-04-05 02:00:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:00:06 - End Time 2025-04-05 02:00:06 [2025-04-05 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836976', 'tblTempUsageDetail_20' ) start [2025-04-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836976', 'tblTempUsageDetail_20' ) end [2025-04-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836976', 'tblTempVendorCDR_20' ) start [2025-04-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836976', 'tblTempVendorCDR_20' ) end [2025-04-05 02:00:19] Production.INFO: ProcessCDR(1,14836976,1,1,2) [2025-04-05 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836976', 'tblTempUsageDetail_20' ) start [2025-04-05 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836976', 'tblTempUsageDetail_20' ) end [2025-04-05 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:00:23] Production.INFO: ==13880== Releasing lock... [2025-04-05 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:01:05 [end_date_ymd] => 2025-04-05 02:01:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:01:05' and `end` < '2025-04-05 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-04-05 02:01:18] Production.INFO: count ==1040 [2025-04-05 02:01:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:01:05 - End Time 2025-04-05 02:01:05 [2025-04-05 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836981', 'tblTempUsageDetail_20' ) start [2025-04-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836981', 'tblTempUsageDetail_20' ) end [2025-04-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836981', 'tblTempVendorCDR_20' ) start [2025-04-05 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836981', 'tblTempVendorCDR_20' ) end [2025-04-05 02:01:18] Production.INFO: ProcessCDR(1,14836981,1,1,2) [2025-04-05 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836981', 'tblTempUsageDetail_20' ) start [2025-04-05 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836981', 'tblTempUsageDetail_20' ) end [2025-04-05 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:01:22] Production.INFO: ==14009== Releasing lock... [2025-04-05 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:01:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:02:06 [end_date_ymd] => 2025-04-05 02:02:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:02:06' and `end` < '2025-04-05 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-04-05 02:02:19] Production.INFO: count ==1036 [2025-04-05 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:02:06 - End Time 2025-04-05 02:02:06 [2025-04-05 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836986', 'tblTempUsageDetail_20' ) start [2025-04-05 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836986', 'tblTempUsageDetail_20' ) end [2025-04-05 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836986', 'tblTempVendorCDR_20' ) start [2025-04-05 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836986', 'tblTempVendorCDR_20' ) end [2025-04-05 02:02:19] Production.INFO: ProcessCDR(1,14836986,1,1,2) [2025-04-05 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836986', 'tblTempUsageDetail_20' ) start [2025-04-05 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836986', 'tblTempUsageDetail_20' ) end [2025-04-05 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:02:23] Production.INFO: ==14165== Releasing lock... [2025-04-05 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:02:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:03:06 [end_date_ymd] => 2025-04-05 02:03:06 [RateCDR] => 1 ) [2025-04-05 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:03:06' and `end` < '2025-04-05 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:03:18] Production.INFO: count ==1036 [2025-04-05 02:03:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:03:06 - End Time 2025-04-05 02:03:06 [2025-04-05 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836991', 'tblTempUsageDetail_20' ) start [2025-04-05 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836991', 'tblTempUsageDetail_20' ) end [2025-04-05 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836991', 'tblTempVendorCDR_20' ) start [2025-04-05 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836991', 'tblTempVendorCDR_20' ) end [2025-04-05 02:03:19] Production.INFO: ProcessCDR(1,14836991,1,1,2) [2025-04-05 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836991', 'tblTempUsageDetail_20' ) start [2025-04-05 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836991', 'tblTempUsageDetail_20' ) end [2025-04-05 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:03:22] Production.INFO: ==14238== Releasing lock... [2025-04-05 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:03:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:04:05 [end_date_ymd] => 2025-04-05 02:04:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:04:05' and `end` < '2025-04-05 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-04-05 02:04:18] Production.INFO: count ==1041 [2025-04-05 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:04:05 - End Time 2025-04-05 02:04:05 [2025-04-05 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836996', 'tblTempUsageDetail_20' ) start [2025-04-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14836996', 'tblTempUsageDetail_20' ) end [2025-04-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836996', 'tblTempVendorCDR_20' ) start [2025-04-05 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14836996', 'tblTempVendorCDR_20' ) end [2025-04-05 02:04:18] Production.INFO: ProcessCDR(1,14836996,1,1,2) [2025-04-05 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14836996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14836996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14836996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14836996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836996', 'tblTempUsageDetail_20' ) start [2025-04-05 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14836996', 'tblTempUsageDetail_20' ) end [2025-04-05 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:04:22] Production.INFO: ==14315== Releasing lock... [2025-04-05 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:05:06 [end_date_ymd] => 2025-04-05 02:05:06 [RateCDR] => 1 ) [2025-04-05 02:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:05:06' and `end` < '2025-04-05 02:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:05:18] Production.INFO: count ==1048 [2025-04-05 02:05:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:05:06 - End Time 2025-04-05 02:05:06 [2025-04-05 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837001', 'tblTempUsageDetail_20' ) start [2025-04-05 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837001', 'tblTempUsageDetail_20' ) end [2025-04-05 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837001', 'tblTempVendorCDR_20' ) start [2025-04-05 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837001', 'tblTempVendorCDR_20' ) end [2025-04-05 02:05:19] Production.INFO: ProcessCDR(1,14837001,1,1,2) [2025-04-05 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837001', 'tblTempUsageDetail_20' ) start [2025-04-05 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837001', 'tblTempUsageDetail_20' ) end [2025-04-05 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:05:23] Production.INFO: ==14388== Releasing lock... [2025-04-05 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:05:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:06:06 [end_date_ymd] => 2025-04-05 02:06:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:06:06' and `end` < '2025-04-05 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-04-05 02:06:18] Production.INFO: count ==1052 [2025-04-05 02:06:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:06:06 - End Time 2025-04-05 02:06:06 [2025-04-05 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837006', 'tblTempUsageDetail_20' ) start [2025-04-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837006', 'tblTempUsageDetail_20' ) end [2025-04-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837006', 'tblTempVendorCDR_20' ) start [2025-04-05 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837006', 'tblTempVendorCDR_20' ) end [2025-04-05 02:06:19] Production.INFO: ProcessCDR(1,14837006,1,1,2) [2025-04-05 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837006', 'tblTempUsageDetail_20' ) start [2025-04-05 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837006', 'tblTempUsageDetail_20' ) end [2025-04-05 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:06:22] Production.INFO: ==14462== Releasing lock... [2025-04-05 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:07:05 [end_date_ymd] => 2025-04-05 02:07:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:07:05' and `end` < '2025-04-05 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-04-05 02:07:18] Production.INFO: count ==1055 [2025-04-05 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:07:05 - End Time 2025-04-05 02:07:05 [2025-04-05 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837011', 'tblTempUsageDetail_20' ) start [2025-04-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837011', 'tblTempUsageDetail_20' ) end [2025-04-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837011', 'tblTempVendorCDR_20' ) start [2025-04-05 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837011', 'tblTempVendorCDR_20' ) end [2025-04-05 02:07:18] Production.INFO: ProcessCDR(1,14837011,1,1,2) [2025-04-05 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837011', 'tblTempUsageDetail_20' ) start [2025-04-05 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837011', 'tblTempUsageDetail_20' ) end [2025-04-05 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:07:22] Production.INFO: ==14531== Releasing lock... [2025-04-05 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:08:06 [end_date_ymd] => 2025-04-05 02:08:06 [RateCDR] => 1 ) [2025-04-05 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:08:06' and `end` < '2025-04-05 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:08:19] Production.INFO: count ==1060 [2025-04-05 02:08:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:08:06 - End Time 2025-04-05 02:08:06 [2025-04-05 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837016', 'tblTempUsageDetail_20' ) start [2025-04-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837016', 'tblTempUsageDetail_20' ) end [2025-04-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837016', 'tblTempVendorCDR_20' ) start [2025-04-05 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837016', 'tblTempVendorCDR_20' ) end [2025-04-05 02:08:19] Production.INFO: ProcessCDR(1,14837016,1,1,2) [2025-04-05 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837016', 'tblTempUsageDetail_20' ) start [2025-04-05 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837016', 'tblTempUsageDetail_20' ) end [2025-04-05 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:08:23] Production.INFO: ==14604== Releasing lock... [2025-04-05 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:08:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:09:05 [end_date_ymd] => 2025-04-05 02:09:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:09:05' and `end` < '2025-04-05 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-04-05 02:09:18] Production.INFO: count ==1062 [2025-04-05 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:09:05 - End Time 2025-04-05 02:09:05 [2025-04-05 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837021', 'tblTempUsageDetail_20' ) start [2025-04-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837021', 'tblTempUsageDetail_20' ) end [2025-04-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837021', 'tblTempVendorCDR_20' ) start [2025-04-05 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837021', 'tblTempVendorCDR_20' ) end [2025-04-05 02:09:18] Production.INFO: ProcessCDR(1,14837021,1,1,2) [2025-04-05 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837021', 'tblTempUsageDetail_20' ) start [2025-04-05 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837021', 'tblTempUsageDetail_20' ) end [2025-04-05 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:09:22] Production.INFO: ==14680== Releasing lock... [2025-04-05 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:09:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:10:07 [end_date_ymd] => 2025-04-05 02:10:07 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:10:07' and `end` < '2025-04-05 02: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-04-05 02:10:20] Production.INFO: count ==1070 [2025-04-05 02:10:20] Production.ERROR: pbx CDR StartTime 2025-04-04 23:10:07 - End Time 2025-04-05 02:10:07 [2025-04-05 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837027', 'tblTempUsageDetail_20' ) start [2025-04-05 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837027', 'tblTempUsageDetail_20' ) end [2025-04-05 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837027', 'tblTempVendorCDR_20' ) start [2025-04-05 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837027', 'tblTempVendorCDR_20' ) end [2025-04-05 02:10:20] Production.INFO: ProcessCDR(1,14837027,1,1,2) [2025-04-05 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837027', 'tblTempUsageDetail_20' ) start [2025-04-05 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837027', 'tblTempUsageDetail_20' ) end [2025-04-05 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:10:23] Production.INFO: ==14754== Releasing lock... [2025-04-05 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:10:23] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:11:06 [end_date_ymd] => 2025-04-05 02:11:06 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:11:06' and `end` < '2025-04-05 02: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-04-05 02:11:19] Production.INFO: count ==1069 [2025-04-05 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:11:06 - End Time 2025-04-05 02:11:06 [2025-04-05 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837032', 'tblTempUsageDetail_20' ) start [2025-04-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837032', 'tblTempUsageDetail_20' ) end [2025-04-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837032', 'tblTempVendorCDR_20' ) start [2025-04-05 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837032', 'tblTempVendorCDR_20' ) end [2025-04-05 02:11:19] Production.INFO: ProcessCDR(1,14837032,1,1,2) [2025-04-05 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837032', 'tblTempUsageDetail_20' ) start [2025-04-05 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837032', 'tblTempUsageDetail_20' ) end [2025-04-05 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:11:23] Production.INFO: ==14826== Releasing lock... [2025-04-05 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:11:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:12:06 [end_date_ymd] => 2025-04-05 02:12:06 [RateCDR] => 1 ) [2025-04-05 02:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:12:06' and `end` < '2025-04-05 02:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:12:18] Production.INFO: count ==1069 [2025-04-05 02:12:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:12:06 - End Time 2025-04-05 02:12:06 [2025-04-05 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837037', 'tblTempUsageDetail_20' ) start [2025-04-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837037', 'tblTempUsageDetail_20' ) end [2025-04-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837037', 'tblTempVendorCDR_20' ) start [2025-04-05 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837037', 'tblTempVendorCDR_20' ) end [2025-04-05 02:12:19] Production.INFO: ProcessCDR(1,14837037,1,1,2) [2025-04-05 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837037', 'tblTempUsageDetail_20' ) start [2025-04-05 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837037', 'tblTempUsageDetail_20' ) end [2025-04-05 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:12:22] Production.INFO: ==14899== Releasing lock... [2025-04-05 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:12:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:13:05 [end_date_ymd] => 2025-04-05 02:13:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:13:05' and `end` < '2025-04-05 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-04-05 02:13:18] Production.INFO: count ==1064 [2025-04-05 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:13:05 - End Time 2025-04-05 02:13:05 [2025-04-05 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837042', 'tblTempUsageDetail_20' ) start [2025-04-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837042', 'tblTempUsageDetail_20' ) end [2025-04-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837042', 'tblTempVendorCDR_20' ) start [2025-04-05 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837042', 'tblTempVendorCDR_20' ) end [2025-04-05 02:13:18] Production.INFO: ProcessCDR(1,14837042,1,1,2) [2025-04-05 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837042', 'tblTempUsageDetail_20' ) start [2025-04-05 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837042', 'tblTempUsageDetail_20' ) end [2025-04-05 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:13:22] Production.INFO: ==14972== Releasing lock... [2025-04-05 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:13:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:14:06 [end_date_ymd] => 2025-04-05 02:14:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:14:06' and `end` < '2025-04-05 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-04-05 02:14:18] Production.INFO: count ==1062 [2025-04-05 02:14:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:14:06 - End Time 2025-04-05 02:14:06 [2025-04-05 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837047', 'tblTempUsageDetail_20' ) start [2025-04-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837047', 'tblTempUsageDetail_20' ) end [2025-04-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837047', 'tblTempVendorCDR_20' ) start [2025-04-05 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837047', 'tblTempVendorCDR_20' ) end [2025-04-05 02:14:19] Production.INFO: ProcessCDR(1,14837047,1,1,2) [2025-04-05 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837047', 'tblTempUsageDetail_20' ) start [2025-04-05 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837047', 'tblTempUsageDetail_20' ) end [2025-04-05 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:14:22] Production.INFO: ==15043== Releasing lock... [2025-04-05 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:14:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:15:05 [end_date_ymd] => 2025-04-05 02:15:05 [RateCDR] => 1 ) [2025-04-05 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:15:05' and `end` < '2025-04-05 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:15:18] Production.INFO: count ==1062 [2025-04-05 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:15:05 - End Time 2025-04-05 02:15:05 [2025-04-05 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837052', 'tblTempUsageDetail_20' ) start [2025-04-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837052', 'tblTempUsageDetail_20' ) end [2025-04-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837052', 'tblTempVendorCDR_20' ) start [2025-04-05 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837052', 'tblTempVendorCDR_20' ) end [2025-04-05 02:15:18] Production.INFO: ProcessCDR(1,14837052,1,1,2) [2025-04-05 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837052', 'tblTempUsageDetail_20' ) start [2025-04-05 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837052', 'tblTempUsageDetail_20' ) end [2025-04-05 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:15:22] Production.INFO: ==15117== Releasing lock... [2025-04-05 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:16:06 [end_date_ymd] => 2025-04-05 02:16:06 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:16:06' and `end` < '2025-04-05 02: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-04-05 02:16:19] Production.INFO: count ==1056 [2025-04-05 02:16:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:16:06 - End Time 2025-04-05 02:16:06 [2025-04-05 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837057', 'tblTempUsageDetail_20' ) start [2025-04-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837057', 'tblTempUsageDetail_20' ) end [2025-04-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837057', 'tblTempVendorCDR_20' ) start [2025-04-05 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837057', 'tblTempVendorCDR_20' ) end [2025-04-05 02:16:19] Production.INFO: ProcessCDR(1,14837057,1,1,2) [2025-04-05 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837057', 'tblTempUsageDetail_20' ) start [2025-04-05 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837057', 'tblTempUsageDetail_20' ) end [2025-04-05 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:16:23] Production.INFO: ==15189== Releasing lock... [2025-04-05 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:16:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:17:05 [end_date_ymd] => 2025-04-05 02:17:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:17:05' and `end` < '2025-04-05 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-04-05 02:17:17] Production.INFO: count ==1055 [2025-04-05 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:17:05 - End Time 2025-04-05 02:17:05 [2025-04-05 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837062', 'tblTempUsageDetail_20' ) start [2025-04-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837062', 'tblTempUsageDetail_20' ) end [2025-04-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837062', 'tblTempVendorCDR_20' ) start [2025-04-05 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837062', 'tblTempVendorCDR_20' ) end [2025-04-05 02:17:18] Production.INFO: ProcessCDR(1,14837062,1,1,2) [2025-04-05 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837062', 'tblTempUsageDetail_20' ) start [2025-04-05 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837062', 'tblTempUsageDetail_20' ) end [2025-04-05 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:17:23] Production.INFO: ==15299== Releasing lock... [2025-04-05 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:17:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:18:05 [end_date_ymd] => 2025-04-05 02:18:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:18:05' and `end` < '2025-04-05 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-04-05 02:18:18] Production.INFO: count ==1054 [2025-04-05 02:18:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:18:05 - End Time 2025-04-05 02:18:05 [2025-04-05 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837067', 'tblTempUsageDetail_20' ) start [2025-04-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837067', 'tblTempUsageDetail_20' ) end [2025-04-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837067', 'tblTempVendorCDR_20' ) start [2025-04-05 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837067', 'tblTempVendorCDR_20' ) end [2025-04-05 02:18:19] Production.INFO: ProcessCDR(1,14837067,1,1,2) [2025-04-05 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837067', 'tblTempUsageDetail_20' ) start [2025-04-05 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837067', 'tblTempUsageDetail_20' ) end [2025-04-05 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:18:22] Production.INFO: ==15370== Releasing lock... [2025-04-05 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:18:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:19:05 [end_date_ymd] => 2025-04-05 02:19:05 [RateCDR] => 1 ) [2025-04-05 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:19:05' and `end` < '2025-04-05 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:19:17] Production.INFO: count ==1055 [2025-04-05 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:19:05 - End Time 2025-04-05 02:19:05 [2025-04-05 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837072', 'tblTempUsageDetail_20' ) start [2025-04-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837072', 'tblTempUsageDetail_20' ) end [2025-04-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837072', 'tblTempVendorCDR_20' ) start [2025-04-05 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837072', 'tblTempVendorCDR_20' ) end [2025-04-05 02:19:18] Production.INFO: ProcessCDR(1,14837072,1,1,2) [2025-04-05 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837072', 'tblTempUsageDetail_20' ) start [2025-04-05 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837072', 'tblTempUsageDetail_20' ) end [2025-04-05 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:19:21] Production.INFO: ==15445== Releasing lock... [2025-04-05 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:19:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:20:06 [end_date_ymd] => 2025-04-05 02:20:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:20:06' and `end` < '2025-04-05 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-04-05 02:20:19] Production.INFO: count ==1057 [2025-04-05 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:20:06 - End Time 2025-04-05 02:20:06 [2025-04-05 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837077', 'tblTempUsageDetail_20' ) start [2025-04-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837077', 'tblTempUsageDetail_20' ) end [2025-04-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837077', 'tblTempVendorCDR_20' ) start [2025-04-05 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837077', 'tblTempVendorCDR_20' ) end [2025-04-05 02:20:19] Production.INFO: ProcessCDR(1,14837077,1,1,2) [2025-04-05 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837077', 'tblTempUsageDetail_20' ) start [2025-04-05 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837077', 'tblTempUsageDetail_20' ) end [2025-04-05 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:20:23] Production.INFO: ==15516== Releasing lock... [2025-04-05 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:20:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:21:05 [end_date_ymd] => 2025-04-05 02:21:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:21:05' and `end` < '2025-04-05 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-04-05 02:21:17] Production.INFO: count ==1051 [2025-04-05 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:21:05 - End Time 2025-04-05 02:21:05 [2025-04-05 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837083', 'tblTempUsageDetail_20' ) start [2025-04-05 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837083', 'tblTempUsageDetail_20' ) end [2025-04-05 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837083', 'tblTempVendorCDR_20' ) start [2025-04-05 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837083', 'tblTempVendorCDR_20' ) end [2025-04-05 02:21:18] Production.INFO: ProcessCDR(1,14837083,1,1,2) [2025-04-05 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837083', 'tblTempUsageDetail_20' ) start [2025-04-05 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837083', 'tblTempUsageDetail_20' ) end [2025-04-05 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:21:21] Production.INFO: ==15592== Releasing lock... [2025-04-05 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:21:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:22:06 [end_date_ymd] => 2025-04-05 02:22:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:22:06' and `end` < '2025-04-05 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-04-05 02:22:19] Production.INFO: count ==1046 [2025-04-05 02:22:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:22:06 - End Time 2025-04-05 02:22:06 [2025-04-05 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837088', 'tblTempUsageDetail_20' ) start [2025-04-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837088', 'tblTempUsageDetail_20' ) end [2025-04-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837088', 'tblTempVendorCDR_20' ) start [2025-04-05 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837088', 'tblTempVendorCDR_20' ) end [2025-04-05 02:22:19] Production.INFO: ProcessCDR(1,14837088,1,1,2) [2025-04-05 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837088', 'tblTempUsageDetail_20' ) start [2025-04-05 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837088', 'tblTempUsageDetail_20' ) end [2025-04-05 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:22:22] Production.INFO: ==15665== Releasing lock... [2025-04-05 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:22:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:23:05 [end_date_ymd] => 2025-04-05 02:23:05 [RateCDR] => 1 ) [2025-04-05 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:23:05' and `end` < '2025-04-05 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:23:18] Production.INFO: count ==1038 [2025-04-05 02:23:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:23:05 - End Time 2025-04-05 02:23:05 [2025-04-05 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837093', 'tblTempUsageDetail_20' ) start [2025-04-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837093', 'tblTempUsageDetail_20' ) end [2025-04-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837093', 'tblTempVendorCDR_20' ) start [2025-04-05 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837093', 'tblTempVendorCDR_20' ) end [2025-04-05 02:23:18] Production.INFO: ProcessCDR(1,14837093,1,1,2) [2025-04-05 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837093', 'tblTempUsageDetail_20' ) start [2025-04-05 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837093', 'tblTempUsageDetail_20' ) end [2025-04-05 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:23:22] Production.INFO: ==15737== Releasing lock... [2025-04-05 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:23:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:24:06 [end_date_ymd] => 2025-04-05 02:24:06 [RateCDR] => 1 ) [2025-04-05 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:24:06' and `end` < '2025-04-05 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:24:18] Production.INFO: count ==1038 [2025-04-05 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:24:06 - End Time 2025-04-05 02:24:06 [2025-04-05 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837098', 'tblTempUsageDetail_20' ) start [2025-04-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837098', 'tblTempUsageDetail_20' ) end [2025-04-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837098', 'tblTempVendorCDR_20' ) start [2025-04-05 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837098', 'tblTempVendorCDR_20' ) end [2025-04-05 02:24:19] Production.INFO: ProcessCDR(1,14837098,1,1,2) [2025-04-05 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837098', 'tblTempUsageDetail_20' ) start [2025-04-05 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837098', 'tblTempUsageDetail_20' ) end [2025-04-05 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:24:22] Production.INFO: ==15810== Releasing lock... [2025-04-05 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:24:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:25:05 [end_date_ymd] => 2025-04-05 02:25:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:25:05' and `end` < '2025-04-05 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-04-05 02:25:18] Production.INFO: count ==1039 [2025-04-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:25:05 - End Time 2025-04-05 02:25:05 [2025-04-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837103', 'tblTempUsageDetail_20' ) start [2025-04-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837103', 'tblTempUsageDetail_20' ) end [2025-04-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837103', 'tblTempVendorCDR_20' ) start [2025-04-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837103', 'tblTempVendorCDR_20' ) end [2025-04-05 02:25:18] Production.INFO: ProcessCDR(1,14837103,1,1,2) [2025-04-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837103', 'tblTempUsageDetail_20' ) start [2025-04-05 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837103', 'tblTempUsageDetail_20' ) end [2025-04-05 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:25:22] Production.INFO: ==15885== Releasing lock... [2025-04-05 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:25:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:26:05 [end_date_ymd] => 2025-04-05 02:26:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:26:05' and `end` < '2025-04-05 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-04-05 02:26:18] Production.INFO: count ==1039 [2025-04-05 02:26:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:26:05 - End Time 2025-04-05 02:26:05 [2025-04-05 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837108', 'tblTempUsageDetail_20' ) start [2025-04-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837108', 'tblTempUsageDetail_20' ) end [2025-04-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837108', 'tblTempVendorCDR_20' ) start [2025-04-05 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837108', 'tblTempVendorCDR_20' ) end [2025-04-05 02:26:19] Production.INFO: ProcessCDR(1,14837108,1,1,2) [2025-04-05 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837108', 'tblTempUsageDetail_20' ) start [2025-04-05 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837108', 'tblTempUsageDetail_20' ) end [2025-04-05 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:26:22] Production.INFO: ==15958== Releasing lock... [2025-04-05 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:27:05 [end_date_ymd] => 2025-04-05 02:27:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:27:05' and `end` < '2025-04-05 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-04-05 02:27:17] Production.INFO: count ==1036 [2025-04-05 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:27:05 - End Time 2025-04-05 02:27:05 [2025-04-05 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837113', 'tblTempUsageDetail_20' ) start [2025-04-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837113', 'tblTempUsageDetail_20' ) end [2025-04-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837113', 'tblTempVendorCDR_20' ) start [2025-04-05 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837113', 'tblTempVendorCDR_20' ) end [2025-04-05 02:27:18] Production.INFO: ProcessCDR(1,14837113,1,1,2) [2025-04-05 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837113', 'tblTempUsageDetail_20' ) start [2025-04-05 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837113', 'tblTempUsageDetail_20' ) end [2025-04-05 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:27:21] Production.INFO: ==16031== Releasing lock... [2025-04-05 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:27:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:28:06 [end_date_ymd] => 2025-04-05 02:28:06 [RateCDR] => 1 ) [2025-04-05 02:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:28:06' and `end` < '2025-04-05 02:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:28:19] Production.INFO: count ==1032 [2025-04-05 02:28:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:28:06 - End Time 2025-04-05 02:28:06 [2025-04-05 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837118', 'tblTempUsageDetail_20' ) start [2025-04-05 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837118', 'tblTempUsageDetail_20' ) end [2025-04-05 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837118', 'tblTempVendorCDR_20' ) start [2025-04-05 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837118', 'tblTempVendorCDR_20' ) end [2025-04-05 02:28:19] Production.INFO: ProcessCDR(1,14837118,1,1,2) [2025-04-05 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837118', 'tblTempUsageDetail_20' ) start [2025-04-05 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837118', 'tblTempUsageDetail_20' ) end [2025-04-05 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:28:23] Production.INFO: ==16107== Releasing lock... [2025-04-05 02:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:28:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:29:05 [end_date_ymd] => 2025-04-05 02:29:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:29:05' and `end` < '2025-04-05 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-04-05 02:29:18] Production.INFO: count ==1033 [2025-04-05 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:29:05 - End Time 2025-04-05 02:29:05 [2025-04-05 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837123', 'tblTempUsageDetail_20' ) start [2025-04-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837123', 'tblTempUsageDetail_20' ) end [2025-04-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837123', 'tblTempVendorCDR_20' ) start [2025-04-05 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837123', 'tblTempVendorCDR_20' ) end [2025-04-05 02:29:18] Production.INFO: ProcessCDR(1,14837123,1,1,2) [2025-04-05 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837123', 'tblTempUsageDetail_20' ) start [2025-04-05 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837123', 'tblTempUsageDetail_20' ) end [2025-04-05 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:29:21] Production.INFO: ==16180== Releasing lock... [2025-04-05 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:29:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:30:06 [end_date_ymd] => 2025-04-05 02:30:06 [RateCDR] => 1 ) [2025-04-05 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:30:06' and `end` < '2025-04-05 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:30:19] Production.INFO: count ==1038 [2025-04-05 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:30:06 - End Time 2025-04-05 02:30:06 [2025-04-05 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837129', 'tblTempUsageDetail_20' ) start [2025-04-05 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837129', 'tblTempUsageDetail_20' ) end [2025-04-05 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837129', 'tblTempVendorCDR_20' ) start [2025-04-05 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837129', 'tblTempVendorCDR_20' ) end [2025-04-05 02:30:19] Production.INFO: ProcessCDR(1,14837129,1,1,2) [2025-04-05 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837129', 'tblTempUsageDetail_20' ) start [2025-04-05 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837129', 'tblTempUsageDetail_20' ) end [2025-04-05 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:30:23] Production.INFO: ==16254== Releasing lock... [2025-04-05 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:30:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:31:05 [end_date_ymd] => 2025-04-05 02:31:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:31:05' and `end` < '2025-04-05 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-04-05 02:31:18] Production.INFO: count ==1036 [2025-04-05 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:31:05 - End Time 2025-04-05 02:31:05 [2025-04-05 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837134', 'tblTempUsageDetail_20' ) start [2025-04-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837134', 'tblTempUsageDetail_20' ) end [2025-04-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837134', 'tblTempVendorCDR_20' ) start [2025-04-05 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837134', 'tblTempVendorCDR_20' ) end [2025-04-05 02:31:18] Production.INFO: ProcessCDR(1,14837134,1,1,2) [2025-04-05 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837134', 'tblTempUsageDetail_20' ) start [2025-04-05 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837134', 'tblTempUsageDetail_20' ) end [2025-04-05 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:31:22] Production.INFO: ==16328== Releasing lock... [2025-04-05 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:31:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:32:05 [end_date_ymd] => 2025-04-05 02:32:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:32:05' and `end` < '2025-04-05 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-04-05 02:32:18] Production.INFO: count ==1039 [2025-04-05 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:32:05 - End Time 2025-04-05 02:32:05 [2025-04-05 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837139', 'tblTempUsageDetail_20' ) start [2025-04-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837139', 'tblTempUsageDetail_20' ) end [2025-04-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837139', 'tblTempVendorCDR_20' ) start [2025-04-05 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837139', 'tblTempVendorCDR_20' ) end [2025-04-05 02:32:18] Production.INFO: ProcessCDR(1,14837139,1,1,2) [2025-04-05 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837139', 'tblTempUsageDetail_20' ) start [2025-04-05 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837139', 'tblTempUsageDetail_20' ) end [2025-04-05 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:32:22] Production.INFO: ==16440== Releasing lock... [2025-04-05 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:32:22] Production.INFO: 36 MB #Memory Used# [2025-04-05 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:33:05 [end_date_ymd] => 2025-04-05 02:33:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:33:05' and `end` < '2025-04-05 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-04-05 02:33:18] Production.INFO: count ==1039 [2025-04-05 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:33:05 - End Time 2025-04-05 02:33:05 [2025-04-05 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837144', 'tblTempUsageDetail_20' ) start [2025-04-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837144', 'tblTempUsageDetail_20' ) end [2025-04-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837144', 'tblTempVendorCDR_20' ) start [2025-04-05 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837144', 'tblTempVendorCDR_20' ) end [2025-04-05 02:33:18] Production.INFO: ProcessCDR(1,14837144,1,1,2) [2025-04-05 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837144', 'tblTempUsageDetail_20' ) start [2025-04-05 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837144', 'tblTempUsageDetail_20' ) end [2025-04-05 02:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:33:23] Production.INFO: ==16510== Releasing lock... [2025-04-05 02:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:33:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:34:06 [end_date_ymd] => 2025-04-05 02:34:06 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:34:06' and `end` < '2025-04-05 02: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-04-05 02:34:19] Production.INFO: count ==990 [2025-04-05 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:34:06 - End Time 2025-04-05 02:34:06 [2025-04-05 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837149', 'tblTempUsageDetail_20' ) start [2025-04-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837149', 'tblTempUsageDetail_20' ) end [2025-04-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837149', 'tblTempVendorCDR_20' ) start [2025-04-05 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837149', 'tblTempVendorCDR_20' ) end [2025-04-05 02:34:19] Production.INFO: ProcessCDR(1,14837149,1,1,2) [2025-04-05 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837149', 'tblTempUsageDetail_20' ) start [2025-04-05 02:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837149', 'tblTempUsageDetail_20' ) end [2025-04-05 02:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:34:25] Production.INFO: ==16584== Releasing lock... [2025-04-05 02:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:34:25] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:35:05 [end_date_ymd] => 2025-04-05 02:35:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:35:05' and `end` < '2025-04-05 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-04-05 02:35:18] Production.INFO: count ==942 [2025-04-05 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:35:05 - End Time 2025-04-05 02:35:05 [2025-04-05 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837154', 'tblTempUsageDetail_20' ) start [2025-04-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837154', 'tblTempUsageDetail_20' ) end [2025-04-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837154', 'tblTempVendorCDR_20' ) start [2025-04-05 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837154', 'tblTempVendorCDR_20' ) end [2025-04-05 02:35:18] Production.INFO: ProcessCDR(1,14837154,1,1,2) [2025-04-05 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837154', 'tblTempUsageDetail_20' ) start [2025-04-05 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837154', 'tblTempUsageDetail_20' ) end [2025-04-05 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:35:21] Production.INFO: ==16658== Releasing lock... [2025-04-05 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:36:05 [end_date_ymd] => 2025-04-05 02:36:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:36:05' and `end` < '2025-04-05 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-04-05 02:36:18] Production.INFO: count ==897 [2025-04-05 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:36:05 - End Time 2025-04-05 02:36:05 [2025-04-05 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837159', 'tblTempUsageDetail_20' ) start [2025-04-05 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837159', 'tblTempUsageDetail_20' ) end [2025-04-05 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837159', 'tblTempVendorCDR_20' ) start [2025-04-05 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837159', 'tblTempVendorCDR_20' ) end [2025-04-05 02:36:19] Production.INFO: ProcessCDR(1,14837159,1,1,2) [2025-04-05 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837159', 'tblTempUsageDetail_20' ) start [2025-04-05 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837159', 'tblTempUsageDetail_20' ) end [2025-04-05 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:36:22] Production.INFO: ==16733== Releasing lock... [2025-04-05 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:36:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:37:05 [end_date_ymd] => 2025-04-05 02:37:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:37:05' and `end` < '2025-04-05 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-04-05 02:37:18] Production.INFO: count ==854 [2025-04-05 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:37:05 - End Time 2025-04-05 02:37:05 [2025-04-05 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837164', 'tblTempUsageDetail_20' ) start [2025-04-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837164', 'tblTempUsageDetail_20' ) end [2025-04-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837164', 'tblTempVendorCDR_20' ) start [2025-04-05 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837164', 'tblTempVendorCDR_20' ) end [2025-04-05 02:37:18] Production.INFO: ProcessCDR(1,14837164,1,1,2) [2025-04-05 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837164', 'tblTempUsageDetail_20' ) start [2025-04-05 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837164', 'tblTempUsageDetail_20' ) end [2025-04-05 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:37:22] Production.INFO: ==16804== Releasing lock... [2025-04-05 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:37:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:38:05 [end_date_ymd] => 2025-04-05 02:38:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:38:05' and `end` < '2025-04-05 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-04-05 02:38:18] Production.INFO: count ==850 [2025-04-05 02:38:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:38:05 - End Time 2025-04-05 02:38:05 [2025-04-05 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837169', 'tblTempUsageDetail_20' ) start [2025-04-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837169', 'tblTempUsageDetail_20' ) end [2025-04-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837169', 'tblTempVendorCDR_20' ) start [2025-04-05 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837169', 'tblTempVendorCDR_20' ) end [2025-04-05 02:38:19] Production.INFO: ProcessCDR(1,14837169,1,1,2) [2025-04-05 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837169', 'tblTempUsageDetail_20' ) start [2025-04-05 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837169', 'tblTempUsageDetail_20' ) end [2025-04-05 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:38:22] Production.INFO: ==16876== Releasing lock... [2025-04-05 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:39:05 [end_date_ymd] => 2025-04-05 02:39:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:39:05' and `end` < '2025-04-05 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-04-05 02:39:18] Production.INFO: count ==850 [2025-04-05 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:39:05 - End Time 2025-04-05 02:39:05 [2025-04-05 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837174', 'tblTempUsageDetail_20' ) start [2025-04-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837174', 'tblTempUsageDetail_20' ) end [2025-04-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837174', 'tblTempVendorCDR_20' ) start [2025-04-05 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837174', 'tblTempVendorCDR_20' ) end [2025-04-05 02:39:18] Production.INFO: ProcessCDR(1,14837174,1,1,2) [2025-04-05 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837174', 'tblTempUsageDetail_20' ) start [2025-04-05 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837174', 'tblTempUsageDetail_20' ) end [2025-04-05 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:39:22] Production.INFO: ==16948== Releasing lock... [2025-04-05 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:39:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:40:06 [end_date_ymd] => 2025-04-05 02:40:06 [RateCDR] => 1 ) [2025-04-05 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:40:06' and `end` < '2025-04-05 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:40:19] Production.INFO: count ==784 [2025-04-05 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:40:06 - End Time 2025-04-05 02:40:06 [2025-04-05 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837180', 'tblTempUsageDetail_20' ) start [2025-04-05 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837180', 'tblTempUsageDetail_20' ) end [2025-04-05 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837180', 'tblTempVendorCDR_20' ) start [2025-04-05 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837180', 'tblTempVendorCDR_20' ) end [2025-04-05 02:40:19] Production.INFO: ProcessCDR(1,14837180,1,1,2) [2025-04-05 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837180', 'tblTempUsageDetail_20' ) start [2025-04-05 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837180', 'tblTempUsageDetail_20' ) end [2025-04-05 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:40:23] Production.INFO: ==17020== Releasing lock... [2025-04-05 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:40:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:41:05 [end_date_ymd] => 2025-04-05 02:41:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:41:05' and `end` < '2025-04-05 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-04-05 02:41:18] Production.INFO: count ==774 [2025-04-05 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:41:05 - End Time 2025-04-05 02:41:05 [2025-04-05 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837185', 'tblTempUsageDetail_20' ) start [2025-04-05 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837185', 'tblTempUsageDetail_20' ) end [2025-04-05 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837185', 'tblTempVendorCDR_20' ) start [2025-04-05 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837185', 'tblTempVendorCDR_20' ) end [2025-04-05 02:41:18] Production.INFO: ProcessCDR(1,14837185,1,1,2) [2025-04-05 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837185', 'tblTempUsageDetail_20' ) start [2025-04-05 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837185', 'tblTempUsageDetail_20' ) end [2025-04-05 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:41:22] Production.INFO: ==17102== Releasing lock... [2025-04-05 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:41:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:42:06 [end_date_ymd] => 2025-04-05 02:42:06 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:42:06' and `end` < '2025-04-05 02: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-04-05 02:42:18] Production.INFO: count ==783 [2025-04-05 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:42:06 - End Time 2025-04-05 02:42:06 [2025-04-05 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837190', 'tblTempUsageDetail_20' ) start [2025-04-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837190', 'tblTempUsageDetail_20' ) end [2025-04-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837190', 'tblTempVendorCDR_20' ) start [2025-04-05 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837190', 'tblTempVendorCDR_20' ) end [2025-04-05 02:42:19] Production.INFO: ProcessCDR(1,14837190,1,1,2) [2025-04-05 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837190', 'tblTempUsageDetail_20' ) start [2025-04-05 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837190', 'tblTempUsageDetail_20' ) end [2025-04-05 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:42:22] Production.INFO: ==17174== Releasing lock... [2025-04-05 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:42:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:43:05 [end_date_ymd] => 2025-04-05 02:43:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:43:05' and `end` < '2025-04-05 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-04-05 02:43:18] Production.INFO: count ==783 [2025-04-05 02:43:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:43:05 - End Time 2025-04-05 02:43:05 [2025-04-05 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837195', 'tblTempUsageDetail_20' ) start [2025-04-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837195', 'tblTempUsageDetail_20' ) end [2025-04-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837195', 'tblTempVendorCDR_20' ) start [2025-04-05 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837195', 'tblTempVendorCDR_20' ) end [2025-04-05 02:43:18] Production.INFO: ProcessCDR(1,14837195,1,1,2) [2025-04-05 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837195', 'tblTempUsageDetail_20' ) start [2025-04-05 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837195', 'tblTempUsageDetail_20' ) end [2025-04-05 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:43:22] Production.INFO: ==17245== Releasing lock... [2025-04-05 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:43:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:44:06 [end_date_ymd] => 2025-04-05 02:44:06 [RateCDR] => 1 ) [2025-04-05 02: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-04-04 23:44:06' and `end` < '2025-04-05 02: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-04-05 02:44:18] Production.INFO: count ==783 [2025-04-05 02:44:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:44:06 - End Time 2025-04-05 02:44:06 [2025-04-05 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837200', 'tblTempUsageDetail_20' ) start [2025-04-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837200', 'tblTempUsageDetail_20' ) end [2025-04-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837200', 'tblTempVendorCDR_20' ) start [2025-04-05 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837200', 'tblTempVendorCDR_20' ) end [2025-04-05 02:44:19] Production.INFO: ProcessCDR(1,14837200,1,1,2) [2025-04-05 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837200', 'tblTempUsageDetail_20' ) start [2025-04-05 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837200', 'tblTempUsageDetail_20' ) end [2025-04-05 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:44:22] Production.INFO: ==17316== Releasing lock... [2025-04-05 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:45:05 [end_date_ymd] => 2025-04-05 02:45:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:45:05' and `end` < '2025-04-05 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-04-05 02:45:17] Production.INFO: count ==783 [2025-04-05 02:45:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:45:05 - End Time 2025-04-05 02:45:05 [2025-04-05 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837205', 'tblTempUsageDetail_20' ) start [2025-04-05 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837205', 'tblTempUsageDetail_20' ) end [2025-04-05 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837205', 'tblTempVendorCDR_20' ) start [2025-04-05 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837205', 'tblTempVendorCDR_20' ) end [2025-04-05 02:45:18] Production.INFO: ProcessCDR(1,14837205,1,1,2) [2025-04-05 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837205', 'tblTempUsageDetail_20' ) start [2025-04-05 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837205', 'tblTempUsageDetail_20' ) end [2025-04-05 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:45:21] Production.INFO: ==17387== Releasing lock... [2025-04-05 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:45:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:46:05 [end_date_ymd] => 2025-04-05 02:46:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:46:05' and `end` < '2025-04-05 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-04-05 02:46:18] Production.INFO: count ==789 [2025-04-05 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:46:05 - End Time 2025-04-05 02:46:05 [2025-04-05 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837210', 'tblTempUsageDetail_20' ) start [2025-04-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837210', 'tblTempUsageDetail_20' ) end [2025-04-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837210', 'tblTempVendorCDR_20' ) start [2025-04-05 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837210', 'tblTempVendorCDR_20' ) end [2025-04-05 02:46:18] Production.INFO: ProcessCDR(1,14837210,1,1,2) [2025-04-05 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837210', 'tblTempUsageDetail_20' ) start [2025-04-05 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837210', 'tblTempUsageDetail_20' ) end [2025-04-05 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:46:21] Production.INFO: ==17461== Releasing lock... [2025-04-05 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:46:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:47:06 [end_date_ymd] => 2025-04-05 02:47:06 [RateCDR] => 1 ) [2025-04-05 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:47:06' and `end` < '2025-04-05 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:47:19] Production.INFO: count ==794 [2025-04-05 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:47:06 - End Time 2025-04-05 02:47:06 [2025-04-05 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837215', 'tblTempUsageDetail_20' ) start [2025-04-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837215', 'tblTempUsageDetail_20' ) end [2025-04-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837215', 'tblTempVendorCDR_20' ) start [2025-04-05 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837215', 'tblTempVendorCDR_20' ) end [2025-04-05 02:47:19] Production.INFO: ProcessCDR(1,14837215,1,1,2) [2025-04-05 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837215', 'tblTempUsageDetail_20' ) start [2025-04-05 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837215', 'tblTempUsageDetail_20' ) end [2025-04-05 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:47:23] Production.INFO: ==17538== Releasing lock... [2025-04-05 02:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:47:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:48:05 [end_date_ymd] => 2025-04-05 02:48:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:48:05' and `end` < '2025-04-05 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-04-05 02:48:18] Production.INFO: count ==792 [2025-04-05 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:48:05 - End Time 2025-04-05 02:48:05 [2025-04-05 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837220', 'tblTempUsageDetail_20' ) start [2025-04-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837220', 'tblTempUsageDetail_20' ) end [2025-04-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837220', 'tblTempVendorCDR_20' ) start [2025-04-05 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837220', 'tblTempVendorCDR_20' ) end [2025-04-05 02:48:18] Production.INFO: ProcessCDR(1,14837220,1,1,2) [2025-04-05 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837220', 'tblTempUsageDetail_20' ) start [2025-04-05 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837220', 'tblTempUsageDetail_20' ) end [2025-04-05 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:48:22] Production.INFO: ==17647== Releasing lock... [2025-04-05 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:48:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:49:06 [end_date_ymd] => 2025-04-05 02:49:06 [RateCDR] => 1 ) [2025-04-05 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:49:06' and `end` < '2025-04-05 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:49:19] Production.INFO: count ==791 [2025-04-05 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:49:06 - End Time 2025-04-05 02:49:06 [2025-04-05 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837225', 'tblTempUsageDetail_20' ) start [2025-04-05 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837225', 'tblTempUsageDetail_20' ) end [2025-04-05 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837225', 'tblTempVendorCDR_20' ) start [2025-04-05 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837225', 'tblTempVendorCDR_20' ) end [2025-04-05 02:49:19] Production.INFO: ProcessCDR(1,14837225,1,1,2) [2025-04-05 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837225', 'tblTempUsageDetail_20' ) start [2025-04-05 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837225', 'tblTempUsageDetail_20' ) end [2025-04-05 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:49:22] Production.INFO: ==17722== Releasing lock... [2025-04-05 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:50:06 [end_date_ymd] => 2025-04-05 02:50:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:50:06' and `end` < '2025-04-05 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-04-05 02:50:19] Production.INFO: count ==807 [2025-04-05 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:50:06 - End Time 2025-04-05 02:50:06 [2025-04-05 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837230', 'tblTempUsageDetail_20' ) start [2025-04-05 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837230', 'tblTempUsageDetail_20' ) end [2025-04-05 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837230', 'tblTempVendorCDR_20' ) start [2025-04-05 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837230', 'tblTempVendorCDR_20' ) end [2025-04-05 02:50:19] Production.INFO: ProcessCDR(1,14837230,1,1,2) [2025-04-05 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837230', 'tblTempUsageDetail_20' ) start [2025-04-05 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837230', 'tblTempUsageDetail_20' ) end [2025-04-05 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:50:22] Production.INFO: ==17798== Releasing lock... [2025-04-05 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:51:05 [end_date_ymd] => 2025-04-05 02:51:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:51:05' and `end` < '2025-04-05 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-04-05 02:51:18] Production.INFO: count ==807 [2025-04-05 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:51:05 - End Time 2025-04-05 02:51:05 [2025-04-05 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837236', 'tblTempUsageDetail_20' ) start [2025-04-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837236', 'tblTempUsageDetail_20' ) end [2025-04-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837236', 'tblTempVendorCDR_20' ) start [2025-04-05 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837236', 'tblTempVendorCDR_20' ) end [2025-04-05 02:51:18] Production.INFO: ProcessCDR(1,14837236,1,1,2) [2025-04-05 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837236', 'tblTempUsageDetail_20' ) start [2025-04-05 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837236', 'tblTempUsageDetail_20' ) end [2025-04-05 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:51:23] Production.INFO: ==17875== Releasing lock... [2025-04-05 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:51:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:52:05 [end_date_ymd] => 2025-04-05 02:52:05 [RateCDR] => 1 ) [2025-04-05 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:52:05' and `end` < '2025-04-05 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:52:18] Production.INFO: count ==810 [2025-04-05 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:52:05 - End Time 2025-04-05 02:52:05 [2025-04-05 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837241', 'tblTempUsageDetail_20' ) start [2025-04-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837241', 'tblTempUsageDetail_20' ) end [2025-04-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837241', 'tblTempVendorCDR_20' ) start [2025-04-05 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837241', 'tblTempVendorCDR_20' ) end [2025-04-05 02:52:18] Production.INFO: ProcessCDR(1,14837241,1,1,2) [2025-04-05 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837241', 'tblTempUsageDetail_20' ) start [2025-04-05 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837241', 'tblTempUsageDetail_20' ) end [2025-04-05 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:52:22] Production.INFO: ==17948== Releasing lock... [2025-04-05 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:52:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:53:06 [end_date_ymd] => 2025-04-05 02:53:06 [RateCDR] => 1 ) [2025-04-05 02:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:53:06' and `end` < '2025-04-05 02:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:53:19] Production.INFO: count ==807 [2025-04-05 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:53:06 - End Time 2025-04-05 02:53:06 [2025-04-05 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837246', 'tblTempUsageDetail_20' ) start [2025-04-05 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837246', 'tblTempUsageDetail_20' ) end [2025-04-05 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837246', 'tblTempVendorCDR_20' ) start [2025-04-05 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837246', 'tblTempVendorCDR_20' ) end [2025-04-05 02:53:19] Production.INFO: ProcessCDR(1,14837246,1,1,2) [2025-04-05 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837246', 'tblTempUsageDetail_20' ) start [2025-04-05 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837246', 'tblTempUsageDetail_20' ) end [2025-04-05 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:53:22] Production.INFO: ==18019== Releasing lock... [2025-04-05 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:53:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:54:05 [end_date_ymd] => 2025-04-05 02:54:05 [RateCDR] => 1 ) [2025-04-05 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:54:05' and `end` < '2025-04-05 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:54:18] Production.INFO: count ==802 [2025-04-05 02:54:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:54:05 - End Time 2025-04-05 02:54:05 [2025-04-05 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837251', 'tblTempUsageDetail_20' ) start [2025-04-05 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837251', 'tblTempUsageDetail_20' ) end [2025-04-05 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837251', 'tblTempVendorCDR_20' ) start [2025-04-05 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837251', 'tblTempVendorCDR_20' ) end [2025-04-05 02:54:18] Production.INFO: ProcessCDR(1,14837251,1,1,2) [2025-04-05 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837251', 'tblTempUsageDetail_20' ) start [2025-04-05 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837251', 'tblTempUsageDetail_20' ) end [2025-04-05 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:54:21] Production.INFO: ==18090== Releasing lock... [2025-04-05 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:55:05 [end_date_ymd] => 2025-04-05 02:55:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:55:05' and `end` < '2025-04-05 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-04-05 02:55:18] Production.INFO: count ==799 [2025-04-05 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:55:05 - End Time 2025-04-05 02:55:05 [2025-04-05 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837256', 'tblTempUsageDetail_20' ) start [2025-04-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837256', 'tblTempUsageDetail_20' ) end [2025-04-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837256', 'tblTempVendorCDR_20' ) start [2025-04-05 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837256', 'tblTempVendorCDR_20' ) end [2025-04-05 02:55:18] Production.INFO: ProcessCDR(1,14837256,1,1,2) [2025-04-05 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837256', 'tblTempUsageDetail_20' ) start [2025-04-05 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837256', 'tblTempUsageDetail_20' ) end [2025-04-05 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:55:22] Production.INFO: ==18163== Releasing lock... [2025-04-05 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:55:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:56:06 [end_date_ymd] => 2025-04-05 02:56:06 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:56:06' and `end` < '2025-04-05 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-04-05 02:56:18] Production.INFO: count ==797 [2025-04-05 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-04 23:56:06 - End Time 2025-04-05 02:56:06 [2025-04-05 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837261', 'tblTempUsageDetail_20' ) start [2025-04-05 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837261', 'tblTempUsageDetail_20' ) end [2025-04-05 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837261', 'tblTempVendorCDR_20' ) start [2025-04-05 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837261', 'tblTempVendorCDR_20' ) end [2025-04-05 02:56:19] Production.INFO: ProcessCDR(1,14837261,1,1,2) [2025-04-05 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837261', 'tblTempUsageDetail_20' ) start [2025-04-05 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837261', 'tblTempUsageDetail_20' ) end [2025-04-05 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:56:22] Production.INFO: ==18240== Releasing lock... [2025-04-05 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:56:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:57:05 [end_date_ymd] => 2025-04-05 02:57:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:57:05' and `end` < '2025-04-05 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-04-05 02:57:18] Production.INFO: count ==795 [2025-04-05 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:57:05 - End Time 2025-04-05 02:57:05 [2025-04-05 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837266', 'tblTempUsageDetail_20' ) start [2025-04-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837266', 'tblTempUsageDetail_20' ) end [2025-04-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837266', 'tblTempVendorCDR_20' ) start [2025-04-05 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837266', 'tblTempVendorCDR_20' ) end [2025-04-05 02:57:18] Production.INFO: ProcessCDR(1,14837266,1,1,2) [2025-04-05 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837266', 'tblTempUsageDetail_20' ) start [2025-04-05 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837266', 'tblTempUsageDetail_20' ) end [2025-04-05 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:57:22] Production.INFO: ==18314== Releasing lock... [2025-04-05 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:57:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:58:05 [end_date_ymd] => 2025-04-05 02:58:05 [RateCDR] => 1 ) [2025-04-05 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-04-04 23:58:05' and `end` < '2025-04-05 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-04-05 02:58:18] Production.INFO: count ==793 [2025-04-05 02:58:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:58:05 - End Time 2025-04-05 02:58:05 [2025-04-05 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837271', 'tblTempUsageDetail_20' ) start [2025-04-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837271', 'tblTempUsageDetail_20' ) end [2025-04-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837271', 'tblTempVendorCDR_20' ) start [2025-04-05 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837271', 'tblTempVendorCDR_20' ) end [2025-04-05 02:58:18] Production.INFO: ProcessCDR(1,14837271,1,1,2) [2025-04-05 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837271', 'tblTempUsageDetail_20' ) start [2025-04-05 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837271', 'tblTempUsageDetail_20' ) end [2025-04-05 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:58:22] Production.INFO: ==18389== Releasing lock... [2025-04-05 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:58:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-04 23:59:05 [end_date_ymd] => 2025-04-05 02:59:05 [RateCDR] => 1 ) [2025-04-05 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-04 23:59:05' and `end` < '2025-04-05 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 02:59:17] Production.INFO: count ==792 [2025-04-05 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-04 23:59:05 - End Time 2025-04-05 02:59:05 [2025-04-05 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837276', 'tblTempUsageDetail_20' ) start [2025-04-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837276', 'tblTempUsageDetail_20' ) end [2025-04-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837276', 'tblTempVendorCDR_20' ) start [2025-04-05 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837276', 'tblTempVendorCDR_20' ) end [2025-04-05 02:59:18] Production.INFO: ProcessCDR(1,14837276,1,1,2) [2025-04-05 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837276', 'tblTempUsageDetail_20' ) start [2025-04-05 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837276', 'tblTempUsageDetail_20' ) end [2025-04-05 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 02:59:21] Production.INFO: ==18462== Releasing lock... [2025-04-05 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 02:59:21] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:00:06 [end_date_ymd] => 2025-04-05 03:00:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:00:06' and `end` < '2025-04-05 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-04-05 03:00:19] Production.INFO: count ==786 [2025-04-05 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:00:06 - End Time 2025-04-05 03:00:06 [2025-04-05 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837282', 'tblTempUsageDetail_20' ) start [2025-04-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837282', 'tblTempUsageDetail_20' ) end [2025-04-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837282', 'tblTempVendorCDR_20' ) start [2025-04-05 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837282', 'tblTempVendorCDR_20' ) end [2025-04-05 03:00:19] Production.INFO: ProcessCDR(1,14837282,1,1,2) [2025-04-05 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837282', 'tblTempUsageDetail_20' ) start [2025-04-05 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837282', 'tblTempUsageDetail_20' ) end [2025-04-05 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:00:22] Production.INFO: ==18536== Releasing lock... [2025-04-05 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:00:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:01:05 [end_date_ymd] => 2025-04-05 03:01:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:01:05' and `end` < '2025-04-05 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-04-05 03:01:18] Production.INFO: count ==782 [2025-04-05 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:01:05 - End Time 2025-04-05 03:01:05 [2025-04-05 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837287', 'tblTempUsageDetail_20' ) start [2025-04-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837287', 'tblTempUsageDetail_20' ) end [2025-04-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837287', 'tblTempVendorCDR_20' ) start [2025-04-05 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837287', 'tblTempVendorCDR_20' ) end [2025-04-05 03:01:18] Production.INFO: ProcessCDR(1,14837287,1,1,2) [2025-04-05 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837287', 'tblTempUsageDetail_20' ) start [2025-04-05 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837287', 'tblTempUsageDetail_20' ) end [2025-04-05 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:01:22] Production.INFO: ==18627== Releasing lock... [2025-04-05 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:01:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:02:06 [end_date_ymd] => 2025-04-05 03:02:06 [RateCDR] => 1 ) [2025-04-05 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:02:06' and `end` < '2025-04-05 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:02:18] Production.INFO: count ==785 [2025-04-05 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:02:06 - End Time 2025-04-05 03:02:06 [2025-04-05 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837292', 'tblTempUsageDetail_20' ) start [2025-04-05 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837292', 'tblTempUsageDetail_20' ) end [2025-04-05 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837292', 'tblTempVendorCDR_20' ) start [2025-04-05 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837292', 'tblTempVendorCDR_20' ) end [2025-04-05 03:02:19] Production.INFO: ProcessCDR(1,14837292,1,1,2) [2025-04-05 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837292', 'tblTempUsageDetail_20' ) start [2025-04-05 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837292', 'tblTempUsageDetail_20' ) end [2025-04-05 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:02:22] Production.INFO: ==18778== Releasing lock... [2025-04-05 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:02:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:03:05 [end_date_ymd] => 2025-04-05 03:03:05 [RateCDR] => 1 ) [2025-04-05 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:03:05' and `end` < '2025-04-05 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:03:17] Production.INFO: count ==785 [2025-04-05 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:03:05 - End Time 2025-04-05 03:03:05 [2025-04-05 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837297', 'tblTempUsageDetail_20' ) start [2025-04-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837297', 'tblTempUsageDetail_20' ) end [2025-04-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837297', 'tblTempVendorCDR_20' ) start [2025-04-05 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837297', 'tblTempVendorCDR_20' ) end [2025-04-05 03:03:18] Production.INFO: ProcessCDR(1,14837297,1,1,2) [2025-04-05 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837297', 'tblTempUsageDetail_20' ) start [2025-04-05 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837297', 'tblTempUsageDetail_20' ) end [2025-04-05 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:03:21] Production.INFO: ==18887== Releasing lock... [2025-04-05 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:03:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:04:05 [end_date_ymd] => 2025-04-05 03:04:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:04:05' and `end` < '2025-04-05 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-04-05 03:04:18] Production.INFO: count ==788 [2025-04-05 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:04:05 - End Time 2025-04-05 03:04:05 [2025-04-05 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837302', 'tblTempUsageDetail_20' ) start [2025-04-05 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837302', 'tblTempUsageDetail_20' ) end [2025-04-05 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837302', 'tblTempVendorCDR_20' ) start [2025-04-05 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837302', 'tblTempVendorCDR_20' ) end [2025-04-05 03:04:18] Production.INFO: ProcessCDR(1,14837302,1,1,2) [2025-04-05 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837302', 'tblTempUsageDetail_20' ) start [2025-04-05 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837302', 'tblTempUsageDetail_20' ) end [2025-04-05 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:04:22] Production.INFO: ==18963== Releasing lock... [2025-04-05 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:05:05 [end_date_ymd] => 2025-04-05 03:05:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:05:05' and `end` < '2025-04-05 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-04-05 03:05:18] Production.INFO: count ==786 [2025-04-05 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:05:05 - End Time 2025-04-05 03:05:05 [2025-04-05 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837307', 'tblTempUsageDetail_20' ) start [2025-04-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837307', 'tblTempUsageDetail_20' ) end [2025-04-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837307', 'tblTempVendorCDR_20' ) start [2025-04-05 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837307', 'tblTempVendorCDR_20' ) end [2025-04-05 03:05:19] Production.INFO: ProcessCDR(1,14837307,1,1,2) [2025-04-05 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837307', 'tblTempUsageDetail_20' ) start [2025-04-05 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837307', 'tblTempUsageDetail_20' ) end [2025-04-05 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:05:22] Production.INFO: ==19031== Releasing lock... [2025-04-05 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:05:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:06:05 [end_date_ymd] => 2025-04-05 03:06:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:06:05' and `end` < '2025-04-05 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-04-05 03:06:18] Production.INFO: count ==791 [2025-04-05 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:06:05 - End Time 2025-04-05 03:06:05 [2025-04-05 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837312', 'tblTempUsageDetail_20' ) start [2025-04-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837312', 'tblTempUsageDetail_20' ) end [2025-04-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837312', 'tblTempVendorCDR_20' ) start [2025-04-05 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837312', 'tblTempVendorCDR_20' ) end [2025-04-05 03:06:18] Production.INFO: ProcessCDR(1,14837312,1,1,2) [2025-04-05 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837312', 'tblTempUsageDetail_20' ) start [2025-04-05 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837312', 'tblTempUsageDetail_20' ) end [2025-04-05 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:06:21] Production.INFO: ==19187== Releasing lock... [2025-04-05 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:06:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:07:06 [end_date_ymd] => 2025-04-05 03:07:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:07:06' and `end` < '2025-04-05 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-04-05 03:07:18] Production.INFO: count ==797 [2025-04-05 03:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:07:06 - End Time 2025-04-05 03:07:06 [2025-04-05 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837317', 'tblTempUsageDetail_20' ) start [2025-04-05 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837317', 'tblTempUsageDetail_20' ) end [2025-04-05 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837317', 'tblTempVendorCDR_20' ) start [2025-04-05 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837317', 'tblTempVendorCDR_20' ) end [2025-04-05 03:07:19] Production.INFO: ProcessCDR(1,14837317,1,1,2) [2025-04-05 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837317', 'tblTempUsageDetail_20' ) start [2025-04-05 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837317', 'tblTempUsageDetail_20' ) end [2025-04-05 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:07:22] Production.INFO: ==19264== Releasing lock... [2025-04-05 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:07:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:08:05 [end_date_ymd] => 2025-04-05 03:08:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:08:05' and `end` < '2025-04-05 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-04-05 03:08:18] Production.INFO: count ==794 [2025-04-05 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:08:05 - End Time 2025-04-05 03:08:05 [2025-04-05 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837322', 'tblTempUsageDetail_20' ) start [2025-04-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837322', 'tblTempUsageDetail_20' ) end [2025-04-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837322', 'tblTempVendorCDR_20' ) start [2025-04-05 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837322', 'tblTempVendorCDR_20' ) end [2025-04-05 03:08:18] Production.INFO: ProcessCDR(1,14837322,1,1,2) [2025-04-05 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837322', 'tblTempUsageDetail_20' ) start [2025-04-05 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837322', 'tblTempUsageDetail_20' ) end [2025-04-05 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:08:22] Production.INFO: ==19351== Releasing lock... [2025-04-05 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:08:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:09:05 [end_date_ymd] => 2025-04-05 03:09:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:09:05' and `end` < '2025-04-05 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-04-05 03:09:18] Production.INFO: count ==794 [2025-04-05 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:09:05 - End Time 2025-04-05 03:09:05 [2025-04-05 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837327', 'tblTempUsageDetail_20' ) start [2025-04-05 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837327', 'tblTempUsageDetail_20' ) end [2025-04-05 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837327', 'tblTempVendorCDR_20' ) start [2025-04-05 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837327', 'tblTempVendorCDR_20' ) end [2025-04-05 03:09:18] Production.INFO: ProcessCDR(1,14837327,1,1,2) [2025-04-05 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837327', 'tblTempUsageDetail_20' ) start [2025-04-05 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837327', 'tblTempUsageDetail_20' ) end [2025-04-05 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:09:22] Production.INFO: ==19522== Releasing lock... [2025-04-05 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:10:06 [end_date_ymd] => 2025-04-05 03:10:06 [RateCDR] => 1 ) [2025-04-05 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:10:06' and `end` < '2025-04-05 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:10:18] Production.INFO: count ==788 [2025-04-05 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:10:06 - End Time 2025-04-05 03:10:06 [2025-04-05 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837333', 'tblTempUsageDetail_20' ) start [2025-04-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837333', 'tblTempUsageDetail_20' ) end [2025-04-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837333', 'tblTempVendorCDR_20' ) start [2025-04-05 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837333', 'tblTempVendorCDR_20' ) end [2025-04-05 03:10:19] Production.INFO: ProcessCDR(1,14837333,1,1,2) [2025-04-05 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837333', 'tblTempUsageDetail_20' ) start [2025-04-05 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837333', 'tblTempUsageDetail_20' ) end [2025-04-05 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:10:22] Production.INFO: ==19594== Releasing lock... [2025-04-05 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:10:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:11:05 [end_date_ymd] => 2025-04-05 03:11:05 [RateCDR] => 1 ) [2025-04-05 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:11:05' and `end` < '2025-04-05 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:11:18] Production.INFO: count ==783 [2025-04-05 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:11:05 - End Time 2025-04-05 03:11:05 [2025-04-05 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837338', 'tblTempUsageDetail_20' ) start [2025-04-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837338', 'tblTempUsageDetail_20' ) end [2025-04-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837338', 'tblTempVendorCDR_20' ) start [2025-04-05 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837338', 'tblTempVendorCDR_20' ) end [2025-04-05 03:11:18] Production.INFO: ProcessCDR(1,14837338,1,1,2) [2025-04-05 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837338', 'tblTempUsageDetail_20' ) start [2025-04-05 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837338', 'tblTempUsageDetail_20' ) end [2025-04-05 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:11:22] Production.INFO: ==19668== Releasing lock... [2025-04-05 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:11:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:12:05 [end_date_ymd] => 2025-04-05 03:12:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:12:05' and `end` < '2025-04-05 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-04-05 03:12:17] Production.INFO: count ==783 [2025-04-05 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:12:05 - End Time 2025-04-05 03:12:05 [2025-04-05 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837343', 'tblTempUsageDetail_20' ) start [2025-04-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837343', 'tblTempUsageDetail_20' ) end [2025-04-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837343', 'tblTempVendorCDR_20' ) start [2025-04-05 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837343', 'tblTempVendorCDR_20' ) end [2025-04-05 03:12:18] Production.INFO: ProcessCDR(1,14837343,1,1,2) [2025-04-05 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837343', 'tblTempUsageDetail_20' ) start [2025-04-05 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837343', 'tblTempUsageDetail_20' ) end [2025-04-05 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:12:21] Production.INFO: ==19739== Releasing lock... [2025-04-05 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:12:21] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:13:05 [end_date_ymd] => 2025-04-05 03:13:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:13:05' and `end` < '2025-04-05 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-04-05 03:13:18] Production.INFO: count ==782 [2025-04-05 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:13:05 - End Time 2025-04-05 03:13:05 [2025-04-05 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837348', 'tblTempUsageDetail_20' ) start [2025-04-05 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837348', 'tblTempUsageDetail_20' ) end [2025-04-05 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837348', 'tblTempVendorCDR_20' ) start [2025-04-05 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837348', 'tblTempVendorCDR_20' ) end [2025-04-05 03:13:18] Production.INFO: ProcessCDR(1,14837348,1,1,2) [2025-04-05 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837348', 'tblTempUsageDetail_20' ) start [2025-04-05 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837348', 'tblTempUsageDetail_20' ) end [2025-04-05 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:13:23] Production.INFO: ==19888== Releasing lock... [2025-04-05 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:13:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:14:06 [end_date_ymd] => 2025-04-05 03:14:06 [RateCDR] => 1 ) [2025-04-05 03: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-04-05 00:14:06' and `end` < '2025-04-05 03: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-04-05 03:14:19] Production.INFO: count ==781 [2025-04-05 03:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:14:06 - End Time 2025-04-05 03:14:06 [2025-04-05 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837353', 'tblTempUsageDetail_20' ) start [2025-04-05 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837353', 'tblTempUsageDetail_20' ) end [2025-04-05 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837353', 'tblTempVendorCDR_20' ) start [2025-04-05 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837353', 'tblTempVendorCDR_20' ) end [2025-04-05 03:14:19] Production.INFO: ProcessCDR(1,14837353,1,1,2) [2025-04-05 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837353', 'tblTempUsageDetail_20' ) start [2025-04-05 03:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837353', 'tblTempUsageDetail_20' ) end [2025-04-05 03:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:14:24] Production.INFO: ==19967== Releasing lock... [2025-04-05 03:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:14:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:15:05 [end_date_ymd] => 2025-04-05 03:15:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:15:05' and `end` < '2025-04-05 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-04-05 03:15:18] Production.INFO: count ==783 [2025-04-05 03:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:15:05 - End Time 2025-04-05 03:15:05 [2025-04-05 03:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837358', 'tblTempUsageDetail_20' ) start [2025-04-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837358', 'tblTempUsageDetail_20' ) end [2025-04-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837358', 'tblTempVendorCDR_20' ) start [2025-04-05 03:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837358', 'tblTempVendorCDR_20' ) end [2025-04-05 03:15:19] Production.INFO: ProcessCDR(1,14837358,1,1,2) [2025-04-05 03:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837358', 'tblTempUsageDetail_20' ) start [2025-04-05 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837358', 'tblTempUsageDetail_20' ) end [2025-04-05 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:15:22] Production.INFO: ==20037== Releasing lock... [2025-04-05 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:15:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:16:05 [end_date_ymd] => 2025-04-05 03:16:05 [RateCDR] => 1 ) [2025-04-05 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:16:05' and `end` < '2025-04-05 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:16:18] Production.INFO: count ==783 [2025-04-05 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:16:05 - End Time 2025-04-05 03:16:05 [2025-04-05 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837363', 'tblTempUsageDetail_20' ) start [2025-04-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837363', 'tblTempUsageDetail_20' ) end [2025-04-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837363', 'tblTempVendorCDR_20' ) start [2025-04-05 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837363', 'tblTempVendorCDR_20' ) end [2025-04-05 03:16:18] Production.INFO: ProcessCDR(1,14837363,1,1,2) [2025-04-05 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837363', 'tblTempUsageDetail_20' ) start [2025-04-05 03:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837363', 'tblTempUsageDetail_20' ) end [2025-04-05 03:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:16:23] Production.INFO: ==20190== Releasing lock... [2025-04-05 03:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:16:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:17:05 [end_date_ymd] => 2025-04-05 03:17:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:17:05' and `end` < '2025-04-05 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-04-05 03:17:18] Production.INFO: count ==784 [2025-04-05 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:17:05 - End Time 2025-04-05 03:17:05 [2025-04-05 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837368', 'tblTempUsageDetail_20' ) start [2025-04-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837368', 'tblTempUsageDetail_20' ) end [2025-04-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837368', 'tblTempVendorCDR_20' ) start [2025-04-05 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837368', 'tblTempVendorCDR_20' ) end [2025-04-05 03:17:18] Production.INFO: ProcessCDR(1,14837368,1,1,2) [2025-04-05 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837368', 'tblTempUsageDetail_20' ) start [2025-04-05 03:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837368', 'tblTempUsageDetail_20' ) end [2025-04-05 03:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:17:24] Production.INFO: ==20264== Releasing lock... [2025-04-05 03:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:17:24] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:18:06 [end_date_ymd] => 2025-04-05 03:18:06 [RateCDR] => 1 ) [2025-04-05 03:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:18:06' and `end` < '2025-04-05 03:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:18:19] Production.INFO: count ==789 [2025-04-05 03:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:18:06 - End Time 2025-04-05 03:18:06 [2025-04-05 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837373', 'tblTempUsageDetail_20' ) start [2025-04-05 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837373', 'tblTempUsageDetail_20' ) end [2025-04-05 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837373', 'tblTempVendorCDR_20' ) start [2025-04-05 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837373', 'tblTempVendorCDR_20' ) end [2025-04-05 03:18:19] Production.INFO: ProcessCDR(1,14837373,1,1,2) [2025-04-05 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837373', 'tblTempUsageDetail_20' ) start [2025-04-05 03:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837373', 'tblTempUsageDetail_20' ) end [2025-04-05 03:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:18:24] Production.INFO: ==20336== Releasing lock... [2025-04-05 03:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:18:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:19:05 [end_date_ymd] => 2025-04-05 03:19:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:19:05' and `end` < '2025-04-05 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-04-05 03:19:18] Production.INFO: count ==790 [2025-04-05 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:19:05 - End Time 2025-04-05 03:19:05 [2025-04-05 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837378', 'tblTempUsageDetail_20' ) start [2025-04-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837378', 'tblTempUsageDetail_20' ) end [2025-04-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837378', 'tblTempVendorCDR_20' ) start [2025-04-05 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837378', 'tblTempVendorCDR_20' ) end [2025-04-05 03:19:18] Production.INFO: ProcessCDR(1,14837378,1,1,2) [2025-04-05 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837378', 'tblTempUsageDetail_20' ) start [2025-04-05 03:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837378', 'tblTempUsageDetail_20' ) end [2025-04-05 03:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:19:23] Production.INFO: ==20414== Releasing lock... [2025-04-05 03:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:19:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:20:06 [end_date_ymd] => 2025-04-05 03:20:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:20:06' and `end` < '2025-04-05 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-04-05 03:20:19] Production.INFO: count ==788 [2025-04-05 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:20:06 - End Time 2025-04-05 03:20:06 [2025-04-05 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837384', 'tblTempUsageDetail_20' ) start [2025-04-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837384', 'tblTempUsageDetail_20' ) end [2025-04-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837384', 'tblTempVendorCDR_20' ) start [2025-04-05 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837384', 'tblTempVendorCDR_20' ) end [2025-04-05 03:20:19] Production.INFO: ProcessCDR(1,14837384,1,1,2) [2025-04-05 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837384', 'tblTempUsageDetail_20' ) start [2025-04-05 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837384', 'tblTempUsageDetail_20' ) end [2025-04-05 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:20:23] Production.INFO: ==20532== Releasing lock... [2025-04-05 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:20:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:21:05 [end_date_ymd] => 2025-04-05 03:21:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:21:05' and `end` < '2025-04-05 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-04-05 03:21:18] Production.INFO: count ==764 [2025-04-05 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:21:05 - End Time 2025-04-05 03:21:05 [2025-04-05 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837389', 'tblTempUsageDetail_20' ) start [2025-04-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837389', 'tblTempUsageDetail_20' ) end [2025-04-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837389', 'tblTempVendorCDR_20' ) start [2025-04-05 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837389', 'tblTempVendorCDR_20' ) end [2025-04-05 03:21:18] Production.INFO: ProcessCDR(1,14837389,1,1,2) [2025-04-05 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837389', 'tblTempUsageDetail_20' ) start [2025-04-05 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837389', 'tblTempUsageDetail_20' ) end [2025-04-05 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:21:23] Production.INFO: ==20615== Releasing lock... [2025-04-05 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:21:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:22:05 [end_date_ymd] => 2025-04-05 03:22:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:22:05' and `end` < '2025-04-05 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-04-05 03:22:18] Production.INFO: count ==761 [2025-04-05 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:22:05 - End Time 2025-04-05 03:22:05 [2025-04-05 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837394', 'tblTempUsageDetail_20' ) start [2025-04-05 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837394', 'tblTempUsageDetail_20' ) end [2025-04-05 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837394', 'tblTempVendorCDR_20' ) start [2025-04-05 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837394', 'tblTempVendorCDR_20' ) end [2025-04-05 03:22:19] Production.INFO: ProcessCDR(1,14837394,1,1,2) [2025-04-05 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837394', 'tblTempUsageDetail_20' ) start [2025-04-05 03:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837394', 'tblTempUsageDetail_20' ) end [2025-04-05 03:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:22:23] Production.INFO: ==20692== Releasing lock... [2025-04-05 03:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:22:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:23:05 [end_date_ymd] => 2025-04-05 03:23:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:23:05' and `end` < '2025-04-05 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-04-05 03:23:18] Production.INFO: count ==763 [2025-04-05 03:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:23:05 - End Time 2025-04-05 03:23:05 [2025-04-05 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837399', 'tblTempUsageDetail_20' ) start [2025-04-05 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837399', 'tblTempUsageDetail_20' ) end [2025-04-05 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837399', 'tblTempVendorCDR_20' ) start [2025-04-05 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837399', 'tblTempVendorCDR_20' ) end [2025-04-05 03:23:19] Production.INFO: ProcessCDR(1,14837399,1,1,2) [2025-04-05 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837399', 'tblTempUsageDetail_20' ) start [2025-04-05 03:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837399', 'tblTempUsageDetail_20' ) end [2025-04-05 03:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:23:23] Production.INFO: ==20766== Releasing lock... [2025-04-05 03:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:23:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:24:06 [end_date_ymd] => 2025-04-05 03:24:06 [RateCDR] => 1 ) [2025-04-05 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:24:06' and `end` < '2025-04-05 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:24:18] Production.INFO: count ==769 [2025-04-05 03:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:24:06 - End Time 2025-04-05 03:24:06 [2025-04-05 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837404', 'tblTempUsageDetail_20' ) start [2025-04-05 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837404', 'tblTempUsageDetail_20' ) end [2025-04-05 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837404', 'tblTempVendorCDR_20' ) start [2025-04-05 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837404', 'tblTempVendorCDR_20' ) end [2025-04-05 03:24:19] Production.INFO: ProcessCDR(1,14837404,1,1,2) [2025-04-05 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837404', 'tblTempUsageDetail_20' ) start [2025-04-05 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837404', 'tblTempUsageDetail_20' ) end [2025-04-05 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:24:22] Production.INFO: ==20838== Releasing lock... [2025-04-05 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:24:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:25:04 [end_date_ymd] => 2025-04-05 03:25:04 [RateCDR] => 1 ) [2025-04-05 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:25:04' and `end` < '2025-04-05 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:25:17] Production.INFO: count ==762 [2025-04-05 03:25:17] Production.ERROR: pbx CDR StartTime 2025-04-05 00:25:04 - End Time 2025-04-05 03:25:04 [2025-04-05 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837409', 'tblTempUsageDetail_20' ) start [2025-04-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837409', 'tblTempUsageDetail_20' ) end [2025-04-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837409', 'tblTempVendorCDR_20' ) start [2025-04-05 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837409', 'tblTempVendorCDR_20' ) end [2025-04-05 03:25:18] Production.INFO: ProcessCDR(1,14837409,1,1,2) [2025-04-05 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837409', 'tblTempUsageDetail_20' ) start [2025-04-05 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837409', 'tblTempUsageDetail_20' ) end [2025-04-05 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:25:21] Production.INFO: ==20907== Releasing lock... [2025-04-05 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:25:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:26:05 [end_date_ymd] => 2025-04-05 03:26:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:26:05' and `end` < '2025-04-05 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-04-05 03:26:18] Production.INFO: count ==764 [2025-04-05 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:26:05 - End Time 2025-04-05 03:26:05 [2025-04-05 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837414', 'tblTempUsageDetail_20' ) start [2025-04-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837414', 'tblTempUsageDetail_20' ) end [2025-04-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837414', 'tblTempVendorCDR_20' ) start [2025-04-05 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837414', 'tblTempVendorCDR_20' ) end [2025-04-05 03:26:18] Production.INFO: ProcessCDR(1,14837414,1,1,2) [2025-04-05 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837414', 'tblTempUsageDetail_20' ) start [2025-04-05 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837414', 'tblTempUsageDetail_20' ) end [2025-04-05 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:26:22] Production.INFO: ==20987== Releasing lock... [2025-04-05 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:26:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:27:05 [end_date_ymd] => 2025-04-05 03:27:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:27:05' and `end` < '2025-04-05 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-04-05 03:27:18] Production.INFO: count ==758 [2025-04-05 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:27:05 - End Time 2025-04-05 03:27:05 [2025-04-05 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837419', 'tblTempUsageDetail_20' ) start [2025-04-05 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837419', 'tblTempUsageDetail_20' ) end [2025-04-05 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837419', 'tblTempVendorCDR_20' ) start [2025-04-05 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837419', 'tblTempVendorCDR_20' ) end [2025-04-05 03:27:18] Production.INFO: ProcessCDR(1,14837419,1,1,2) [2025-04-05 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837419', 'tblTempUsageDetail_20' ) start [2025-04-05 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837419', 'tblTempUsageDetail_20' ) end [2025-04-05 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:27:22] Production.INFO: ==21061== Releasing lock... [2025-04-05 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:27:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:28:06 [end_date_ymd] => 2025-04-05 03:28:06 [RateCDR] => 1 ) [2025-04-05 03:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:28:06' and `end` < '2025-04-05 03:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:28:18] Production.INFO: count ==760 [2025-04-05 03:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:28:06 - End Time 2025-04-05 03:28:06 [2025-04-05 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837424', 'tblTempUsageDetail_20' ) start [2025-04-05 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837424', 'tblTempUsageDetail_20' ) end [2025-04-05 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837424', 'tblTempVendorCDR_20' ) start [2025-04-05 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837424', 'tblTempVendorCDR_20' ) end [2025-04-05 03:28:19] Production.INFO: ProcessCDR(1,14837424,1,1,2) [2025-04-05 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837424', 'tblTempUsageDetail_20' ) start [2025-04-05 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837424', 'tblTempUsageDetail_20' ) end [2025-04-05 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:28:22] Production.INFO: ==21133== Releasing lock... [2025-04-05 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:28:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:29:06 [end_date_ymd] => 2025-04-05 03:29:06 [RateCDR] => 1 ) [2025-04-05 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:29:06' and `end` < '2025-04-05 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:29:19] Production.INFO: count ==761 [2025-04-05 03:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:29:06 - End Time 2025-04-05 03:29:06 [2025-04-05 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837429', 'tblTempUsageDetail_20' ) start [2025-04-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837429', 'tblTempUsageDetail_20' ) end [2025-04-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837429', 'tblTempVendorCDR_20' ) start [2025-04-05 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837429', 'tblTempVendorCDR_20' ) end [2025-04-05 03:29:19] Production.INFO: ProcessCDR(1,14837429,1,1,2) [2025-04-05 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837429', 'tblTempUsageDetail_20' ) start [2025-04-05 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837429', 'tblTempUsageDetail_20' ) end [2025-04-05 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:29:22] Production.INFO: ==21213== Releasing lock... [2025-04-05 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:29:22] Production.INFO: 34 MB #Memory Used# [2025-04-05 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:30:06 [end_date_ymd] => 2025-04-05 03:30:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:30:06' and `end` < '2025-04-05 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-04-05 03:30:19] Production.INFO: count ==751 [2025-04-05 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:30:06 - End Time 2025-04-05 03:30:06 [2025-04-05 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837434', 'tblTempUsageDetail_20' ) start [2025-04-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837434', 'tblTempUsageDetail_20' ) end [2025-04-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837434', 'tblTempVendorCDR_20' ) start [2025-04-05 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837434', 'tblTempVendorCDR_20' ) end [2025-04-05 03:30:19] Production.INFO: ProcessCDR(1,14837434,1,1,2) [2025-04-05 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837434', 'tblTempUsageDetail_20' ) start [2025-04-05 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837434', 'tblTempUsageDetail_20' ) end [2025-04-05 03:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:30:24] Production.INFO: ==21289== Releasing lock... [2025-04-05 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:30:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:31:05 [end_date_ymd] => 2025-04-05 03:31:05 [RateCDR] => 1 ) [2025-04-05 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:31:05' and `end` < '2025-04-05 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:31:18] Production.INFO: count ==729 [2025-04-05 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:31:05 - End Time 2025-04-05 03:31:05 [2025-04-05 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837440', 'tblTempUsageDetail_20' ) start [2025-04-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837440', 'tblTempUsageDetail_20' ) end [2025-04-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837440', 'tblTempVendorCDR_20' ) start [2025-04-05 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837440', 'tblTempVendorCDR_20' ) end [2025-04-05 03:31:18] Production.INFO: ProcessCDR(1,14837440,1,1,2) [2025-04-05 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837440', 'tblTempUsageDetail_20' ) start [2025-04-05 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837440', 'tblTempUsageDetail_20' ) end [2025-04-05 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:31:23] Production.INFO: ==21361== Releasing lock... [2025-04-05 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:31:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:32:06 [end_date_ymd] => 2025-04-05 03:32:06 [RateCDR] => 1 ) [2025-04-05 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:32:06' and `end` < '2025-04-05 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:32:19] Production.INFO: count ==728 [2025-04-05 03:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:32:06 - End Time 2025-04-05 03:32:06 [2025-04-05 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837445', 'tblTempUsageDetail_20' ) start [2025-04-05 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837445', 'tblTempUsageDetail_20' ) end [2025-04-05 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837445', 'tblTempVendorCDR_20' ) start [2025-04-05 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837445', 'tblTempVendorCDR_20' ) end [2025-04-05 03:32:19] Production.INFO: ProcessCDR(1,14837445,1,1,2) [2025-04-05 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837445', 'tblTempUsageDetail_20' ) start [2025-04-05 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837445', 'tblTempUsageDetail_20' ) end [2025-04-05 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:32:22] Production.INFO: ==21435== Releasing lock... [2025-04-05 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:33:05 [end_date_ymd] => 2025-04-05 03:33:05 [RateCDR] => 1 ) [2025-04-05 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:33:05' and `end` < '2025-04-05 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:33:18] Production.INFO: count ==726 [2025-04-05 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:33:05 - End Time 2025-04-05 03:33:05 [2025-04-05 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837450', 'tblTempUsageDetail_20' ) start [2025-04-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837450', 'tblTempUsageDetail_20' ) end [2025-04-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837450', 'tblTempVendorCDR_20' ) start [2025-04-05 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837450', 'tblTempVendorCDR_20' ) end [2025-04-05 03:33:18] Production.INFO: ProcessCDR(1,14837450,1,1,2) [2025-04-05 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837450', 'tblTempUsageDetail_20' ) start [2025-04-05 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837450', 'tblTempUsageDetail_20' ) end [2025-04-05 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:33:23] Production.INFO: ==21506== Releasing lock... [2025-04-05 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:33:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:34:06 [end_date_ymd] => 2025-04-05 03:34:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:34:06' and `end` < '2025-04-05 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-04-05 03:34:19] Production.INFO: count ==718 [2025-04-05 03:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:34:06 - End Time 2025-04-05 03:34:06 [2025-04-05 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837455', 'tblTempUsageDetail_20' ) start [2025-04-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837455', 'tblTempUsageDetail_20' ) end [2025-04-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837455', 'tblTempVendorCDR_20' ) start [2025-04-05 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837455', 'tblTempVendorCDR_20' ) end [2025-04-05 03:34:19] Production.INFO: ProcessCDR(1,14837455,1,1,2) [2025-04-05 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837455', 'tblTempUsageDetail_20' ) start [2025-04-05 03:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837455', 'tblTempUsageDetail_20' ) end [2025-04-05 03:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:34:23] Production.INFO: ==21582== Releasing lock... [2025-04-05 03:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:34:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:35:05 [end_date_ymd] => 2025-04-05 03:35:05 [RateCDR] => 1 ) [2025-04-05 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:35:05' and `end` < '2025-04-05 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:35:18] Production.INFO: count ==718 [2025-04-05 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:35:05 - End Time 2025-04-05 03:35:05 [2025-04-05 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837460', 'tblTempUsageDetail_20' ) start [2025-04-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837460', 'tblTempUsageDetail_20' ) end [2025-04-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837460', 'tblTempVendorCDR_20' ) start [2025-04-05 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837460', 'tblTempVendorCDR_20' ) end [2025-04-05 03:35:18] Production.INFO: ProcessCDR(1,14837460,1,1,2) [2025-04-05 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837460', 'tblTempUsageDetail_20' ) start [2025-04-05 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837460', 'tblTempUsageDetail_20' ) end [2025-04-05 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:35:22] Production.INFO: ==21692== Releasing lock... [2025-04-05 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:36:05 [end_date_ymd] => 2025-04-05 03:36:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:36:05' and `end` < '2025-04-05 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-04-05 03:36:18] Production.INFO: count ==715 [2025-04-05 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:36:05 - End Time 2025-04-05 03:36:05 [2025-04-05 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837465', 'tblTempUsageDetail_20' ) start [2025-04-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837465', 'tblTempUsageDetail_20' ) end [2025-04-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837465', 'tblTempVendorCDR_20' ) start [2025-04-05 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837465', 'tblTempVendorCDR_20' ) end [2025-04-05 03:36:18] Production.INFO: ProcessCDR(1,14837465,1,1,2) [2025-04-05 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837465', 'tblTempUsageDetail_20' ) start [2025-04-05 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837465', 'tblTempUsageDetail_20' ) end [2025-04-05 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:36:21] Production.INFO: ==21763== Releasing lock... [2025-04-05 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:36:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:37:05 [end_date_ymd] => 2025-04-05 03:37:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:37:05' and `end` < '2025-04-05 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-04-05 03:37:18] Production.INFO: count ==711 [2025-04-05 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:37:05 - End Time 2025-04-05 03:37:05 [2025-04-05 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837470', 'tblTempUsageDetail_20' ) start [2025-04-05 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837470', 'tblTempUsageDetail_20' ) end [2025-04-05 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837470', 'tblTempVendorCDR_20' ) start [2025-04-05 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837470', 'tblTempVendorCDR_20' ) end [2025-04-05 03:37:18] Production.INFO: ProcessCDR(1,14837470,1,1,2) [2025-04-05 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837470', 'tblTempUsageDetail_20' ) start [2025-04-05 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837470', 'tblTempUsageDetail_20' ) end [2025-04-05 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:37:21] Production.INFO: ==21834== Releasing lock... [2025-04-05 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:37:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:38:06 [end_date_ymd] => 2025-04-05 03:38:06 [RateCDR] => 1 ) [2025-04-05 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:38:06' and `end` < '2025-04-05 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:38:18] Production.INFO: count ==711 [2025-04-05 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:38:06 - End Time 2025-04-05 03:38:06 [2025-04-05 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837475', 'tblTempUsageDetail_20' ) start [2025-04-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837475', 'tblTempUsageDetail_20' ) end [2025-04-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837475', 'tblTempVendorCDR_20' ) start [2025-04-05 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837475', 'tblTempVendorCDR_20' ) end [2025-04-05 03:38:19] Production.INFO: ProcessCDR(1,14837475,1,1,2) [2025-04-05 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837475', 'tblTempUsageDetail_20' ) start [2025-04-05 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837475', 'tblTempUsageDetail_20' ) end [2025-04-05 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:38:22] Production.INFO: ==21906== Releasing lock... [2025-04-05 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:38:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:39:05 [end_date_ymd] => 2025-04-05 03:39:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:39:05' and `end` < '2025-04-05 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-04-05 03:39:18] Production.INFO: count ==709 [2025-04-05 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:39:05 - End Time 2025-04-05 03:39:05 [2025-04-05 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837480', 'tblTempUsageDetail_20' ) start [2025-04-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837480', 'tblTempUsageDetail_20' ) end [2025-04-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837480', 'tblTempVendorCDR_20' ) start [2025-04-05 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837480', 'tblTempVendorCDR_20' ) end [2025-04-05 03:39:18] Production.INFO: ProcessCDR(1,14837480,1,1,2) [2025-04-05 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837480', 'tblTempUsageDetail_20' ) start [2025-04-05 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837480', 'tblTempUsageDetail_20' ) end [2025-04-05 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:39:22] Production.INFO: ==21980== Releasing lock... [2025-04-05 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:40:06 [end_date_ymd] => 2025-04-05 03:40:06 [RateCDR] => 1 ) [2025-04-05 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:40:06' and `end` < '2025-04-05 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:40:19] Production.INFO: count ==707 [2025-04-05 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:40:06 - End Time 2025-04-05 03:40:06 [2025-04-05 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837485', 'tblTempUsageDetail_20' ) start [2025-04-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837485', 'tblTempUsageDetail_20' ) end [2025-04-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837485', 'tblTempVendorCDR_20' ) start [2025-04-05 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837485', 'tblTempVendorCDR_20' ) end [2025-04-05 03:40:19] Production.INFO: ProcessCDR(1,14837485,1,1,2) [2025-04-05 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837485', 'tblTempUsageDetail_20' ) start [2025-04-05 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837485', 'tblTempUsageDetail_20' ) end [2025-04-05 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:40:22] Production.INFO: ==22054== Releasing lock... [2025-04-05 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:40:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:41:05 [end_date_ymd] => 2025-04-05 03:41:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:41:05' and `end` < '2025-04-05 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-04-05 03:41:18] Production.INFO: count ==683 [2025-04-05 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:41:05 - End Time 2025-04-05 03:41:05 [2025-04-05 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837491', 'tblTempUsageDetail_20' ) start [2025-04-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837491', 'tblTempUsageDetail_20' ) end [2025-04-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837491', 'tblTempVendorCDR_20' ) start [2025-04-05 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837491', 'tblTempVendorCDR_20' ) end [2025-04-05 03:41:18] Production.INFO: ProcessCDR(1,14837491,1,1,2) [2025-04-05 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837491', 'tblTempUsageDetail_20' ) start [2025-04-05 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837491', 'tblTempUsageDetail_20' ) end [2025-04-05 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:41:21] Production.INFO: ==22130== Releasing lock... [2025-04-05 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:42:05 [end_date_ymd] => 2025-04-05 03:42:05 [RateCDR] => 1 ) [2025-04-05 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:42:05' and `end` < '2025-04-05 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:42:18] Production.INFO: count ==685 [2025-04-05 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:42:05 - End Time 2025-04-05 03:42:05 [2025-04-05 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837496', 'tblTempUsageDetail_20' ) start [2025-04-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837496', 'tblTempUsageDetail_20' ) end [2025-04-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837496', 'tblTempVendorCDR_20' ) start [2025-04-05 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837496', 'tblTempVendorCDR_20' ) end [2025-04-05 03:42:18] Production.INFO: ProcessCDR(1,14837496,1,1,2) [2025-04-05 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837496', 'tblTempUsageDetail_20' ) start [2025-04-05 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837496', 'tblTempUsageDetail_20' ) end [2025-04-05 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:42:22] Production.INFO: ==22203== Releasing lock... [2025-04-05 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:43:05 [end_date_ymd] => 2025-04-05 03:43:05 [RateCDR] => 1 ) [2025-04-05 03: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-04-05 00:43:05' and `end` < '2025-04-05 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-04-05 03:43:18] Production.INFO: count ==682 [2025-04-05 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:43:05 - End Time 2025-04-05 03:43:05 [2025-04-05 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837501', 'tblTempUsageDetail_20' ) start [2025-04-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837501', 'tblTempUsageDetail_20' ) end [2025-04-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837501', 'tblTempVendorCDR_20' ) start [2025-04-05 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837501', 'tblTempVendorCDR_20' ) end [2025-04-05 03:43:18] Production.INFO: ProcessCDR(1,14837501,1,1,2) [2025-04-05 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837501', 'tblTempUsageDetail_20' ) start [2025-04-05 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837501', 'tblTempUsageDetail_20' ) end [2025-04-05 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:43:22] Production.INFO: ==22273== Releasing lock... [2025-04-05 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:44:06 [end_date_ymd] => 2025-04-05 03:44:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:44:06' and `end` < '2025-04-05 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-04-05 03:44:19] Production.INFO: count ==684 [2025-04-05 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:44:06 - End Time 2025-04-05 03:44:06 [2025-04-05 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837506', 'tblTempUsageDetail_20' ) start [2025-04-05 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837506', 'tblTempUsageDetail_20' ) end [2025-04-05 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837506', 'tblTempVendorCDR_20' ) start [2025-04-05 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837506', 'tblTempVendorCDR_20' ) end [2025-04-05 03:44:19] Production.INFO: ProcessCDR(1,14837506,1,1,2) [2025-04-05 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837506', 'tblTempUsageDetail_20' ) start [2025-04-05 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837506', 'tblTempUsageDetail_20' ) end [2025-04-05 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:44:22] Production.INFO: ==22347== Releasing lock... [2025-04-05 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:44:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:45:05 [end_date_ymd] => 2025-04-05 03:45:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:45:05' and `end` < '2025-04-05 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-04-05 03:45:18] Production.INFO: count ==683 [2025-04-05 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:45:05 - End Time 2025-04-05 03:45:05 [2025-04-05 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837511', 'tblTempUsageDetail_20' ) start [2025-04-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837511', 'tblTempUsageDetail_20' ) end [2025-04-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837511', 'tblTempVendorCDR_20' ) start [2025-04-05 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837511', 'tblTempVendorCDR_20' ) end [2025-04-05 03:45:18] Production.INFO: ProcessCDR(1,14837511,1,1,2) [2025-04-05 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837511', 'tblTempUsageDetail_20' ) start [2025-04-05 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837511', 'tblTempUsageDetail_20' ) end [2025-04-05 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:45:22] Production.INFO: ==22424== Releasing lock... [2025-04-05 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:46:06 [end_date_ymd] => 2025-04-05 03:46:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:46:06' and `end` < '2025-04-05 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-04-05 03:46:19] Production.INFO: count ==688 [2025-04-05 03:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:46:06 - End Time 2025-04-05 03:46:06 [2025-04-05 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837516', 'tblTempUsageDetail_20' ) start [2025-04-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837516', 'tblTempUsageDetail_20' ) end [2025-04-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837516', 'tblTempVendorCDR_20' ) start [2025-04-05 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837516', 'tblTempVendorCDR_20' ) end [2025-04-05 03:46:19] Production.INFO: ProcessCDR(1,14837516,1,1,2) [2025-04-05 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837516', 'tblTempUsageDetail_20' ) start [2025-04-05 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837516', 'tblTempUsageDetail_20' ) end [2025-04-05 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:46:22] Production.INFO: ==22495== Releasing lock... [2025-04-05 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:46:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:47:05 [end_date_ymd] => 2025-04-05 03:47:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:47:05' and `end` < '2025-04-05 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-04-05 03:47:17] Production.INFO: count ==689 [2025-04-05 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:47:05 - End Time 2025-04-05 03:47:05 [2025-04-05 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837521', 'tblTempUsageDetail_20' ) start [2025-04-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837521', 'tblTempUsageDetail_20' ) end [2025-04-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837521', 'tblTempVendorCDR_20' ) start [2025-04-05 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837521', 'tblTempVendorCDR_20' ) end [2025-04-05 03:47:18] Production.INFO: ProcessCDR(1,14837521,1,1,2) [2025-04-05 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837521', 'tblTempUsageDetail_20' ) start [2025-04-05 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837521', 'tblTempUsageDetail_20' ) end [2025-04-05 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:47:22] Production.INFO: ==22566== Releasing lock... [2025-04-05 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:47:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:48:06 [end_date_ymd] => 2025-04-05 03:48:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:48:06' and `end` < '2025-04-05 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-04-05 03:48:18] Production.INFO: count ==690 [2025-04-05 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:48:06 - End Time 2025-04-05 03:48:06 [2025-04-05 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837526', 'tblTempUsageDetail_20' ) start [2025-04-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837526', 'tblTempUsageDetail_20' ) end [2025-04-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837526', 'tblTempVendorCDR_20' ) start [2025-04-05 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837526', 'tblTempVendorCDR_20' ) end [2025-04-05 03:48:18] Production.INFO: ProcessCDR(1,14837526,1,1,2) [2025-04-05 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837526', 'tblTempUsageDetail_20' ) start [2025-04-05 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837526', 'tblTempUsageDetail_20' ) end [2025-04-05 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:48:23] Production.INFO: ==22636== Releasing lock... [2025-04-05 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:49:05 [end_date_ymd] => 2025-04-05 03:49:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:49:05' and `end` < '2025-04-05 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-04-05 03:49:18] Production.INFO: count ==690 [2025-04-05 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:49:05 - End Time 2025-04-05 03:49:05 [2025-04-05 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837531', 'tblTempUsageDetail_20' ) start [2025-04-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837531', 'tblTempUsageDetail_20' ) end [2025-04-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837531', 'tblTempVendorCDR_20' ) start [2025-04-05 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837531', 'tblTempVendorCDR_20' ) end [2025-04-05 03:49:18] Production.INFO: ProcessCDR(1,14837531,1,1,2) [2025-04-05 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837531', 'tblTempUsageDetail_20' ) start [2025-04-05 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837531', 'tblTempUsageDetail_20' ) end [2025-04-05 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:49:21] Production.INFO: ==22713== Releasing lock... [2025-04-05 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:49:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:50:06 [end_date_ymd] => 2025-04-05 03:50:06 [RateCDR] => 1 ) [2025-04-05 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:50:06' and `end` < '2025-04-05 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:50:18] Production.INFO: count ==678 [2025-04-05 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:50:06 - End Time 2025-04-05 03:50:06 [2025-04-05 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837537', 'tblTempUsageDetail_20' ) start [2025-04-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837537', 'tblTempUsageDetail_20' ) end [2025-04-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837537', 'tblTempVendorCDR_20' ) start [2025-04-05 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837537', 'tblTempVendorCDR_20' ) end [2025-04-05 03:50:19] Production.INFO: ProcessCDR(1,14837537,1,1,2) [2025-04-05 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837537', 'tblTempUsageDetail_20' ) start [2025-04-05 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837537', 'tblTempUsageDetail_20' ) end [2025-04-05 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:50:22] Production.INFO: ==22787== Releasing lock... [2025-04-05 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:50:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:51:05 [end_date_ymd] => 2025-04-05 03:51:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:51:05' and `end` < '2025-04-05 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-04-05 03:51:18] Production.INFO: count ==661 [2025-04-05 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:51:05 - End Time 2025-04-05 03:51:05 [2025-04-05 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837542', 'tblTempUsageDetail_20' ) start [2025-04-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837542', 'tblTempUsageDetail_20' ) end [2025-04-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837542', 'tblTempVendorCDR_20' ) start [2025-04-05 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837542', 'tblTempVendorCDR_20' ) end [2025-04-05 03:51:18] Production.INFO: ProcessCDR(1,14837542,1,1,2) [2025-04-05 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837542', 'tblTempUsageDetail_20' ) start [2025-04-05 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837542', 'tblTempUsageDetail_20' ) end [2025-04-05 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:51:22] Production.INFO: ==22901== Releasing lock... [2025-04-05 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:51:22] Production.INFO: 33 MB #Memory Used# [2025-04-05 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:52:05 [end_date_ymd] => 2025-04-05 03:52:05 [RateCDR] => 1 ) [2025-04-05 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:52:05' and `end` < '2025-04-05 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:52:18] Production.INFO: count ==659 [2025-04-05 03:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:52:05 - End Time 2025-04-05 03:52:05 [2025-04-05 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837547', 'tblTempUsageDetail_20' ) start [2025-04-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837547', 'tblTempUsageDetail_20' ) end [2025-04-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837547', 'tblTempVendorCDR_20' ) start [2025-04-05 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837547', 'tblTempVendorCDR_20' ) end [2025-04-05 03:52:18] Production.INFO: ProcessCDR(1,14837547,1,1,2) [2025-04-05 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837547', 'tblTempUsageDetail_20' ) start [2025-04-05 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837547', 'tblTempUsageDetail_20' ) end [2025-04-05 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:52:21] Production.INFO: ==22973== Releasing lock... [2025-04-05 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:53:06 [end_date_ymd] => 2025-04-05 03:53:06 [RateCDR] => 1 ) [2025-04-05 03:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:53:06' and `end` < '2025-04-05 03:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:53:19] Production.INFO: count ==650 [2025-04-05 03:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:53:06 - End Time 2025-04-05 03:53:06 [2025-04-05 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837552', 'tblTempUsageDetail_20' ) start [2025-04-05 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837552', 'tblTempUsageDetail_20' ) end [2025-04-05 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837552', 'tblTempVendorCDR_20' ) start [2025-04-05 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837552', 'tblTempVendorCDR_20' ) end [2025-04-05 03:53:19] Production.INFO: ProcessCDR(1,14837552,1,1,2) [2025-04-05 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837552', 'tblTempUsageDetail_20' ) start [2025-04-05 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837552', 'tblTempUsageDetail_20' ) end [2025-04-05 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:53:22] Production.INFO: ==23045== Releasing lock... [2025-04-05 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:54:05 [end_date_ymd] => 2025-04-05 03:54:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:54:05' and `end` < '2025-04-05 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-04-05 03:54:18] Production.INFO: count ==641 [2025-04-05 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:54:05 - End Time 2025-04-05 03:54:05 [2025-04-05 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837557', 'tblTempUsageDetail_20' ) start [2025-04-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837557', 'tblTempUsageDetail_20' ) end [2025-04-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837557', 'tblTempVendorCDR_20' ) start [2025-04-05 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837557', 'tblTempVendorCDR_20' ) end [2025-04-05 03:54:18] Production.INFO: ProcessCDR(1,14837557,1,1,2) [2025-04-05 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837557', 'tblTempUsageDetail_20' ) start [2025-04-05 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837557', 'tblTempUsageDetail_20' ) end [2025-04-05 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:54:21] Production.INFO: ==23117== Releasing lock... [2025-04-05 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:55:05 [end_date_ymd] => 2025-04-05 03:55:05 [RateCDR] => 1 ) [2025-04-05 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:55:05' and `end` < '2025-04-05 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:55:18] Production.INFO: count ==640 [2025-04-05 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:55:05 - End Time 2025-04-05 03:55:05 [2025-04-05 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837562', 'tblTempUsageDetail_20' ) start [2025-04-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837562', 'tblTempUsageDetail_20' ) end [2025-04-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837562', 'tblTempVendorCDR_20' ) start [2025-04-05 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837562', 'tblTempVendorCDR_20' ) end [2025-04-05 03:55:18] Production.INFO: ProcessCDR(1,14837562,1,1,2) [2025-04-05 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837562', 'tblTempUsageDetail_20' ) start [2025-04-05 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837562', 'tblTempUsageDetail_20' ) end [2025-04-05 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:55:22] Production.INFO: ==23191== Releasing lock... [2025-04-05 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:56:05 [end_date_ymd] => 2025-04-05 03:56:05 [RateCDR] => 1 ) [2025-04-05 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:56:05' and `end` < '2025-04-05 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:56:18] Production.INFO: count ==638 [2025-04-05 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:56:05 - End Time 2025-04-05 03:56:05 [2025-04-05 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837567', 'tblTempUsageDetail_20' ) start [2025-04-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837567', 'tblTempUsageDetail_20' ) end [2025-04-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837567', 'tblTempVendorCDR_20' ) start [2025-04-05 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837567', 'tblTempVendorCDR_20' ) end [2025-04-05 03:56:18] Production.INFO: ProcessCDR(1,14837567,1,1,2) [2025-04-05 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837567', 'tblTempUsageDetail_20' ) start [2025-04-05 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837567', 'tblTempUsageDetail_20' ) end [2025-04-05 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:56:21] Production.INFO: ==23265== Releasing lock... [2025-04-05 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:57:05 [end_date_ymd] => 2025-04-05 03:57:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:57:05' and `end` < '2025-04-05 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-04-05 03:57:18] Production.INFO: count ==631 [2025-04-05 03:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 00:57:05 - End Time 2025-04-05 03:57:05 [2025-04-05 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837572', 'tblTempUsageDetail_20' ) start [2025-04-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837572', 'tblTempUsageDetail_20' ) end [2025-04-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837572', 'tblTempVendorCDR_20' ) start [2025-04-05 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837572', 'tblTempVendorCDR_20' ) end [2025-04-05 03:57:19] Production.INFO: ProcessCDR(1,14837572,1,1,2) [2025-04-05 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837572', 'tblTempUsageDetail_20' ) start [2025-04-05 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837572', 'tblTempUsageDetail_20' ) end [2025-04-05 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:57:22] Production.INFO: ==23337== Releasing lock... [2025-04-05 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:58:05 [end_date_ymd] => 2025-04-05 03:58:05 [RateCDR] => 1 ) [2025-04-05 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 00:58:05' and `end` < '2025-04-05 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 03:58:18] Production.INFO: count ==629 [2025-04-05 03:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:58:05 - End Time 2025-04-05 03:58:05 [2025-04-05 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837577', 'tblTempUsageDetail_20' ) start [2025-04-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837577', 'tblTempUsageDetail_20' ) end [2025-04-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837577', 'tblTempVendorCDR_20' ) start [2025-04-05 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837577', 'tblTempVendorCDR_20' ) end [2025-04-05 03:58:18] Production.INFO: ProcessCDR(1,14837577,1,1,2) [2025-04-05 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837577', 'tblTempUsageDetail_20' ) start [2025-04-05 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837577', 'tblTempUsageDetail_20' ) end [2025-04-05 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:58:21] Production.INFO: ==23407== Releasing lock... [2025-04-05 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 00:59:05 [end_date_ymd] => 2025-04-05 03:59:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 00:59:05' and `end` < '2025-04-05 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-04-05 03:59:18] Production.INFO: count ==632 [2025-04-05 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 00:59:05 - End Time 2025-04-05 03:59:05 [2025-04-05 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837582', 'tblTempUsageDetail_20' ) start [2025-04-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837582', 'tblTempUsageDetail_20' ) end [2025-04-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837582', 'tblTempVendorCDR_20' ) start [2025-04-05 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837582', 'tblTempVendorCDR_20' ) end [2025-04-05 03:59:18] Production.INFO: ProcessCDR(1,14837582,1,1,2) [2025-04-05 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837582', 'tblTempUsageDetail_20' ) start [2025-04-05 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837582', 'tblTempUsageDetail_20' ) end [2025-04-05 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 03:59:21] Production.INFO: ==23481== Releasing lock... [2025-04-05 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 03:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:00:06 [end_date_ymd] => 2025-04-05 04:00:06 [RateCDR] => 1 ) [2025-04-05 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:00:06' and `end` < '2025-04-05 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:00:19] Production.INFO: count ==630 [2025-04-05 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:00:06 - End Time 2025-04-05 04:00:06 [2025-04-05 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837588', 'tblTempUsageDetail_20' ) start [2025-04-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837588', 'tblTempUsageDetail_20' ) end [2025-04-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837588', 'tblTempVendorCDR_20' ) start [2025-04-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837588', 'tblTempVendorCDR_20' ) end [2025-04-05 04:00:19] Production.INFO: ProcessCDR(1,14837588,1,1,2) [2025-04-05 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837588', 'tblTempUsageDetail_20' ) start [2025-04-05 04:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837588', 'tblTempUsageDetail_20' ) end [2025-04-05 04:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:00:24] Production.INFO: ==23557== Releasing lock... [2025-04-05 04:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:01:05 [end_date_ymd] => 2025-04-05 04:01:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:01:05' and `end` < '2025-04-05 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-04-05 04:01:18] Production.INFO: count ==632 [2025-04-05 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:01:05 - End Time 2025-04-05 04:01:05 [2025-04-05 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837594', 'tblTempUsageDetail_20' ) start [2025-04-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837594', 'tblTempUsageDetail_20' ) end [2025-04-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837594', 'tblTempVendorCDR_20' ) start [2025-04-05 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837594', 'tblTempVendorCDR_20' ) end [2025-04-05 04:01:18] Production.INFO: ProcessCDR(1,14837594,1,1,2) [2025-04-05 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837594', 'tblTempUsageDetail_20' ) start [2025-04-05 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837594', 'tblTempUsageDetail_20' ) end [2025-04-05 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:01:22] Production.INFO: ==23645== Releasing lock... [2025-04-05 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:02:06 [end_date_ymd] => 2025-04-05 04:02:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:02:06' and `end` < '2025-04-05 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-04-05 04:02:19] Production.INFO: count ==645 [2025-04-05 04:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:02:06 - End Time 2025-04-05 04:02:06 [2025-04-05 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837599', 'tblTempUsageDetail_20' ) start [2025-04-05 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837599', 'tblTempUsageDetail_20' ) end [2025-04-05 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837599', 'tblTempVendorCDR_20' ) start [2025-04-05 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837599', 'tblTempVendorCDR_20' ) end [2025-04-05 04:02:19] Production.INFO: ProcessCDR(1,14837599,1,1,2) [2025-04-05 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837599', 'tblTempUsageDetail_20' ) start [2025-04-05 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837599', 'tblTempUsageDetail_20' ) end [2025-04-05 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:02:22] Production.INFO: ==23718== Releasing lock... [2025-04-05 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:03:05 [end_date_ymd] => 2025-04-05 04:03:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:03:05' and `end` < '2025-04-05 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-04-05 04:03:18] Production.INFO: count ==653 [2025-04-05 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:03:05 - End Time 2025-04-05 04:03:05 [2025-04-05 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837604', 'tblTempUsageDetail_20' ) start [2025-04-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837604', 'tblTempUsageDetail_20' ) end [2025-04-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837604', 'tblTempVendorCDR_20' ) start [2025-04-05 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837604', 'tblTempVendorCDR_20' ) end [2025-04-05 04:03:18] Production.INFO: ProcessCDR(1,14837604,1,1,2) [2025-04-05 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837604', 'tblTempUsageDetail_20' ) start [2025-04-05 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837604', 'tblTempUsageDetail_20' ) end [2025-04-05 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:03:23] Production.INFO: ==23791== Releasing lock... [2025-04-05 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:04:06 [end_date_ymd] => 2025-04-05 04:04:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:04:06' and `end` < '2025-04-05 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-04-05 04:04:19] Production.INFO: count ==653 [2025-04-05 04:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:04:06 - End Time 2025-04-05 04:04:06 [2025-04-05 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837609', 'tblTempUsageDetail_20' ) start [2025-04-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837609', 'tblTempUsageDetail_20' ) end [2025-04-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837609', 'tblTempVendorCDR_20' ) start [2025-04-05 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837609', 'tblTempVendorCDR_20' ) end [2025-04-05 04:04:19] Production.INFO: ProcessCDR(1,14837609,1,1,2) [2025-04-05 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837609', 'tblTempUsageDetail_20' ) start [2025-04-05 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837609', 'tblTempUsageDetail_20' ) end [2025-04-05 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:04:22] Production.INFO: ==23867== Releasing lock... [2025-04-05 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:04:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:05:05 [end_date_ymd] => 2025-04-05 04:05:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:05:05' and `end` < '2025-04-05 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-04-05 04:05:18] Production.INFO: count ==653 [2025-04-05 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:05:05 - End Time 2025-04-05 04:05:05 [2025-04-05 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837614', 'tblTempUsageDetail_20' ) start [2025-04-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837614', 'tblTempUsageDetail_20' ) end [2025-04-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837614', 'tblTempVendorCDR_20' ) start [2025-04-05 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837614', 'tblTempVendorCDR_20' ) end [2025-04-05 04:05:18] Production.INFO: ProcessCDR(1,14837614,1,1,2) [2025-04-05 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837614', 'tblTempUsageDetail_20' ) start [2025-04-05 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837614', 'tblTempUsageDetail_20' ) end [2025-04-05 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:05:22] Production.INFO: ==23941== Releasing lock... [2025-04-05 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:06:05 [end_date_ymd] => 2025-04-05 04:06:05 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:06:05' and `end` < '2025-04-05 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-04-05 04:06:18] Production.INFO: count ==648 [2025-04-05 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:06:05 - End Time 2025-04-05 04:06:05 [2025-04-05 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837619', 'tblTempUsageDetail_20' ) start [2025-04-05 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837619', 'tblTempUsageDetail_20' ) end [2025-04-05 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837619', 'tblTempVendorCDR_20' ) start [2025-04-05 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837619', 'tblTempVendorCDR_20' ) end [2025-04-05 04:06:19] Production.INFO: ProcessCDR(1,14837619,1,1,2) [2025-04-05 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837619', 'tblTempUsageDetail_20' ) start [2025-04-05 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837619', 'tblTempUsageDetail_20' ) end [2025-04-05 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:06:23] Production.INFO: ==24053== Releasing lock... [2025-04-05 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:06:23] Production.INFO: 33 MB #Memory Used# [2025-04-05 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:07:05 [end_date_ymd] => 2025-04-05 04:07:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:07:05' and `end` < '2025-04-05 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-04-05 04:07:18] Production.INFO: count ==642 [2025-04-05 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:07:05 - End Time 2025-04-05 04:07:05 [2025-04-05 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837624', 'tblTempUsageDetail_20' ) start [2025-04-05 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837624', 'tblTempUsageDetail_20' ) end [2025-04-05 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837624', 'tblTempVendorCDR_20' ) start [2025-04-05 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837624', 'tblTempVendorCDR_20' ) end [2025-04-05 04:07:18] Production.INFO: ProcessCDR(1,14837624,1,1,2) [2025-04-05 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837624', 'tblTempUsageDetail_20' ) start [2025-04-05 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837624', 'tblTempUsageDetail_20' ) end [2025-04-05 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:07:21] Production.INFO: ==24122== Releasing lock... [2025-04-05 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:07:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:08:05 [end_date_ymd] => 2025-04-05 04:08:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:08:05' and `end` < '2025-04-05 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-04-05 04:08:18] Production.INFO: count ==639 [2025-04-05 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:08:05 - End Time 2025-04-05 04:08:05 [2025-04-05 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837629', 'tblTempUsageDetail_20' ) start [2025-04-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837629', 'tblTempUsageDetail_20' ) end [2025-04-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837629', 'tblTempVendorCDR_20' ) start [2025-04-05 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837629', 'tblTempVendorCDR_20' ) end [2025-04-05 04:08:18] Production.INFO: ProcessCDR(1,14837629,1,1,2) [2025-04-05 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837629', 'tblTempUsageDetail_20' ) start [2025-04-05 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837629', 'tblTempUsageDetail_20' ) end [2025-04-05 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:08:22] Production.INFO: ==24197== Releasing lock... [2025-04-05 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:09:05 [end_date_ymd] => 2025-04-05 04:09:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:09:05' and `end` < '2025-04-05 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-04-05 04:09:18] Production.INFO: count ==636 [2025-04-05 04:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:09:05 - End Time 2025-04-05 04:09:05 [2025-04-05 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837634', 'tblTempUsageDetail_20' ) start [2025-04-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837634', 'tblTempUsageDetail_20' ) end [2025-04-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837634', 'tblTempVendorCDR_20' ) start [2025-04-05 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837634', 'tblTempVendorCDR_20' ) end [2025-04-05 04:09:18] Production.INFO: ProcessCDR(1,14837634,1,1,2) [2025-04-05 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837634', 'tblTempUsageDetail_20' ) start [2025-04-05 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837634', 'tblTempUsageDetail_20' ) end [2025-04-05 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:09:21] Production.INFO: ==24267== Releasing lock... [2025-04-05 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:09:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:10:06 [end_date_ymd] => 2025-04-05 04:10:06 [RateCDR] => 1 ) [2025-04-05 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:10:06' and `end` < '2025-04-05 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:10:18] Production.INFO: count ==628 [2025-04-05 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:10:06 - End Time 2025-04-05 04:10:06 [2025-04-05 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837640', 'tblTempUsageDetail_20' ) start [2025-04-05 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837640', 'tblTempUsageDetail_20' ) end [2025-04-05 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837640', 'tblTempVendorCDR_20' ) start [2025-04-05 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837640', 'tblTempVendorCDR_20' ) end [2025-04-05 04:10:19] Production.INFO: ProcessCDR(1,14837640,1,1,2) [2025-04-05 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837640', 'tblTempUsageDetail_20' ) start [2025-04-05 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837640', 'tblTempUsageDetail_20' ) end [2025-04-05 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:10:22] Production.INFO: ==24342== Releasing lock... [2025-04-05 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:11:05 [end_date_ymd] => 2025-04-05 04:11:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:11:05' and `end` < '2025-04-05 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-04-05 04:11:18] Production.INFO: count ==622 [2025-04-05 04:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:11:05 - End Time 2025-04-05 04:11:05 [2025-04-05 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837645', 'tblTempUsageDetail_20' ) start [2025-04-05 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837645', 'tblTempUsageDetail_20' ) end [2025-04-05 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837645', 'tblTempVendorCDR_20' ) start [2025-04-05 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837645', 'tblTempVendorCDR_20' ) end [2025-04-05 04:11:18] Production.INFO: ProcessCDR(1,14837645,1,1,2) [2025-04-05 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837645', 'tblTempUsageDetail_20' ) start [2025-04-05 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837645', 'tblTempUsageDetail_20' ) end [2025-04-05 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:11:21] Production.INFO: ==24417== Releasing lock... [2025-04-05 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:11:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:12:05 [end_date_ymd] => 2025-04-05 04:12:05 [RateCDR] => 1 ) [2025-04-05 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:12:05' and `end` < '2025-04-05 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:12:18] Production.INFO: count ==620 [2025-04-05 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:12:05 - End Time 2025-04-05 04:12:05 [2025-04-05 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837650', 'tblTempUsageDetail_20' ) start [2025-04-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837650', 'tblTempUsageDetail_20' ) end [2025-04-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837650', 'tblTempVendorCDR_20' ) start [2025-04-05 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837650', 'tblTempVendorCDR_20' ) end [2025-04-05 04:12:18] Production.INFO: ProcessCDR(1,14837650,1,1,2) [2025-04-05 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837650', 'tblTempUsageDetail_20' ) start [2025-04-05 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837650', 'tblTempUsageDetail_20' ) end [2025-04-05 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:12:22] Production.INFO: ==24488== Releasing lock... [2025-04-05 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:12:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:13:05 [end_date_ymd] => 2025-04-05 04:13:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:13:05' and `end` < '2025-04-05 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-04-05 04:13:18] Production.INFO: count ==618 [2025-04-05 04:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:13:05 - End Time 2025-04-05 04:13:05 [2025-04-05 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837655', 'tblTempUsageDetail_20' ) start [2025-04-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837655', 'tblTempUsageDetail_20' ) end [2025-04-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837655', 'tblTempVendorCDR_20' ) start [2025-04-05 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837655', 'tblTempVendorCDR_20' ) end [2025-04-05 04:13:18] Production.INFO: ProcessCDR(1,14837655,1,1,2) [2025-04-05 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837655', 'tblTempUsageDetail_20' ) start [2025-04-05 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837655', 'tblTempUsageDetail_20' ) end [2025-04-05 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:13:22] Production.INFO: ==24560== Releasing lock... [2025-04-05 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:14:05 [end_date_ymd] => 2025-04-05 04:14:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:14:05' and `end` < '2025-04-05 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-04-05 04:14:18] Production.INFO: count ==616 [2025-04-05 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:14:05 - End Time 2025-04-05 04:14:05 [2025-04-05 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837660', 'tblTempUsageDetail_20' ) start [2025-04-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837660', 'tblTempUsageDetail_20' ) end [2025-04-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837660', 'tblTempVendorCDR_20' ) start [2025-04-05 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837660', 'tblTempVendorCDR_20' ) end [2025-04-05 04:14:18] Production.INFO: ProcessCDR(1,14837660,1,1,2) [2025-04-05 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837660', 'tblTempUsageDetail_20' ) start [2025-04-05 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837660', 'tblTempUsageDetail_20' ) end [2025-04-05 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:14:21] Production.INFO: ==24637== Releasing lock... [2025-04-05 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:14:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:15:06 [end_date_ymd] => 2025-04-05 04:15:06 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:15:06' and `end` < '2025-04-05 04: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-04-05 04:15:19] Production.INFO: count ==616 [2025-04-05 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:15:06 - End Time 2025-04-05 04:15:06 [2025-04-05 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837665', 'tblTempUsageDetail_20' ) start [2025-04-05 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837665', 'tblTempUsageDetail_20' ) end [2025-04-05 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837665', 'tblTempVendorCDR_20' ) start [2025-04-05 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837665', 'tblTempVendorCDR_20' ) end [2025-04-05 04:15:19] Production.INFO: ProcessCDR(1,14837665,1,1,2) [2025-04-05 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837665', 'tblTempUsageDetail_20' ) start [2025-04-05 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837665', 'tblTempUsageDetail_20' ) end [2025-04-05 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:15:22] Production.INFO: ==24710== Releasing lock... [2025-04-05 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:15:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:16:05 [end_date_ymd] => 2025-04-05 04:16:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:16:05' and `end` < '2025-04-05 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-04-05 04:16:18] Production.INFO: count ==616 [2025-04-05 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:16:05 - End Time 2025-04-05 04:16:05 [2025-04-05 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837670', 'tblTempUsageDetail_20' ) start [2025-04-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837670', 'tblTempUsageDetail_20' ) end [2025-04-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837670', 'tblTempVendorCDR_20' ) start [2025-04-05 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837670', 'tblTempVendorCDR_20' ) end [2025-04-05 04:16:18] Production.INFO: ProcessCDR(1,14837670,1,1,2) [2025-04-05 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837670', 'tblTempUsageDetail_20' ) start [2025-04-05 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837670', 'tblTempUsageDetail_20' ) end [2025-04-05 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:16:21] Production.INFO: ==24783== Releasing lock... [2025-04-05 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:16:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:17:05 [end_date_ymd] => 2025-04-05 04:17:05 [RateCDR] => 1 ) [2025-04-05 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:17:05' and `end` < '2025-04-05 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:17:18] Production.INFO: count ==605 [2025-04-05 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:17:05 - End Time 2025-04-05 04:17:05 [2025-04-05 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837675', 'tblTempUsageDetail_20' ) start [2025-04-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837675', 'tblTempUsageDetail_20' ) end [2025-04-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837675', 'tblTempVendorCDR_20' ) start [2025-04-05 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837675', 'tblTempVendorCDR_20' ) end [2025-04-05 04:17:18] Production.INFO: ProcessCDR(1,14837675,1,1,2) [2025-04-05 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837675', 'tblTempUsageDetail_20' ) start [2025-04-05 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837675', 'tblTempUsageDetail_20' ) end [2025-04-05 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:17:21] Production.INFO: ==24853== Releasing lock... [2025-04-05 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:18:05 [end_date_ymd] => 2025-04-05 04:18:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:18:05' and `end` < '2025-04-05 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-04-05 04:18:18] Production.INFO: count ==605 [2025-04-05 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:18:05 - End Time 2025-04-05 04:18:05 [2025-04-05 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837677', 'tblTempUsageDetail_20' ) start [2025-04-05 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837677', 'tblTempUsageDetail_20' ) end [2025-04-05 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837677', 'tblTempVendorCDR_20' ) start [2025-04-05 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837677', 'tblTempVendorCDR_20' ) end [2025-04-05 04:18:18] Production.INFO: ProcessCDR(1,14837677,1,1,2) [2025-04-05 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837677', 'tblTempUsageDetail_20' ) start [2025-04-05 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837677', 'tblTempUsageDetail_20' ) end [2025-04-05 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:18:22] Production.INFO: ==24928== Releasing lock... [2025-04-05 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:19:05 [end_date_ymd] => 2025-04-05 04:19:05 [RateCDR] => 1 ) [2025-04-05 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:19:05' and `end` < '2025-04-05 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:19:18] Production.INFO: count ==599 [2025-04-05 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:19:05 - End Time 2025-04-05 04:19:05 [2025-04-05 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837685', 'tblTempUsageDetail_20' ) start [2025-04-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837685', 'tblTempUsageDetail_20' ) end [2025-04-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837685', 'tblTempVendorCDR_20' ) start [2025-04-05 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837685', 'tblTempVendorCDR_20' ) end [2025-04-05 04:19:18] Production.INFO: ProcessCDR(1,14837685,1,1,2) [2025-04-05 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837685', 'tblTempUsageDetail_20' ) start [2025-04-05 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837685', 'tblTempUsageDetail_20' ) end [2025-04-05 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:19:21] Production.INFO: ==25000== Releasing lock... [2025-04-05 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:20:06 [end_date_ymd] => 2025-04-05 04:20:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:20:06' and `end` < '2025-04-05 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-04-05 04:20:19] Production.INFO: count ==597 [2025-04-05 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:20:06 - End Time 2025-04-05 04:20:06 [2025-04-05 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837690', 'tblTempUsageDetail_20' ) start [2025-04-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837690', 'tblTempUsageDetail_20' ) end [2025-04-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837690', 'tblTempVendorCDR_20' ) start [2025-04-05 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837690', 'tblTempVendorCDR_20' ) end [2025-04-05 04:20:19] Production.INFO: ProcessCDR(1,14837690,1,1,2) [2025-04-05 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837690', 'tblTempUsageDetail_20' ) start [2025-04-05 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837690', 'tblTempUsageDetail_20' ) end [2025-04-05 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:20:22] Production.INFO: ==25074== Releasing lock... [2025-04-05 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:20:22] Production.INFO: 33 MB #Memory Used# [2025-04-05 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:21:05 [end_date_ymd] => 2025-04-05 04:21:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:21:05' and `end` < '2025-04-05 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-04-05 04:21:18] Production.INFO: count ==597 [2025-04-05 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:21:05 - End Time 2025-04-05 04:21:05 [2025-04-05 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837696', 'tblTempUsageDetail_20' ) start [2025-04-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837696', 'tblTempUsageDetail_20' ) end [2025-04-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837696', 'tblTempVendorCDR_20' ) start [2025-04-05 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837696', 'tblTempVendorCDR_20' ) end [2025-04-05 04:21:18] Production.INFO: ProcessCDR(1,14837696,1,1,2) [2025-04-05 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837696', 'tblTempUsageDetail_20' ) start [2025-04-05 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837696', 'tblTempUsageDetail_20' ) end [2025-04-05 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:21:21] Production.INFO: ==25150== Releasing lock... [2025-04-05 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:21:21] Production.INFO: 33 MB #Memory Used# [2025-04-05 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:22:06 [end_date_ymd] => 2025-04-05 04:22:06 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:22:06' and `end` < '2025-04-05 04: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-04-05 04:22:19] Production.INFO: count ==596 [2025-04-05 04:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:22:06 - End Time 2025-04-05 04:22:06 [2025-04-05 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837701', 'tblTempUsageDetail_20' ) start [2025-04-05 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837701', 'tblTempUsageDetail_20' ) end [2025-04-05 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837701', 'tblTempVendorCDR_20' ) start [2025-04-05 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837701', 'tblTempVendorCDR_20' ) end [2025-04-05 04:22:19] Production.INFO: ProcessCDR(1,14837701,1,1,2) [2025-04-05 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837701', 'tblTempUsageDetail_20' ) start [2025-04-05 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837701', 'tblTempUsageDetail_20' ) end [2025-04-05 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:22:22] Production.INFO: ==25258== Releasing lock... [2025-04-05 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:22:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:23:04 [end_date_ymd] => 2025-04-05 04:23:04 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:23:04' and `end` < '2025-04-05 04: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-04-05 04:23:17] Production.INFO: count ==584 [2025-04-05 04:23:17] Production.ERROR: pbx CDR StartTime 2025-04-05 01:23:04 - End Time 2025-04-05 04:23:04 [2025-04-05 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837706', 'tblTempUsageDetail_20' ) start [2025-04-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837706', 'tblTempUsageDetail_20' ) end [2025-04-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837706', 'tblTempVendorCDR_20' ) start [2025-04-05 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837706', 'tblTempVendorCDR_20' ) end [2025-04-05 04:23:17] Production.INFO: ProcessCDR(1,14837706,1,1,2) [2025-04-05 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837706', 'tblTempUsageDetail_20' ) start [2025-04-05 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837706', 'tblTempUsageDetail_20' ) end [2025-04-05 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:23:20] Production.INFO: ==25331== Releasing lock... [2025-04-05 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:23:20] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:24:05 [end_date_ymd] => 2025-04-05 04:24:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:24:05' and `end` < '2025-04-05 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-04-05 04:24:18] Production.INFO: count ==580 [2025-04-05 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:24:05 - End Time 2025-04-05 04:24:05 [2025-04-05 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837711', 'tblTempUsageDetail_20' ) start [2025-04-05 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837711', 'tblTempUsageDetail_20' ) end [2025-04-05 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837711', 'tblTempVendorCDR_20' ) start [2025-04-05 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837711', 'tblTempVendorCDR_20' ) end [2025-04-05 04:24:18] Production.INFO: ProcessCDR(1,14837711,1,1,2) [2025-04-05 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837711', 'tblTempUsageDetail_20' ) start [2025-04-05 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837711', 'tblTempUsageDetail_20' ) end [2025-04-05 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:24:21] Production.INFO: ==25409== Releasing lock... [2025-04-05 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:25:05 [end_date_ymd] => 2025-04-05 04:25:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:25:05' and `end` < '2025-04-05 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-04-05 04:25:18] Production.INFO: count ==580 [2025-04-05 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:25:05 - End Time 2025-04-05 04:25:05 [2025-04-05 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837716', 'tblTempUsageDetail_20' ) start [2025-04-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837716', 'tblTempUsageDetail_20' ) end [2025-04-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837716', 'tblTempVendorCDR_20' ) start [2025-04-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837716', 'tblTempVendorCDR_20' ) end [2025-04-05 04:25:18] Production.INFO: ProcessCDR(1,14837716,1,1,2) [2025-04-05 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837716', 'tblTempUsageDetail_20' ) start [2025-04-05 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837716', 'tblTempUsageDetail_20' ) end [2025-04-05 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:25:21] Production.INFO: ==25478== Releasing lock... [2025-04-05 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:26:05 [end_date_ymd] => 2025-04-05 04:26:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:26:05' and `end` < '2025-04-05 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-04-05 04:26:18] Production.INFO: count ==580 [2025-04-05 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:26:05 - End Time 2025-04-05 04:26:05 [2025-04-05 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837721', 'tblTempUsageDetail_20' ) start [2025-04-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837721', 'tblTempUsageDetail_20' ) end [2025-04-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837721', 'tblTempVendorCDR_20' ) start [2025-04-05 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837721', 'tblTempVendorCDR_20' ) end [2025-04-05 04:26:18] Production.INFO: ProcessCDR(1,14837721,1,1,2) [2025-04-05 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837721', 'tblTempUsageDetail_20' ) start [2025-04-05 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837721', 'tblTempUsageDetail_20' ) end [2025-04-05 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:26:22] Production.INFO: ==25552== Releasing lock... [2025-04-05 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:26:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:27:06 [end_date_ymd] => 2025-04-05 04:27:06 [RateCDR] => 1 ) [2025-04-05 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:27:06' and `end` < '2025-04-05 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:27:19] Production.INFO: count ==569 [2025-04-05 04:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:27:06 - End Time 2025-04-05 04:27:06 [2025-04-05 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837726', 'tblTempUsageDetail_20' ) start [2025-04-05 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837726', 'tblTempUsageDetail_20' ) end [2025-04-05 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837726', 'tblTempVendorCDR_20' ) start [2025-04-05 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837726', 'tblTempVendorCDR_20' ) end [2025-04-05 04:27:19] Production.INFO: ProcessCDR(1,14837726,1,1,2) [2025-04-05 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837726', 'tblTempUsageDetail_20' ) start [2025-04-05 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837726', 'tblTempUsageDetail_20' ) end [2025-04-05 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:27:22] Production.INFO: ==25621== Releasing lock... [2025-04-05 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:27:22] Production.INFO: 33 MB #Memory Used# [2025-04-05 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:28:05 [end_date_ymd] => 2025-04-05 04:28:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:28:05' and `end` < '2025-04-05 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-04-05 04:28:18] Production.INFO: count ==563 [2025-04-05 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:28:05 - End Time 2025-04-05 04:28:05 [2025-04-05 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837731', 'tblTempUsageDetail_20' ) start [2025-04-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837731', 'tblTempUsageDetail_20' ) end [2025-04-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837731', 'tblTempVendorCDR_20' ) start [2025-04-05 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837731', 'tblTempVendorCDR_20' ) end [2025-04-05 04:28:18] Production.INFO: ProcessCDR(1,14837731,1,1,2) [2025-04-05 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837731', 'tblTempUsageDetail_20' ) start [2025-04-05 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837731', 'tblTempUsageDetail_20' ) end [2025-04-05 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:28:21] Production.INFO: ==25695== Releasing lock... [2025-04-05 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:29:05 [end_date_ymd] => 2025-04-05 04:29:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:29:05' and `end` < '2025-04-05 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-04-05 04:29:17] Production.INFO: count ==557 [2025-04-05 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:29:05 - End Time 2025-04-05 04:29:05 [2025-04-05 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837736', 'tblTempUsageDetail_20' ) start [2025-04-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837736', 'tblTempUsageDetail_20' ) end [2025-04-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837736', 'tblTempVendorCDR_20' ) start [2025-04-05 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837736', 'tblTempVendorCDR_20' ) end [2025-04-05 04:29:18] Production.INFO: ProcessCDR(1,14837736,1,1,2) [2025-04-05 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837736', 'tblTempUsageDetail_20' ) start [2025-04-05 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837736', 'tblTempUsageDetail_20' ) end [2025-04-05 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:29:21] Production.INFO: ==25769== Releasing lock... [2025-04-05 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:30:06 [end_date_ymd] => 2025-04-05 04:30:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:30:06' and `end` < '2025-04-05 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-04-05 04:30:19] Production.INFO: count ==547 [2025-04-05 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:30:06 - End Time 2025-04-05 04:30:06 [2025-04-05 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837743', 'tblTempUsageDetail_20' ) start [2025-04-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837743', 'tblTempUsageDetail_20' ) end [2025-04-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837743', 'tblTempVendorCDR_20' ) start [2025-04-05 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837743', 'tblTempVendorCDR_20' ) end [2025-04-05 04:30:19] Production.INFO: ProcessCDR(1,14837743,1,1,2) [2025-04-05 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837743', 'tblTempUsageDetail_20' ) start [2025-04-05 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837743', 'tblTempUsageDetail_20' ) end [2025-04-05 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:30:23] Production.INFO: ==25845== Releasing lock... [2025-04-05 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:30:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:31:05 [end_date_ymd] => 2025-04-05 04:31:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:31:05' and `end` < '2025-04-05 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-04-05 04:31:18] Production.INFO: count ==536 [2025-04-05 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:31:05 - End Time 2025-04-05 04:31:05 [2025-04-05 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837748', 'tblTempUsageDetail_20' ) start [2025-04-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837748', 'tblTempUsageDetail_20' ) end [2025-04-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837748', 'tblTempVendorCDR_20' ) start [2025-04-05 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837748', 'tblTempVendorCDR_20' ) end [2025-04-05 04:31:18] Production.INFO: ProcessCDR(1,14837748,1,1,2) [2025-04-05 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837748', 'tblTempUsageDetail_20' ) start [2025-04-05 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837748', 'tblTempUsageDetail_20' ) end [2025-04-05 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:31:22] Production.INFO: ==26002== Releasing lock... [2025-04-05 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:31:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:32:05 [end_date_ymd] => 2025-04-05 04:32:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:32:05' and `end` < '2025-04-05 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:32:18] Production.INFO: count ==535 [2025-04-05 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:32:05 - End Time 2025-04-05 04:32:05 [2025-04-05 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837753', 'tblTempUsageDetail_20' ) start [2025-04-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837753', 'tblTempUsageDetail_20' ) end [2025-04-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837753', 'tblTempVendorCDR_20' ) start [2025-04-05 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837753', 'tblTempVendorCDR_20' ) end [2025-04-05 04:32:18] Production.INFO: ProcessCDR(1,14837753,1,1,2) [2025-04-05 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837753', 'tblTempUsageDetail_20' ) start [2025-04-05 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837753', 'tblTempUsageDetail_20' ) end [2025-04-05 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:32:21] Production.INFO: ==26071== Releasing lock... [2025-04-05 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:33:05 [end_date_ymd] => 2025-04-05 04:33:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:33:05' and `end` < '2025-04-05 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-04-05 04:33:18] Production.INFO: count ==522 [2025-04-05 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:33:05 - End Time 2025-04-05 04:33:05 [2025-04-05 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837758', 'tblTempUsageDetail_20' ) start [2025-04-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837758', 'tblTempUsageDetail_20' ) end [2025-04-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837758', 'tblTempVendorCDR_20' ) start [2025-04-05 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837758', 'tblTempVendorCDR_20' ) end [2025-04-05 04:33:18] Production.INFO: ProcessCDR(1,14837758,1,1,2) [2025-04-05 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837758', 'tblTempUsageDetail_20' ) start [2025-04-05 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837758', 'tblTempUsageDetail_20' ) end [2025-04-05 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:33:21] Production.INFO: ==26149== Releasing lock... [2025-04-05 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:34:05 [end_date_ymd] => 2025-04-05 04:34:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:34:05' and `end` < '2025-04-05 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-04-05 04:34:18] Production.INFO: count ==515 [2025-04-05 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:34:05 - End Time 2025-04-05 04:34:05 [2025-04-05 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837763', 'tblTempUsageDetail_20' ) start [2025-04-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837763', 'tblTempUsageDetail_20' ) end [2025-04-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837763', 'tblTempVendorCDR_20' ) start [2025-04-05 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837763', 'tblTempVendorCDR_20' ) end [2025-04-05 04:34:18] Production.INFO: ProcessCDR(1,14837763,1,1,2) [2025-04-05 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837763', 'tblTempUsageDetail_20' ) start [2025-04-05 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837763', 'tblTempUsageDetail_20' ) end [2025-04-05 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:34:21] Production.INFO: ==26223== Releasing lock... [2025-04-05 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:34:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:35:05 [end_date_ymd] => 2025-04-05 04:35:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:35:05' and `end` < '2025-04-05 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-04-05 04:35:18] Production.INFO: count ==514 [2025-04-05 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:35:05 - End Time 2025-04-05 04:35:05 [2025-04-05 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837768', 'tblTempUsageDetail_20' ) start [2025-04-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837768', 'tblTempUsageDetail_20' ) end [2025-04-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837768', 'tblTempVendorCDR_20' ) start [2025-04-05 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837768', 'tblTempVendorCDR_20' ) end [2025-04-05 04:35:18] Production.INFO: ProcessCDR(1,14837768,1,1,2) [2025-04-05 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837768', 'tblTempUsageDetail_20' ) start [2025-04-05 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837768', 'tblTempUsageDetail_20' ) end [2025-04-05 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:35:21] Production.INFO: ==26294== Releasing lock... [2025-04-05 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:35:21] Production.INFO: 33 MB #Memory Used# [2025-04-05 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:36:06 [end_date_ymd] => 2025-04-05 04:36:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:36:06' and `end` < '2025-04-05 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-04-05 04:36:19] Production.INFO: count ==510 [2025-04-05 04:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:36:06 - End Time 2025-04-05 04:36:06 [2025-04-05 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837773', 'tblTempUsageDetail_20' ) start [2025-04-05 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837773', 'tblTempUsageDetail_20' ) end [2025-04-05 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837773', 'tblTempVendorCDR_20' ) start [2025-04-05 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837773', 'tblTempVendorCDR_20' ) end [2025-04-05 04:36:19] Production.INFO: ProcessCDR(1,14837773,1,1,2) [2025-04-05 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837773', 'tblTempUsageDetail_20' ) start [2025-04-05 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837773', 'tblTempUsageDetail_20' ) end [2025-04-05 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:36:22] Production.INFO: ==26367== Releasing lock... [2025-04-05 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:37:05 [end_date_ymd] => 2025-04-05 04:37:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:37:05' and `end` < '2025-04-05 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-04-05 04:37:18] Production.INFO: count ==504 [2025-04-05 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:37:05 - End Time 2025-04-05 04:37:05 [2025-04-05 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837778', 'tblTempUsageDetail_20' ) start [2025-04-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837778', 'tblTempUsageDetail_20' ) end [2025-04-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837778', 'tblTempVendorCDR_20' ) start [2025-04-05 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837778', 'tblTempVendorCDR_20' ) end [2025-04-05 04:37:18] Production.INFO: ProcessCDR(1,14837778,1,1,2) [2025-04-05 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837778', 'tblTempUsageDetail_20' ) start [2025-04-05 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837778', 'tblTempUsageDetail_20' ) end [2025-04-05 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:37:21] Production.INFO: ==26477== Releasing lock... [2025-04-05 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:38:05 [end_date_ymd] => 2025-04-05 04:38:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:38:05' and `end` < '2025-04-05 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-04-05 04:38:18] Production.INFO: count ==503 [2025-04-05 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:38:05 - End Time 2025-04-05 04:38:05 [2025-04-05 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837783', 'tblTempUsageDetail_20' ) start [2025-04-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837783', 'tblTempUsageDetail_20' ) end [2025-04-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837783', 'tblTempVendorCDR_20' ) start [2025-04-05 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837783', 'tblTempVendorCDR_20' ) end [2025-04-05 04:38:18] Production.INFO: ProcessCDR(1,14837783,1,1,2) [2025-04-05 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837783', 'tblTempUsageDetail_20' ) start [2025-04-05 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837783', 'tblTempUsageDetail_20' ) end [2025-04-05 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:38:22] Production.INFO: ==26551== Releasing lock... [2025-04-05 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:39:05 [end_date_ymd] => 2025-04-05 04:39:05 [RateCDR] => 1 ) [2025-04-05 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:39:05' and `end` < '2025-04-05 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:39:18] Production.INFO: count ==503 [2025-04-05 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:39:05 - End Time 2025-04-05 04:39:05 [2025-04-05 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837788', 'tblTempUsageDetail_20' ) start [2025-04-05 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837788', 'tblTempUsageDetail_20' ) end [2025-04-05 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837788', 'tblTempVendorCDR_20' ) start [2025-04-05 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837788', 'tblTempVendorCDR_20' ) end [2025-04-05 04:39:18] Production.INFO: ProcessCDR(1,14837788,1,1,2) [2025-04-05 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837788', 'tblTempUsageDetail_20' ) start [2025-04-05 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837788', 'tblTempUsageDetail_20' ) end [2025-04-05 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:39:21] Production.INFO: ==26623== Releasing lock... [2025-04-05 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 04:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:40:07 [end_date_ymd] => 2025-04-05 04:40:07 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:40:07' and `end` < '2025-04-05 04: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-04-05 04:40:20] Production.INFO: count ==506 [2025-04-05 04:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 01:40:07 - End Time 2025-04-05 04:40:07 [2025-04-05 04:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837794', 'tblTempUsageDetail_20' ) start [2025-04-05 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837794', 'tblTempUsageDetail_20' ) end [2025-04-05 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837794', 'tblTempVendorCDR_20' ) start [2025-04-05 04:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837794', 'tblTempVendorCDR_20' ) end [2025-04-05 04:40:20] Production.INFO: ProcessCDR(1,14837794,1,1,2) [2025-04-05 04:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837794', 'tblTempUsageDetail_20' ) start [2025-04-05 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837794', 'tblTempUsageDetail_20' ) end [2025-04-05 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:40:23] Production.INFO: ==26697== Releasing lock... [2025-04-05 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:41:05 [end_date_ymd] => 2025-04-05 04:41:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:41:05' and `end` < '2025-04-05 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-04-05 04:41:17] Production.INFO: count ==506 [2025-04-05 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:41:05 - End Time 2025-04-05 04:41:05 [2025-04-05 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837799', 'tblTempUsageDetail_20' ) start [2025-04-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837799', 'tblTempUsageDetail_20' ) end [2025-04-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837799', 'tblTempVendorCDR_20' ) start [2025-04-05 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837799', 'tblTempVendorCDR_20' ) end [2025-04-05 04:41:18] Production.INFO: ProcessCDR(1,14837799,1,1,2) [2025-04-05 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837799', 'tblTempUsageDetail_20' ) start [2025-04-05 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837799', 'tblTempUsageDetail_20' ) end [2025-04-05 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:41:21] Production.INFO: ==26772== Releasing lock... [2025-04-05 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:42:06 [end_date_ymd] => 2025-04-05 04:42:06 [RateCDR] => 1 ) [2025-04-05 04:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:42:06' and `end` < '2025-04-05 04:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:42:18] Production.INFO: count ==506 [2025-04-05 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:42:06 - End Time 2025-04-05 04:42:06 [2025-04-05 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837804', 'tblTempUsageDetail_20' ) start [2025-04-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837804', 'tblTempUsageDetail_20' ) end [2025-04-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837804', 'tblTempVendorCDR_20' ) start [2025-04-05 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837804', 'tblTempVendorCDR_20' ) end [2025-04-05 04:42:18] Production.INFO: ProcessCDR(1,14837804,1,1,2) [2025-04-05 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837804', 'tblTempUsageDetail_20' ) start [2025-04-05 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837804', 'tblTempUsageDetail_20' ) end [2025-04-05 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:42:22] Production.INFO: ==26841== Releasing lock... [2025-04-05 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:43:05 [end_date_ymd] => 2025-04-05 04:43:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:43:05' and `end` < '2025-04-05 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-04-05 04:43:18] Production.INFO: count ==506 [2025-04-05 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:43:05 - End Time 2025-04-05 04:43:05 [2025-04-05 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837809', 'tblTempUsageDetail_20' ) start [2025-04-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837809', 'tblTempUsageDetail_20' ) end [2025-04-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837809', 'tblTempVendorCDR_20' ) start [2025-04-05 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837809', 'tblTempVendorCDR_20' ) end [2025-04-05 04:43:18] Production.INFO: ProcessCDR(1,14837809,1,1,2) [2025-04-05 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837809', 'tblTempUsageDetail_20' ) start [2025-04-05 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837809', 'tblTempUsageDetail_20' ) end [2025-04-05 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:43:21] Production.INFO: ==26917== Releasing lock... [2025-04-05 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:44:05 [end_date_ymd] => 2025-04-05 04:44:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:44:05' and `end` < '2025-04-05 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-04-05 04:44:18] Production.INFO: count ==506 [2025-04-05 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:44:05 - End Time 2025-04-05 04:44:05 [2025-04-05 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837814', 'tblTempUsageDetail_20' ) start [2025-04-05 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837814', 'tblTempUsageDetail_20' ) end [2025-04-05 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837814', 'tblTempVendorCDR_20' ) start [2025-04-05 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837814', 'tblTempVendorCDR_20' ) end [2025-04-05 04:44:18] Production.INFO: ProcessCDR(1,14837814,1,1,2) [2025-04-05 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837814', 'tblTempUsageDetail_20' ) start [2025-04-05 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837814', 'tblTempUsageDetail_20' ) end [2025-04-05 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:44:21] Production.INFO: ==26990== Releasing lock... [2025-04-05 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:45:04 [end_date_ymd] => 2025-04-05 04:45:04 [RateCDR] => 1 ) [2025-04-05 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:45:04' and `end` < '2025-04-05 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:45:17] Production.INFO: count ==506 [2025-04-05 04:45:17] Production.ERROR: pbx CDR StartTime 2025-04-05 01:45:04 - End Time 2025-04-05 04:45:04 [2025-04-05 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837819', 'tblTempUsageDetail_20' ) start [2025-04-05 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837819', 'tblTempUsageDetail_20' ) end [2025-04-05 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837819', 'tblTempVendorCDR_20' ) start [2025-04-05 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837819', 'tblTempVendorCDR_20' ) end [2025-04-05 04:45:17] Production.INFO: ProcessCDR(1,14837819,1,1,2) [2025-04-05 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837819', 'tblTempUsageDetail_20' ) start [2025-04-05 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837819', 'tblTempUsageDetail_20' ) end [2025-04-05 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:45:20] Production.INFO: ==27061== Releasing lock... [2025-04-05 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:45:20] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:46:05 [end_date_ymd] => 2025-04-05 04:46:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:46:05' and `end` < '2025-04-05 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-04-05 04:46:19] Production.INFO: count ==504 [2025-04-05 04:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:46:05 - End Time 2025-04-05 04:46:05 [2025-04-05 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837824', 'tblTempUsageDetail_20' ) start [2025-04-05 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837824', 'tblTempUsageDetail_20' ) end [2025-04-05 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837824', 'tblTempVendorCDR_20' ) start [2025-04-05 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837824', 'tblTempVendorCDR_20' ) end [2025-04-05 04:46:19] Production.INFO: ProcessCDR(1,14837824,1,1,2) [2025-04-05 04:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837824', 'tblTempUsageDetail_20' ) start [2025-04-05 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837824', 'tblTempUsageDetail_20' ) end [2025-04-05 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:46:23] Production.INFO: ==27134== Releasing lock... [2025-04-05 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:46:23] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:47:05 [end_date_ymd] => 2025-04-05 04:47:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:47:05' and `end` < '2025-04-05 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-04-05 04:47:18] Production.INFO: count ==504 [2025-04-05 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:47:05 - End Time 2025-04-05 04:47:05 [2025-04-05 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837829', 'tblTempUsageDetail_20' ) start [2025-04-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837829', 'tblTempUsageDetail_20' ) end [2025-04-05 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837829', 'tblTempVendorCDR_20' ) start [2025-04-05 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837829', 'tblTempVendorCDR_20' ) end [2025-04-05 04:47:19] Production.INFO: ProcessCDR(1,14837829,1,1,2) [2025-04-05 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837829', 'tblTempUsageDetail_20' ) start [2025-04-05 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837829', 'tblTempUsageDetail_20' ) end [2025-04-05 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:47:22] Production.INFO: ==27205== Releasing lock... [2025-04-05 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:47:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:48:05 [end_date_ymd] => 2025-04-05 04:48:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:48:05' and `end` < '2025-04-05 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-04-05 04:48:19] Production.INFO: count ==504 [2025-04-05 04:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:48:05 - End Time 2025-04-05 04:48:05 [2025-04-05 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837834', 'tblTempUsageDetail_20' ) start [2025-04-05 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837834', 'tblTempUsageDetail_20' ) end [2025-04-05 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837834', 'tblTempVendorCDR_20' ) start [2025-04-05 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837834', 'tblTempVendorCDR_20' ) end [2025-04-05 04:48:19] Production.INFO: ProcessCDR(1,14837834,1,1,2) [2025-04-05 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837834', 'tblTempUsageDetail_20' ) start [2025-04-05 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837834', 'tblTempUsageDetail_20' ) end [2025-04-05 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:48:22] Production.INFO: ==27280== Releasing lock... [2025-04-05 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:49:05 [end_date_ymd] => 2025-04-05 04:49:05 [RateCDR] => 1 ) [2025-04-05 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:49:05' and `end` < '2025-04-05 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:49:19] Production.INFO: count ==500 [2025-04-05 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:49:05 - End Time 2025-04-05 04:49:05 [2025-04-05 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837839', 'tblTempUsageDetail_20' ) start [2025-04-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837839', 'tblTempUsageDetail_20' ) end [2025-04-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837839', 'tblTempVendorCDR_20' ) start [2025-04-05 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837839', 'tblTempVendorCDR_20' ) end [2025-04-05 04:49:19] Production.INFO: ProcessCDR(1,14837839,1,1,2) [2025-04-05 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837839', 'tblTempUsageDetail_20' ) start [2025-04-05 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837839', 'tblTempUsageDetail_20' ) end [2025-04-05 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:49:23] Production.INFO: ==27354== Releasing lock... [2025-04-05 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:49:23] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:50:06 [end_date_ymd] => 2025-04-05 04:50:06 [RateCDR] => 1 ) [2025-04-05 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:50:06' and `end` < '2025-04-05 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:50:19] Production.INFO: count ==489 [2025-04-05 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:50:06 - End Time 2025-04-05 04:50:06 [2025-04-05 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837844', 'tblTempUsageDetail_20' ) start [2025-04-05 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837844', 'tblTempUsageDetail_20' ) end [2025-04-05 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837844', 'tblTempVendorCDR_20' ) start [2025-04-05 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837844', 'tblTempVendorCDR_20' ) end [2025-04-05 04:50:19] Production.INFO: ProcessCDR(1,14837844,1,1,2) [2025-04-05 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837844', 'tblTempUsageDetail_20' ) start [2025-04-05 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837844', 'tblTempUsageDetail_20' ) end [2025-04-05 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:50:22] Production.INFO: ==27425== Releasing lock... [2025-04-05 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:51:06 [end_date_ymd] => 2025-04-05 04:51:06 [RateCDR] => 1 ) [2025-04-05 04: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-04-05 01:51:06' and `end` < '2025-04-05 04: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-04-05 04:51:19] Production.INFO: count ==461 [2025-04-05 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:51:06 - End Time 2025-04-05 04:51:06 [2025-04-05 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837850', 'tblTempUsageDetail_20' ) start [2025-04-05 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837850', 'tblTempUsageDetail_20' ) end [2025-04-05 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837850', 'tblTempVendorCDR_20' ) start [2025-04-05 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837850', 'tblTempVendorCDR_20' ) end [2025-04-05 04:51:19] Production.INFO: ProcessCDR(1,14837850,1,1,2) [2025-04-05 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837850', 'tblTempUsageDetail_20' ) start [2025-04-05 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837850', 'tblTempUsageDetail_20' ) end [2025-04-05 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:51:22] Production.INFO: ==27504== Releasing lock... [2025-04-05 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:51:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:52:05 [end_date_ymd] => 2025-04-05 04:52:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:52:05' and `end` < '2025-04-05 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-04-05 04:52:19] Production.INFO: count ==450 [2025-04-05 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:52:05 - End Time 2025-04-05 04:52:05 [2025-04-05 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837855', 'tblTempUsageDetail_20' ) start [2025-04-05 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837855', 'tblTempUsageDetail_20' ) end [2025-04-05 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837855', 'tblTempVendorCDR_20' ) start [2025-04-05 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837855', 'tblTempVendorCDR_20' ) end [2025-04-05 04:52:19] Production.INFO: ProcessCDR(1,14837855,1,1,2) [2025-04-05 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837855', 'tblTempUsageDetail_20' ) start [2025-04-05 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837855', 'tblTempUsageDetail_20' ) end [2025-04-05 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:52:22] Production.INFO: ==27614== Releasing lock... [2025-04-05 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:53:05 [end_date_ymd] => 2025-04-05 04:53:05 [RateCDR] => 1 ) [2025-04-05 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:53:05' and `end` < '2025-04-05 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:53:18] Production.INFO: count ==439 [2025-04-05 04:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:53:05 - End Time 2025-04-05 04:53:05 [2025-04-05 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837860', 'tblTempUsageDetail_20' ) start [2025-04-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837860', 'tblTempUsageDetail_20' ) end [2025-04-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837860', 'tblTempVendorCDR_20' ) start [2025-04-05 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837860', 'tblTempVendorCDR_20' ) end [2025-04-05 04:53:18] Production.INFO: ProcessCDR(1,14837860,1,1,2) [2025-04-05 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837860', 'tblTempUsageDetail_20' ) start [2025-04-05 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837860', 'tblTempUsageDetail_20' ) end [2025-04-05 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:53:22] Production.INFO: ==27705== Releasing lock... [2025-04-05 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:53:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:54:05 [end_date_ymd] => 2025-04-05 04:54:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:54:05' and `end` < '2025-04-05 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-04-05 04:54:19] Production.INFO: count ==436 [2025-04-05 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:54:05 - End Time 2025-04-05 04:54:05 [2025-04-05 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837865', 'tblTempUsageDetail_20' ) start [2025-04-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837865', 'tblTempUsageDetail_20' ) end [2025-04-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837865', 'tblTempVendorCDR_20' ) start [2025-04-05 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837865', 'tblTempVendorCDR_20' ) end [2025-04-05 04:54:19] Production.INFO: ProcessCDR(1,14837865,1,1,2) [2025-04-05 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837865', 'tblTempUsageDetail_20' ) start [2025-04-05 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837865', 'tblTempUsageDetail_20' ) end [2025-04-05 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:54:22] Production.INFO: ==27777== Releasing lock... [2025-04-05 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:55:05 [end_date_ymd] => 2025-04-05 04:55:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:55:05' and `end` < '2025-04-05 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-04-05 04:55:19] Production.INFO: count ==435 [2025-04-05 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:55:05 - End Time 2025-04-05 04:55:05 [2025-04-05 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837870', 'tblTempUsageDetail_20' ) start [2025-04-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837870', 'tblTempUsageDetail_20' ) end [2025-04-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837870', 'tblTempVendorCDR_20' ) start [2025-04-05 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837870', 'tblTempVendorCDR_20' ) end [2025-04-05 04:55:19] Production.INFO: ProcessCDR(1,14837870,1,1,2) [2025-04-05 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837870', 'tblTempUsageDetail_20' ) start [2025-04-05 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837870', 'tblTempUsageDetail_20' ) end [2025-04-05 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:55:22] Production.INFO: ==27851== Releasing lock... [2025-04-05 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:56:05 [end_date_ymd] => 2025-04-05 04:56:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 01:56:05' and `end` < '2025-04-05 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-04-05 04:56:18] Production.INFO: count ==438 [2025-04-05 04:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:56:05 - End Time 2025-04-05 04:56:05 [2025-04-05 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837875', 'tblTempUsageDetail_20' ) start [2025-04-05 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837875', 'tblTempUsageDetail_20' ) end [2025-04-05 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837875', 'tblTempVendorCDR_20' ) start [2025-04-05 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837875', 'tblTempVendorCDR_20' ) end [2025-04-05 04:56:18] Production.INFO: ProcessCDR(1,14837875,1,1,2) [2025-04-05 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837875', 'tblTempUsageDetail_20' ) start [2025-04-05 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837875', 'tblTempUsageDetail_20' ) end [2025-04-05 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:56:22] Production.INFO: ==27926== Releasing lock... [2025-04-05 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:57:05 [end_date_ymd] => 2025-04-05 04:57:05 [RateCDR] => 1 ) [2025-04-05 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:57:05' and `end` < '2025-04-05 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:57:19] Production.INFO: count ==436 [2025-04-05 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:57:05 - End Time 2025-04-05 04:57:05 [2025-04-05 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837880', 'tblTempUsageDetail_20' ) start [2025-04-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837880', 'tblTempUsageDetail_20' ) end [2025-04-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837880', 'tblTempVendorCDR_20' ) start [2025-04-05 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837880', 'tblTempVendorCDR_20' ) end [2025-04-05 04:57:20] Production.INFO: ProcessCDR(1,14837880,1,1,2) [2025-04-05 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837880', 'tblTempUsageDetail_20' ) start [2025-04-05 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837880', 'tblTempUsageDetail_20' ) end [2025-04-05 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:57:23] Production.INFO: ==27996== Releasing lock... [2025-04-05 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:57:23] Production.INFO: 32 MB #Memory Used# [2025-04-05 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:58:06 [end_date_ymd] => 2025-04-05 04:58:06 [RateCDR] => 1 ) [2025-04-05 04:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:58:06' and `end` < '2025-04-05 04:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:58:19] Production.INFO: count ==434 [2025-04-05 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 01:58:06 - End Time 2025-04-05 04:58:06 [2025-04-05 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837885', 'tblTempUsageDetail_20' ) start [2025-04-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837885', 'tblTempUsageDetail_20' ) end [2025-04-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837885', 'tblTempVendorCDR_20' ) start [2025-04-05 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837885', 'tblTempVendorCDR_20' ) end [2025-04-05 04:58:19] Production.INFO: ProcessCDR(1,14837885,1,1,2) [2025-04-05 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837885', 'tblTempUsageDetail_20' ) start [2025-04-05 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837885', 'tblTempUsageDetail_20' ) end [2025-04-05 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:58:22] Production.INFO: ==28069== Releasing lock... [2025-04-05 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 01:59:05 [end_date_ymd] => 2025-04-05 04:59:05 [RateCDR] => 1 ) [2025-04-05 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 01:59:05' and `end` < '2025-04-05 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 04:59:18] Production.INFO: count ==430 [2025-04-05 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 01:59:05 - End Time 2025-04-05 04:59:05 [2025-04-05 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837890', 'tblTempUsageDetail_20' ) start [2025-04-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837890', 'tblTempUsageDetail_20' ) end [2025-04-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837890', 'tblTempVendorCDR_20' ) start [2025-04-05 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837890', 'tblTempVendorCDR_20' ) end [2025-04-05 04:59:18] Production.INFO: ProcessCDR(1,14837890,1,1,2) [2025-04-05 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837890', 'tblTempUsageDetail_20' ) start [2025-04-05 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837890', 'tblTempUsageDetail_20' ) end [2025-04-05 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 04:59:21] Production.INFO: ==28143== Releasing lock... [2025-04-05 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 04:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:00:06 [end_date_ymd] => 2025-04-05 05:00:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:00:06' and `end` < '2025-04-05 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-04-05 05:00:20] Production.INFO: count ==425 [2025-04-05 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-05 02:00:06 - End Time 2025-04-05 05:00:06 [2025-04-05 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837895', 'tblTempUsageDetail_20' ) start [2025-04-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837895', 'tblTempUsageDetail_20' ) end [2025-04-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837895', 'tblTempVendorCDR_20' ) start [2025-04-05 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837895', 'tblTempVendorCDR_20' ) end [2025-04-05 05:00:20] Production.INFO: ProcessCDR(1,14837895,1,1,2) [2025-04-05 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837895', 'tblTempUsageDetail_20' ) start [2025-04-05 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837895', 'tblTempUsageDetail_20' ) end [2025-04-05 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:00:23] Production.INFO: ==28216== Releasing lock... [2025-04-05 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:01:05 [end_date_ymd] => 2025-04-05 05:01:05 [RateCDR] => 1 ) [2025-04-05 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:01:05' and `end` < '2025-04-05 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:01:19] Production.INFO: count ==423 [2025-04-05 05:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:01:05 - End Time 2025-04-05 05:01:05 [2025-04-05 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837901', 'tblTempUsageDetail_20' ) start [2025-04-05 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837901', 'tblTempUsageDetail_20' ) end [2025-04-05 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837901', 'tblTempVendorCDR_20' ) start [2025-04-05 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837901', 'tblTempVendorCDR_20' ) end [2025-04-05 05:01:19] Production.INFO: ProcessCDR(1,14837901,1,1,2) [2025-04-05 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837901', 'tblTempUsageDetail_20' ) start [2025-04-05 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837901', 'tblTempUsageDetail_20' ) end [2025-04-05 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:01:22] Production.INFO: ==28302== Releasing lock... [2025-04-05 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:01:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:02:05 [end_date_ymd] => 2025-04-05 05:02:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:02:05' and `end` < '2025-04-05 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-04-05 05:02:19] Production.INFO: count ==421 [2025-04-05 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:02:05 - End Time 2025-04-05 05:02:05 [2025-04-05 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837906', 'tblTempUsageDetail_20' ) start [2025-04-05 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837906', 'tblTempUsageDetail_20' ) end [2025-04-05 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837906', 'tblTempVendorCDR_20' ) start [2025-04-05 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837906', 'tblTempVendorCDR_20' ) end [2025-04-05 05:02:19] Production.INFO: ProcessCDR(1,14837906,1,1,2) [2025-04-05 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837906', 'tblTempUsageDetail_20' ) start [2025-04-05 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837906', 'tblTempUsageDetail_20' ) end [2025-04-05 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:02:23] Production.INFO: ==28375== Releasing lock... [2025-04-05 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:02:23] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:03:05 [end_date_ymd] => 2025-04-05 05:03:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:03:05' and `end` < '2025-04-05 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-04-05 05:03:18] Production.INFO: count ==427 [2025-04-05 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:03:05 - End Time 2025-04-05 05:03:05 [2025-04-05 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837911', 'tblTempUsageDetail_20' ) start [2025-04-05 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837911', 'tblTempUsageDetail_20' ) end [2025-04-05 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837911', 'tblTempVendorCDR_20' ) start [2025-04-05 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837911', 'tblTempVendorCDR_20' ) end [2025-04-05 05:03:18] Production.INFO: ProcessCDR(1,14837911,1,1,2) [2025-04-05 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837911', 'tblTempUsageDetail_20' ) start [2025-04-05 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837911', 'tblTempUsageDetail_20' ) end [2025-04-05 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:03:21] Production.INFO: ==28455== Releasing lock... [2025-04-05 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:04:05 [end_date_ymd] => 2025-04-05 05:04:05 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:04:05' and `end` < '2025-04-05 05: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-04-05 05:04:18] Production.INFO: count ==430 [2025-04-05 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:04:05 - End Time 2025-04-05 05:04:05 [2025-04-05 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837916', 'tblTempUsageDetail_20' ) start [2025-04-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837916', 'tblTempUsageDetail_20' ) end [2025-04-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837916', 'tblTempVendorCDR_20' ) start [2025-04-05 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837916', 'tblTempVendorCDR_20' ) end [2025-04-05 05:04:18] Production.INFO: ProcessCDR(1,14837916,1,1,2) [2025-04-05 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837916', 'tblTempUsageDetail_20' ) start [2025-04-05 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837916', 'tblTempUsageDetail_20' ) end [2025-04-05 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:04:22] Production.INFO: ==28531== Releasing lock... [2025-04-05 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:04:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:05:06 [end_date_ymd] => 2025-04-05 05:05:06 [RateCDR] => 1 ) [2025-04-05 05:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:05:06' and `end` < '2025-04-05 05:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:05:19] Production.INFO: count ==434 [2025-04-05 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:05:06 - End Time 2025-04-05 05:05:06 [2025-04-05 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837921', 'tblTempUsageDetail_20' ) start [2025-04-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837921', 'tblTempUsageDetail_20' ) end [2025-04-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837921', 'tblTempVendorCDR_20' ) start [2025-04-05 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837921', 'tblTempVendorCDR_20' ) end [2025-04-05 05:05:19] Production.INFO: ProcessCDR(1,14837921,1,1,2) [2025-04-05 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837921', 'tblTempUsageDetail_20' ) start [2025-04-05 05:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837921', 'tblTempUsageDetail_20' ) end [2025-04-05 05:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:05:24] Production.INFO: ==28603== Releasing lock... [2025-04-05 05:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:05:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:06:05 [end_date_ymd] => 2025-04-05 05:06:05 [RateCDR] => 1 ) [2025-04-05 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:06:05' and `end` < '2025-04-05 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:06:18] Production.INFO: count ==436 [2025-04-05 05:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:06:05 - End Time 2025-04-05 05:06:05 [2025-04-05 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837926', 'tblTempUsageDetail_20' ) start [2025-04-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837926', 'tblTempUsageDetail_20' ) end [2025-04-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837926', 'tblTempVendorCDR_20' ) start [2025-04-05 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837926', 'tblTempVendorCDR_20' ) end [2025-04-05 05:06:18] Production.INFO: ProcessCDR(1,14837926,1,1,2) [2025-04-05 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837926', 'tblTempUsageDetail_20' ) start [2025-04-05 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837926', 'tblTempUsageDetail_20' ) end [2025-04-05 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:06:21] Production.INFO: ==28675== Releasing lock... [2025-04-05 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:07:05 [end_date_ymd] => 2025-04-05 05:07:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:07:05' and `end` < '2025-04-05 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-04-05 05:07:19] Production.INFO: count ==432 [2025-04-05 05:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:07:05 - End Time 2025-04-05 05:07:05 [2025-04-05 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837931', 'tblTempUsageDetail_20' ) start [2025-04-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837931', 'tblTempUsageDetail_20' ) end [2025-04-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837931', 'tblTempVendorCDR_20' ) start [2025-04-05 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837931', 'tblTempVendorCDR_20' ) end [2025-04-05 05:07:19] Production.INFO: ProcessCDR(1,14837931,1,1,2) [2025-04-05 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837931', 'tblTempUsageDetail_20' ) start [2025-04-05 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837931', 'tblTempUsageDetail_20' ) end [2025-04-05 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:07:22] Production.INFO: ==28746== Releasing lock... [2025-04-05 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:07:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:08:05 [end_date_ymd] => 2025-04-05 05:08:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:08:05' and `end` < '2025-04-05 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-04-05 05:08:18] Production.INFO: count ==431 [2025-04-05 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:08:05 - End Time 2025-04-05 05:08:05 [2025-04-05 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837936', 'tblTempUsageDetail_20' ) start [2025-04-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837936', 'tblTempUsageDetail_20' ) end [2025-04-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837936', 'tblTempVendorCDR_20' ) start [2025-04-05 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837936', 'tblTempVendorCDR_20' ) end [2025-04-05 05:08:18] Production.INFO: ProcessCDR(1,14837936,1,1,2) [2025-04-05 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837936', 'tblTempUsageDetail_20' ) start [2025-04-05 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837936', 'tblTempUsageDetail_20' ) end [2025-04-05 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:08:21] Production.INFO: ==28857== Releasing lock... [2025-04-05 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:09:06 [end_date_ymd] => 2025-04-05 05:09:06 [RateCDR] => 1 ) [2025-04-05 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:09:06' and `end` < '2025-04-05 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:09:18] Production.INFO: count ==431 [2025-04-05 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:09:06 - End Time 2025-04-05 05:09:06 [2025-04-05 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837941', 'tblTempUsageDetail_20' ) start [2025-04-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837941', 'tblTempUsageDetail_20' ) end [2025-04-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837941', 'tblTempVendorCDR_20' ) start [2025-04-05 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837941', 'tblTempVendorCDR_20' ) end [2025-04-05 05:09:18] Production.INFO: ProcessCDR(1,14837941,1,1,2) [2025-04-05 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837941', 'tblTempUsageDetail_20' ) start [2025-04-05 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837941', 'tblTempUsageDetail_20' ) end [2025-04-05 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:09:22] Production.INFO: ==28929== Releasing lock... [2025-04-05 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:09:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:10:06 [end_date_ymd] => 2025-04-05 05:10:06 [RateCDR] => 1 ) [2025-04-05 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:10:06' and `end` < '2025-04-05 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:10:19] Production.INFO: count ==423 [2025-04-05 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:10:06 - End Time 2025-04-05 05:10:06 [2025-04-05 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837947', 'tblTempUsageDetail_20' ) start [2025-04-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837947', 'tblTempUsageDetail_20' ) end [2025-04-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837947', 'tblTempVendorCDR_20' ) start [2025-04-05 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837947', 'tblTempVendorCDR_20' ) end [2025-04-05 05:10:19] Production.INFO: ProcessCDR(1,14837947,1,1,2) [2025-04-05 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837947', 'tblTempUsageDetail_20' ) start [2025-04-05 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837947', 'tblTempUsageDetail_20' ) end [2025-04-05 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:10:22] Production.INFO: ==29002== Releasing lock... [2025-04-05 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:10:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:11:05 [end_date_ymd] => 2025-04-05 05:11:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:11:05' and `end` < '2025-04-05 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-04-05 05:11:18] Production.INFO: count ==421 [2025-04-05 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:11:05 - End Time 2025-04-05 05:11:05 [2025-04-05 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837951', 'tblTempUsageDetail_20' ) start [2025-04-05 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837951', 'tblTempUsageDetail_20' ) end [2025-04-05 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837951', 'tblTempVendorCDR_20' ) start [2025-04-05 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837951', 'tblTempVendorCDR_20' ) end [2025-04-05 05:11:18] Production.INFO: ProcessCDR(1,14837951,1,1,2) [2025-04-05 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837951', 'tblTempUsageDetail_20' ) start [2025-04-05 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837951', 'tblTempUsageDetail_20' ) end [2025-04-05 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:11:21] Production.INFO: ==29077== Releasing lock... [2025-04-05 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:12:05 [end_date_ymd] => 2025-04-05 05:12:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:12:05' and `end` < '2025-04-05 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-04-05 05:12:18] Production.INFO: count ==418 [2025-04-05 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:12:05 - End Time 2025-04-05 05:12:05 [2025-04-05 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837957', 'tblTempUsageDetail_20' ) start [2025-04-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837957', 'tblTempUsageDetail_20' ) end [2025-04-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837957', 'tblTempVendorCDR_20' ) start [2025-04-05 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837957', 'tblTempVendorCDR_20' ) end [2025-04-05 05:12:18] Production.INFO: ProcessCDR(1,14837957,1,1,2) [2025-04-05 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837957', 'tblTempUsageDetail_20' ) start [2025-04-05 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837957', 'tblTempUsageDetail_20' ) end [2025-04-05 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:12:21] Production.INFO: ==29149== Releasing lock... [2025-04-05 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:13:06 [end_date_ymd] => 2025-04-05 05:13:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:13:06' and `end` < '2025-04-05 05: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-04-05 05:13:19] Production.INFO: count ==422 [2025-04-05 05:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:13:06 - End Time 2025-04-05 05:13:06 [2025-04-05 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837962', 'tblTempUsageDetail_20' ) start [2025-04-05 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837962', 'tblTempUsageDetail_20' ) end [2025-04-05 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837962', 'tblTempVendorCDR_20' ) start [2025-04-05 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837962', 'tblTempVendorCDR_20' ) end [2025-04-05 05:13:19] Production.INFO: ProcessCDR(1,14837962,1,1,2) [2025-04-05 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837962', 'tblTempUsageDetail_20' ) start [2025-04-05 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837962', 'tblTempUsageDetail_20' ) end [2025-04-05 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:13:22] Production.INFO: ==29220== Releasing lock... [2025-04-05 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:14:05 [end_date_ymd] => 2025-04-05 05:14:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:14:05' and `end` < '2025-04-05 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-04-05 05:14:18] Production.INFO: count ==422 [2025-04-05 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:14:05 - End Time 2025-04-05 05:14:05 [2025-04-05 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837967', 'tblTempUsageDetail_20' ) start [2025-04-05 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837967', 'tblTempUsageDetail_20' ) end [2025-04-05 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837967', 'tblTempVendorCDR_20' ) start [2025-04-05 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837967', 'tblTempVendorCDR_20' ) end [2025-04-05 05:14:18] Production.INFO: ProcessCDR(1,14837967,1,1,2) [2025-04-05 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837967', 'tblTempUsageDetail_20' ) start [2025-04-05 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837967', 'tblTempUsageDetail_20' ) end [2025-04-05 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:14:22] Production.INFO: ==29294== Releasing lock... [2025-04-05 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:15:06 [end_date_ymd] => 2025-04-05 05:15:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:15:06' and `end` < '2025-04-05 05: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-04-05 05:15:19] Production.INFO: count ==414 [2025-04-05 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:15:06 - End Time 2025-04-05 05:15:06 [2025-04-05 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837972', 'tblTempUsageDetail_20' ) start [2025-04-05 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837972', 'tblTempUsageDetail_20' ) end [2025-04-05 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837972', 'tblTempVendorCDR_20' ) start [2025-04-05 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837972', 'tblTempVendorCDR_20' ) end [2025-04-05 05:15:19] Production.INFO: ProcessCDR(1,14837972,1,1,2) [2025-04-05 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837972', 'tblTempUsageDetail_20' ) start [2025-04-05 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837972', 'tblTempUsageDetail_20' ) end [2025-04-05 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:15:22] Production.INFO: ==29366== Releasing lock... [2025-04-05 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:15:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:16:05 [end_date_ymd] => 2025-04-05 05:16:05 [RateCDR] => 1 ) [2025-04-05 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:16:05' and `end` < '2025-04-05 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:16:18] Production.INFO: count ==415 [2025-04-05 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:16:05 - End Time 2025-04-05 05:16:05 [2025-04-05 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837977', 'tblTempUsageDetail_20' ) start [2025-04-05 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837977', 'tblTempUsageDetail_20' ) end [2025-04-05 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837977', 'tblTempVendorCDR_20' ) start [2025-04-05 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837977', 'tblTempVendorCDR_20' ) end [2025-04-05 05:16:18] Production.INFO: ProcessCDR(1,14837977,1,1,2) [2025-04-05 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837977', 'tblTempUsageDetail_20' ) start [2025-04-05 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837977', 'tblTempUsageDetail_20' ) end [2025-04-05 05:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:16:23] Production.INFO: ==29445== Releasing lock... [2025-04-05 05:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:16:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:17:05 [end_date_ymd] => 2025-04-05 05:17:05 [RateCDR] => 1 ) [2025-04-05 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:17:05' and `end` < '2025-04-05 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:17:18] Production.INFO: count ==414 [2025-04-05 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:17:05 - End Time 2025-04-05 05:17:05 [2025-04-05 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837982', 'tblTempUsageDetail_20' ) start [2025-04-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837982', 'tblTempUsageDetail_20' ) end [2025-04-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837982', 'tblTempVendorCDR_20' ) start [2025-04-05 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837982', 'tblTempVendorCDR_20' ) end [2025-04-05 05:17:18] Production.INFO: ProcessCDR(1,14837982,1,1,2) [2025-04-05 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837982', 'tblTempUsageDetail_20' ) start [2025-04-05 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837982', 'tblTempUsageDetail_20' ) end [2025-04-05 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:17:21] Production.INFO: ==29518== Releasing lock... [2025-04-05 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:18:05 [end_date_ymd] => 2025-04-05 05:18:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:18:05' and `end` < '2025-04-05 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-04-05 05:18:17] Production.INFO: count ==412 [2025-04-05 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:18:05 - End Time 2025-04-05 05:18:05 [2025-04-05 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837987', 'tblTempUsageDetail_20' ) start [2025-04-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837987', 'tblTempUsageDetail_20' ) end [2025-04-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837987', 'tblTempVendorCDR_20' ) start [2025-04-05 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837987', 'tblTempVendorCDR_20' ) end [2025-04-05 05:18:18] Production.INFO: ProcessCDR(1,14837987,1,1,2) [2025-04-05 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837987', 'tblTempUsageDetail_20' ) start [2025-04-05 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837987', 'tblTempUsageDetail_20' ) end [2025-04-05 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:18:21] Production.INFO: ==29601== Releasing lock... [2025-04-05 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:19:06 [end_date_ymd] => 2025-04-05 05:19:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:19:06' and `end` < '2025-04-05 05: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-04-05 05:19:18] Production.INFO: count ==416 [2025-04-05 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:19:06 - End Time 2025-04-05 05:19:06 [2025-04-05 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837992', 'tblTempUsageDetail_20' ) start [2025-04-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837992', 'tblTempUsageDetail_20' ) end [2025-04-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837992', 'tblTempVendorCDR_20' ) start [2025-04-05 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837992', 'tblTempVendorCDR_20' ) end [2025-04-05 05:19:18] Production.INFO: ProcessCDR(1,14837992,1,1,2) [2025-04-05 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837992', 'tblTempUsageDetail_20' ) start [2025-04-05 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837992', 'tblTempUsageDetail_20' ) end [2025-04-05 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:19:22] Production.INFO: ==29674== Releasing lock... [2025-04-05 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:19:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:20:06 [end_date_ymd] => 2025-04-05 05:20:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:20:06' and `end` < '2025-04-05 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-04-05 05:20:19] Production.INFO: count ==420 [2025-04-05 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:20:06 - End Time 2025-04-05 05:20:06 [2025-04-05 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837998', 'tblTempUsageDetail_20' ) start [2025-04-05 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14837998', 'tblTempUsageDetail_20' ) end [2025-04-05 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837998', 'tblTempVendorCDR_20' ) start [2025-04-05 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14837998', 'tblTempVendorCDR_20' ) end [2025-04-05 05:20:19] Production.INFO: ProcessCDR(1,14837998,1,1,2) [2025-04-05 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14837998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14837998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14837998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14837998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837998', 'tblTempUsageDetail_20' ) start [2025-04-05 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14837998', 'tblTempUsageDetail_20' ) end [2025-04-05 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:20:22] Production.INFO: ==29747== Releasing lock... [2025-04-05 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:20:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:21:05 [end_date_ymd] => 2025-04-05 05:21:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:21:05' and `end` < '2025-04-05 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-04-05 05:21:18] Production.INFO: count ==417 [2025-04-05 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:21:05 - End Time 2025-04-05 05:21:05 [2025-04-05 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838003', 'tblTempUsageDetail_20' ) start [2025-04-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838003', 'tblTempUsageDetail_20' ) end [2025-04-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838003', 'tblTempVendorCDR_20' ) start [2025-04-05 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838003', 'tblTempVendorCDR_20' ) end [2025-04-05 05:21:18] Production.INFO: ProcessCDR(1,14838003,1,1,2) [2025-04-05 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838003', 'tblTempUsageDetail_20' ) start [2025-04-05 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838003', 'tblTempUsageDetail_20' ) end [2025-04-05 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:21:21] Production.INFO: ==29823== Releasing lock... [2025-04-05 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:22:06 [end_date_ymd] => 2025-04-05 05:22:06 [RateCDR] => 1 ) [2025-04-05 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:22:06' and `end` < '2025-04-05 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:22:18] Production.INFO: count ==417 [2025-04-05 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:22:06 - End Time 2025-04-05 05:22:06 [2025-04-05 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838008', 'tblTempUsageDetail_20' ) start [2025-04-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838008', 'tblTempUsageDetail_20' ) end [2025-04-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838008', 'tblTempVendorCDR_20' ) start [2025-04-05 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838008', 'tblTempVendorCDR_20' ) end [2025-04-05 05:22:18] Production.INFO: ProcessCDR(1,14838008,1,1,2) [2025-04-05 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838008', 'tblTempUsageDetail_20' ) start [2025-04-05 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838008', 'tblTempUsageDetail_20' ) end [2025-04-05 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:22:22] Production.INFO: ==29900== Releasing lock... [2025-04-05 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:22:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:23:05 [end_date_ymd] => 2025-04-05 05:23:05 [RateCDR] => 1 ) [2025-04-05 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:23:05' and `end` < '2025-04-05 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:23:18] Production.INFO: count ==415 [2025-04-05 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:23:05 - End Time 2025-04-05 05:23:05 [2025-04-05 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838013', 'tblTempUsageDetail_20' ) start [2025-04-05 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838013', 'tblTempUsageDetail_20' ) end [2025-04-05 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838013', 'tblTempVendorCDR_20' ) start [2025-04-05 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838013', 'tblTempVendorCDR_20' ) end [2025-04-05 05:23:18] Production.INFO: ProcessCDR(1,14838013,1,1,2) [2025-04-05 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838013', 'tblTempUsageDetail_20' ) start [2025-04-05 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838013', 'tblTempUsageDetail_20' ) end [2025-04-05 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:23:21] Production.INFO: ==30009== Releasing lock... [2025-04-05 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:24:06 [end_date_ymd] => 2025-04-05 05:24:06 [RateCDR] => 1 ) [2025-04-05 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:24:06' and `end` < '2025-04-05 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:24:19] Production.INFO: count ==416 [2025-04-05 05:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:24:06 - End Time 2025-04-05 05:24:06 [2025-04-05 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838018', 'tblTempUsageDetail_20' ) start [2025-04-05 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838018', 'tblTempUsageDetail_20' ) end [2025-04-05 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838018', 'tblTempVendorCDR_20' ) start [2025-04-05 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838018', 'tblTempVendorCDR_20' ) end [2025-04-05 05:24:19] Production.INFO: ProcessCDR(1,14838018,1,1,2) [2025-04-05 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838018', 'tblTempUsageDetail_20' ) start [2025-04-05 05:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838018', 'tblTempUsageDetail_20' ) end [2025-04-05 05:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:24:24] Production.INFO: ==30081== Releasing lock... [2025-04-05 05:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:24:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:25:06 [end_date_ymd] => 2025-04-05 05:25:06 [RateCDR] => 1 ) [2025-04-05 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:25:06' and `end` < '2025-04-05 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:25:18] Production.INFO: count ==417 [2025-04-05 05:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:25:06 - End Time 2025-04-05 05:25:06 [2025-04-05 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838023', 'tblTempUsageDetail_20' ) start [2025-04-05 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838023', 'tblTempUsageDetail_20' ) end [2025-04-05 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838023', 'tblTempVendorCDR_20' ) start [2025-04-05 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838023', 'tblTempVendorCDR_20' ) end [2025-04-05 05:25:19] Production.INFO: ProcessCDR(1,14838023,1,1,2) [2025-04-05 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838023', 'tblTempUsageDetail_20' ) start [2025-04-05 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838023', 'tblTempUsageDetail_20' ) end [2025-04-05 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:25:22] Production.INFO: ==30152== Releasing lock... [2025-04-05 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:25:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:26:06 [end_date_ymd] => 2025-04-05 05:26:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:26:06' and `end` < '2025-04-05 05: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-04-05 05:26:18] Production.INFO: count ==420 [2025-04-05 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:26:06 - End Time 2025-04-05 05:26:06 [2025-04-05 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838028', 'tblTempUsageDetail_20' ) start [2025-04-05 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838028', 'tblTempUsageDetail_20' ) end [2025-04-05 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838028', 'tblTempVendorCDR_20' ) start [2025-04-05 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838028', 'tblTempVendorCDR_20' ) end [2025-04-05 05:26:18] Production.INFO: ProcessCDR(1,14838028,1,1,2) [2025-04-05 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838028', 'tblTempUsageDetail_20' ) start [2025-04-05 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838028', 'tblTempUsageDetail_20' ) end [2025-04-05 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:26:22] Production.INFO: ==30228== Releasing lock... [2025-04-05 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:27:05 [end_date_ymd] => 2025-04-05 05:27:05 [RateCDR] => 1 ) [2025-04-05 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:27:05' and `end` < '2025-04-05 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:27:18] Production.INFO: count ==418 [2025-04-05 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:27:05 - End Time 2025-04-05 05:27:05 [2025-04-05 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838033', 'tblTempUsageDetail_20' ) start [2025-04-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838033', 'tblTempUsageDetail_20' ) end [2025-04-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838033', 'tblTempVendorCDR_20' ) start [2025-04-05 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838033', 'tblTempVendorCDR_20' ) end [2025-04-05 05:27:18] Production.INFO: ProcessCDR(1,14838033,1,1,2) [2025-04-05 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838033', 'tblTempUsageDetail_20' ) start [2025-04-05 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838033', 'tblTempUsageDetail_20' ) end [2025-04-05 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:27:22] Production.INFO: ==30301== Releasing lock... [2025-04-05 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:28:05 [end_date_ymd] => 2025-04-05 05:28:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:28:05' and `end` < '2025-04-05 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-04-05 05:28:18] Production.INFO: count ==418 [2025-04-05 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:28:05 - End Time 2025-04-05 05:28:05 [2025-04-05 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838038', 'tblTempUsageDetail_20' ) start [2025-04-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838038', 'tblTempUsageDetail_20' ) end [2025-04-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838038', 'tblTempVendorCDR_20' ) start [2025-04-05 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838038', 'tblTempVendorCDR_20' ) end [2025-04-05 05:28:18] Production.INFO: ProcessCDR(1,14838038,1,1,2) [2025-04-05 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838038', 'tblTempUsageDetail_20' ) start [2025-04-05 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838038', 'tblTempUsageDetail_20' ) end [2025-04-05 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:28:21] Production.INFO: ==30372== Releasing lock... [2025-04-05 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:29:04 [end_date_ymd] => 2025-04-05 05:29:04 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:29:04' and `end` < '2025-04-05 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-04-05 05:29:17] Production.INFO: count ==418 [2025-04-05 05:29:17] Production.ERROR: pbx CDR StartTime 2025-04-05 02:29:04 - End Time 2025-04-05 05:29:04 [2025-04-05 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838043', 'tblTempUsageDetail_20' ) start [2025-04-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838043', 'tblTempUsageDetail_20' ) end [2025-04-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838043', 'tblTempVendorCDR_20' ) start [2025-04-05 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838043', 'tblTempVendorCDR_20' ) end [2025-04-05 05:29:17] Production.INFO: ProcessCDR(1,14838043,1,1,2) [2025-04-05 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838043', 'tblTempUsageDetail_20' ) start [2025-04-05 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838043', 'tblTempUsageDetail_20' ) end [2025-04-05 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:29:21] Production.INFO: ==30443== Releasing lock... [2025-04-05 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:30:06 [end_date_ymd] => 2025-04-05 05:30:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:30:06' and `end` < '2025-04-05 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-04-05 05:30:19] Production.INFO: count ==408 [2025-04-05 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:30:06 - End Time 2025-04-05 05:30:06 [2025-04-05 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838048', 'tblTempUsageDetail_20' ) start [2025-04-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838048', 'tblTempUsageDetail_20' ) end [2025-04-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838048', 'tblTempVendorCDR_20' ) start [2025-04-05 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838048', 'tblTempVendorCDR_20' ) end [2025-04-05 05:30:19] Production.INFO: ProcessCDR(1,14838048,1,1,2) [2025-04-05 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838048', 'tblTempUsageDetail_20' ) start [2025-04-05 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838048', 'tblTempUsageDetail_20' ) end [2025-04-05 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:30:22] Production.INFO: ==30517== Releasing lock... [2025-04-05 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:31:05 [end_date_ymd] => 2025-04-05 05:31:05 [RateCDR] => 1 ) [2025-04-05 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:31:05' and `end` < '2025-04-05 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:31:17] Production.INFO: count ==408 [2025-04-05 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-05 02:31:05 - End Time 2025-04-05 05:31:05 [2025-04-05 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838054', 'tblTempUsageDetail_20' ) start [2025-04-05 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838054', 'tblTempUsageDetail_20' ) end [2025-04-05 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838054', 'tblTempVendorCDR_20' ) start [2025-04-05 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838054', 'tblTempVendorCDR_20' ) end [2025-04-05 05:31:17] Production.INFO: ProcessCDR(1,14838054,1,1,2) [2025-04-05 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838054', 'tblTempUsageDetail_20' ) start [2025-04-05 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838054', 'tblTempUsageDetail_20' ) end [2025-04-05 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:31:21] Production.INFO: ==30591== Releasing lock... [2025-04-05 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:32:05 [end_date_ymd] => 2025-04-05 05:32:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:32:05' and `end` < '2025-04-05 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-04-05 05:32:18] Production.INFO: count ==401 [2025-04-05 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:32:05 - End Time 2025-04-05 05:32:05 [2025-04-05 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838059', 'tblTempUsageDetail_20' ) start [2025-04-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838059', 'tblTempUsageDetail_20' ) end [2025-04-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838059', 'tblTempVendorCDR_20' ) start [2025-04-05 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838059', 'tblTempVendorCDR_20' ) end [2025-04-05 05:32:18] Production.INFO: ProcessCDR(1,14838059,1,1,2) [2025-04-05 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838059', 'tblTempUsageDetail_20' ) start [2025-04-05 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838059', 'tblTempUsageDetail_20' ) end [2025-04-05 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:32:21] Production.INFO: ==30669== Releasing lock... [2025-04-05 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:33:04 [end_date_ymd] => 2025-04-05 05:33:04 [RateCDR] => 1 ) [2025-04-05 05:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:33:04' and `end` < '2025-04-05 05:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:33:17] Production.INFO: count ==400 [2025-04-05 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-05 02:33:04 - End Time 2025-04-05 05:33:04 [2025-04-05 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838064', 'tblTempUsageDetail_20' ) start [2025-04-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838064', 'tblTempUsageDetail_20' ) end [2025-04-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838064', 'tblTempVendorCDR_20' ) start [2025-04-05 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838064', 'tblTempVendorCDR_20' ) end [2025-04-05 05:33:17] Production.INFO: ProcessCDR(1,14838064,1,1,2) [2025-04-05 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838064', 'tblTempUsageDetail_20' ) start [2025-04-05 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838064', 'tblTempUsageDetail_20' ) end [2025-04-05 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:33:20] Production.INFO: ==30746== Releasing lock... [2025-04-05 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:33:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:34:05 [end_date_ymd] => 2025-04-05 05:34:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:34:05' and `end` < '2025-04-05 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-04-05 05:34:18] Production.INFO: count ==399 [2025-04-05 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:34:05 - End Time 2025-04-05 05:34:05 [2025-04-05 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838069', 'tblTempUsageDetail_20' ) start [2025-04-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838069', 'tblTempUsageDetail_20' ) end [2025-04-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838069', 'tblTempVendorCDR_20' ) start [2025-04-05 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838069', 'tblTempVendorCDR_20' ) end [2025-04-05 05:34:18] Production.INFO: ProcessCDR(1,14838069,1,1,2) [2025-04-05 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838069', 'tblTempUsageDetail_20' ) start [2025-04-05 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838069', 'tblTempUsageDetail_20' ) end [2025-04-05 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:34:22] Production.INFO: ==30821== Releasing lock... [2025-04-05 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:35:05 [end_date_ymd] => 2025-04-05 05:35:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:35:05' and `end` < '2025-04-05 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-04-05 05:35:18] Production.INFO: count ==397 [2025-04-05 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:35:05 - End Time 2025-04-05 05:35:05 [2025-04-05 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838074', 'tblTempUsageDetail_20' ) start [2025-04-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838074', 'tblTempUsageDetail_20' ) end [2025-04-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838074', 'tblTempVendorCDR_20' ) start [2025-04-05 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838074', 'tblTempVendorCDR_20' ) end [2025-04-05 05:35:18] Production.INFO: ProcessCDR(1,14838074,1,1,2) [2025-04-05 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838074', 'tblTempUsageDetail_20' ) start [2025-04-05 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838074', 'tblTempUsageDetail_20' ) end [2025-04-05 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:35:22] Production.INFO: ==30892== Releasing lock... [2025-04-05 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:35:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:36:05 [end_date_ymd] => 2025-04-05 05:36:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:36:05' and `end` < '2025-04-05 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-04-05 05:36:18] Production.INFO: count ==397 [2025-04-05 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:36:05 - End Time 2025-04-05 05:36:05 [2025-04-05 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838079', 'tblTempUsageDetail_20' ) start [2025-04-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838079', 'tblTempUsageDetail_20' ) end [2025-04-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838079', 'tblTempVendorCDR_20' ) start [2025-04-05 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838079', 'tblTempVendorCDR_20' ) end [2025-04-05 05:36:18] Production.INFO: ProcessCDR(1,14838079,1,1,2) [2025-04-05 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838079', 'tblTempUsageDetail_20' ) start [2025-04-05 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838079', 'tblTempUsageDetail_20' ) end [2025-04-05 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:36:21] Production.INFO: ==30964== Releasing lock... [2025-04-05 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:37:05 [end_date_ymd] => 2025-04-05 05:37:05 [RateCDR] => 1 ) [2025-04-05 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:37:05' and `end` < '2025-04-05 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:37:18] Production.INFO: count ==393 [2025-04-05 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:37:05 - End Time 2025-04-05 05:37:05 [2025-04-05 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838084', 'tblTempUsageDetail_20' ) start [2025-04-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838084', 'tblTempUsageDetail_20' ) end [2025-04-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838084', 'tblTempVendorCDR_20' ) start [2025-04-05 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838084', 'tblTempVendorCDR_20' ) end [2025-04-05 05:37:18] Production.INFO: ProcessCDR(1,14838084,1,1,2) [2025-04-05 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838084', 'tblTempUsageDetail_20' ) start [2025-04-05 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838084', 'tblTempUsageDetail_20' ) end [2025-04-05 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:37:22] Production.INFO: ==31036== Releasing lock... [2025-04-05 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:37:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:38:05 [end_date_ymd] => 2025-04-05 05:38:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:38:05' and `end` < '2025-04-05 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-04-05 05:38:17] Production.INFO: count ==393 [2025-04-05 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:38:05 - End Time 2025-04-05 05:38:05 [2025-04-05 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838089', 'tblTempUsageDetail_20' ) start [2025-04-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838089', 'tblTempUsageDetail_20' ) end [2025-04-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838089', 'tblTempVendorCDR_20' ) start [2025-04-05 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838089', 'tblTempVendorCDR_20' ) end [2025-04-05 05:38:18] Production.INFO: ProcessCDR(1,14838089,1,1,2) [2025-04-05 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838089', 'tblTempUsageDetail_20' ) start [2025-04-05 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838089', 'tblTempUsageDetail_20' ) end [2025-04-05 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:38:21] Production.INFO: ==31107== Releasing lock... [2025-04-05 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:38:21] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:39:05 [end_date_ymd] => 2025-04-05 05:39:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:39:05' and `end` < '2025-04-05 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-04-05 05:39:18] Production.INFO: count ==394 [2025-04-05 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:39:05 - End Time 2025-04-05 05:39:05 [2025-04-05 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838094', 'tblTempUsageDetail_20' ) start [2025-04-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838094', 'tblTempUsageDetail_20' ) end [2025-04-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838094', 'tblTempVendorCDR_20' ) start [2025-04-05 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838094', 'tblTempVendorCDR_20' ) end [2025-04-05 05:39:18] Production.INFO: ProcessCDR(1,14838094,1,1,2) [2025-04-05 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838094', 'tblTempUsageDetail_20' ) start [2025-04-05 05:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838094', 'tblTempUsageDetail_20' ) end [2025-04-05 05:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:39:23] Production.INFO: ==31218== Releasing lock... [2025-04-05 05:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:39:23] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:40:06 [end_date_ymd] => 2025-04-05 05:40:06 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:40:06' and `end` < '2025-04-05 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-04-05 05:40:18] Production.INFO: count ==386 [2025-04-05 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:40:06 - End Time 2025-04-05 05:40:06 [2025-04-05 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838100', 'tblTempUsageDetail_20' ) start [2025-04-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838100', 'tblTempUsageDetail_20' ) end [2025-04-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838100', 'tblTempVendorCDR_20' ) start [2025-04-05 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838100', 'tblTempVendorCDR_20' ) end [2025-04-05 05:40:18] Production.INFO: ProcessCDR(1,14838100,1,1,2) [2025-04-05 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838100', 'tblTempUsageDetail_20' ) start [2025-04-05 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838100', 'tblTempUsageDetail_20' ) end [2025-04-05 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:40:22] Production.INFO: ==31290== Releasing lock... [2025-04-05 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:40:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:41:05 [end_date_ymd] => 2025-04-05 05:41:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:41:05' and `end` < '2025-04-05 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-04-05 05:41:18] Production.INFO: count ==379 [2025-04-05 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:41:05 - End Time 2025-04-05 05:41:05 [2025-04-05 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838105', 'tblTempUsageDetail_20' ) start [2025-04-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838105', 'tblTempUsageDetail_20' ) end [2025-04-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838105', 'tblTempVendorCDR_20' ) start [2025-04-05 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838105', 'tblTempVendorCDR_20' ) end [2025-04-05 05:41:18] Production.INFO: ProcessCDR(1,14838105,1,1,2) [2025-04-05 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838105', 'tblTempUsageDetail_20' ) start [2025-04-05 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838105', 'tblTempUsageDetail_20' ) end [2025-04-05 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:41:21] Production.INFO: ==31366== Releasing lock... [2025-04-05 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:42:06 [end_date_ymd] => 2025-04-05 05:42:06 [RateCDR] => 1 ) [2025-04-05 05:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:42:06' and `end` < '2025-04-05 05:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:42:18] Production.INFO: count ==370 [2025-04-05 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:42:06 - End Time 2025-04-05 05:42:06 [2025-04-05 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838110', 'tblTempUsageDetail_20' ) start [2025-04-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838110', 'tblTempUsageDetail_20' ) end [2025-04-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838110', 'tblTempVendorCDR_20' ) start [2025-04-05 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838110', 'tblTempVendorCDR_20' ) end [2025-04-05 05:42:18] Production.INFO: ProcessCDR(1,14838110,1,1,2) [2025-04-05 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838110', 'tblTempUsageDetail_20' ) start [2025-04-05 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838110', 'tblTempUsageDetail_20' ) end [2025-04-05 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:42:22] Production.INFO: ==31442== Releasing lock... [2025-04-05 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:43:05 [end_date_ymd] => 2025-04-05 05:43:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:43:05' and `end` < '2025-04-05 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-04-05 05:43:18] Production.INFO: count ==370 [2025-04-05 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:43:05 - End Time 2025-04-05 05:43:05 [2025-04-05 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838115', 'tblTempUsageDetail_20' ) start [2025-04-05 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838115', 'tblTempUsageDetail_20' ) end [2025-04-05 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838115', 'tblTempVendorCDR_20' ) start [2025-04-05 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838115', 'tblTempVendorCDR_20' ) end [2025-04-05 05:43:18] Production.INFO: ProcessCDR(1,14838115,1,1,2) [2025-04-05 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838115', 'tblTempUsageDetail_20' ) start [2025-04-05 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838115', 'tblTempUsageDetail_20' ) end [2025-04-05 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:43:21] Production.INFO: ==31512== Releasing lock... [2025-04-05 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:44:05 [end_date_ymd] => 2025-04-05 05:44:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:44:05' and `end` < '2025-04-05 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-04-05 05:44:18] Production.INFO: count ==370 [2025-04-05 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:44:05 - End Time 2025-04-05 05:44:05 [2025-04-05 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838120', 'tblTempUsageDetail_20' ) start [2025-04-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838120', 'tblTempUsageDetail_20' ) end [2025-04-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838120', 'tblTempVendorCDR_20' ) start [2025-04-05 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838120', 'tblTempVendorCDR_20' ) end [2025-04-05 05:44:18] Production.INFO: ProcessCDR(1,14838120,1,1,2) [2025-04-05 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838120', 'tblTempUsageDetail_20' ) start [2025-04-05 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838120', 'tblTempUsageDetail_20' ) end [2025-04-05 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:44:22] Production.INFO: ==31585== Releasing lock... [2025-04-05 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:45:05 [end_date_ymd] => 2025-04-05 05:45:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:45:05' and `end` < '2025-04-05 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-04-05 05:45:18] Production.INFO: count ==370 [2025-04-05 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:45:05 - End Time 2025-04-05 05:45:05 [2025-04-05 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838125', 'tblTempUsageDetail_20' ) start [2025-04-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838125', 'tblTempUsageDetail_20' ) end [2025-04-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838125', 'tblTempVendorCDR_20' ) start [2025-04-05 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838125', 'tblTempVendorCDR_20' ) end [2025-04-05 05:45:18] Production.INFO: ProcessCDR(1,14838125,1,1,2) [2025-04-05 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838125', 'tblTempUsageDetail_20' ) start [2025-04-05 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838125', 'tblTempUsageDetail_20' ) end [2025-04-05 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:45:21] Production.INFO: ==31656== Releasing lock... [2025-04-05 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:46:05 [end_date_ymd] => 2025-04-05 05:46:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:46:05' and `end` < '2025-04-05 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-04-05 05:46:18] Production.INFO: count ==360 [2025-04-05 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:46:05 - End Time 2025-04-05 05:46:05 [2025-04-05 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838130', 'tblTempUsageDetail_20' ) start [2025-04-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838130', 'tblTempUsageDetail_20' ) end [2025-04-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838130', 'tblTempVendorCDR_20' ) start [2025-04-05 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838130', 'tblTempVendorCDR_20' ) end [2025-04-05 05:46:18] Production.INFO: ProcessCDR(1,14838130,1,1,2) [2025-04-05 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838130', 'tblTempUsageDetail_20' ) start [2025-04-05 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838130', 'tblTempUsageDetail_20' ) end [2025-04-05 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:46:21] Production.INFO: ==31732== Releasing lock... [2025-04-05 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:47:04 [end_date_ymd] => 2025-04-05 05:47:04 [RateCDR] => 1 ) [2025-04-05 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:47:04' and `end` < '2025-04-05 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:47:17] Production.INFO: count ==352 [2025-04-05 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-05 02:47:04 - End Time 2025-04-05 05:47:04 [2025-04-05 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838135', 'tblTempUsageDetail_20' ) start [2025-04-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838135', 'tblTempUsageDetail_20' ) end [2025-04-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838135', 'tblTempVendorCDR_20' ) start [2025-04-05 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838135', 'tblTempVendorCDR_20' ) end [2025-04-05 05:47:17] Production.INFO: ProcessCDR(1,14838135,1,1,2) [2025-04-05 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838135', 'tblTempUsageDetail_20' ) start [2025-04-05 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838135', 'tblTempUsageDetail_20' ) end [2025-04-05 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:47:21] Production.INFO: ==31808== Releasing lock... [2025-04-05 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:47:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:48:06 [end_date_ymd] => 2025-04-05 05:48:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:48:06' and `end` < '2025-04-05 05: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-04-05 05:48:18] Production.INFO: count ==352 [2025-04-05 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:48:06 - End Time 2025-04-05 05:48:06 [2025-04-05 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838140', 'tblTempUsageDetail_20' ) start [2025-04-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838140', 'tblTempUsageDetail_20' ) end [2025-04-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838140', 'tblTempVendorCDR_20' ) start [2025-04-05 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838140', 'tblTempVendorCDR_20' ) end [2025-04-05 05:48:18] Production.INFO: ProcessCDR(1,14838140,1,1,2) [2025-04-05 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838140', 'tblTempUsageDetail_20' ) start [2025-04-05 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838140', 'tblTempUsageDetail_20' ) end [2025-04-05 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:48:22] Production.INFO: ==31880== Releasing lock... [2025-04-05 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:48:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:49:05 [end_date_ymd] => 2025-04-05 05:49:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:49:05' and `end` < '2025-04-05 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-04-05 05:49:18] Production.INFO: count ==347 [2025-04-05 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:49:05 - End Time 2025-04-05 05:49:05 [2025-04-05 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838145', 'tblTempUsageDetail_20' ) start [2025-04-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838145', 'tblTempUsageDetail_20' ) end [2025-04-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838145', 'tblTempVendorCDR_20' ) start [2025-04-05 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838145', 'tblTempVendorCDR_20' ) end [2025-04-05 05:49:18] Production.INFO: ProcessCDR(1,14838145,1,1,2) [2025-04-05 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838145', 'tblTempUsageDetail_20' ) start [2025-04-05 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838145', 'tblTempUsageDetail_20' ) end [2025-04-05 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:49:21] Production.INFO: ==31955== Releasing lock... [2025-04-05 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:49:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:50:06 [end_date_ymd] => 2025-04-05 05:50:06 [RateCDR] => 1 ) [2025-04-05 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:50:06' and `end` < '2025-04-05 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:50:19] Production.INFO: count ==331 [2025-04-05 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 02:50:06 - End Time 2025-04-05 05:50:06 [2025-04-05 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838151', 'tblTempUsageDetail_20' ) start [2025-04-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838151', 'tblTempUsageDetail_20' ) end [2025-04-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838151', 'tblTempVendorCDR_20' ) start [2025-04-05 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838151', 'tblTempVendorCDR_20' ) end [2025-04-05 05:50:19] Production.INFO: ProcessCDR(1,14838151,1,1,2) [2025-04-05 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838151', 'tblTempUsageDetail_20' ) start [2025-04-05 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838151', 'tblTempUsageDetail_20' ) end [2025-04-05 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:50:22] Production.INFO: ==32030== Releasing lock... [2025-04-05 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:50:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:51:05 [end_date_ymd] => 2025-04-05 05:51:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:51:05' and `end` < '2025-04-05 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-04-05 05:51:18] Production.INFO: count ==327 [2025-04-05 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:51:05 - End Time 2025-04-05 05:51:05 [2025-04-05 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838156', 'tblTempUsageDetail_20' ) start [2025-04-05 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838156', 'tblTempUsageDetail_20' ) end [2025-04-05 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838156', 'tblTempVendorCDR_20' ) start [2025-04-05 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838156', 'tblTempVendorCDR_20' ) end [2025-04-05 05:51:18] Production.INFO: ProcessCDR(1,14838156,1,1,2) [2025-04-05 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838156', 'tblTempUsageDetail_20' ) start [2025-04-05 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838156', 'tblTempUsageDetail_20' ) end [2025-04-05 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:51:22] Production.INFO: ==32102== Releasing lock... [2025-04-05 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:51:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:52:05 [end_date_ymd] => 2025-04-05 05:52:05 [RateCDR] => 1 ) [2025-04-05 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-04-05 02:52:05' and `end` < '2025-04-05 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:52:18] Production.INFO: count ==326 [2025-04-05 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:52:05 - End Time 2025-04-05 05:52:05 [2025-04-05 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838161', 'tblTempUsageDetail_20' ) start [2025-04-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838161', 'tblTempUsageDetail_20' ) end [2025-04-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838161', 'tblTempVendorCDR_20' ) start [2025-04-05 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838161', 'tblTempVendorCDR_20' ) end [2025-04-05 05:52:18] Production.INFO: ProcessCDR(1,14838161,1,1,2) [2025-04-05 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838161', 'tblTempUsageDetail_20' ) start [2025-04-05 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838161', 'tblTempUsageDetail_20' ) end [2025-04-05 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:52:21] Production.INFO: ==32174== Releasing lock... [2025-04-05 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:52:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:53:05 [end_date_ymd] => 2025-04-05 05:53:05 [RateCDR] => 1 ) [2025-04-05 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:53:05' and `end` < '2025-04-05 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:53:18] Production.INFO: count ==326 [2025-04-05 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:53:05 - End Time 2025-04-05 05:53:05 [2025-04-05 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838166', 'tblTempUsageDetail_20' ) start [2025-04-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838166', 'tblTempUsageDetail_20' ) end [2025-04-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838166', 'tblTempVendorCDR_20' ) start [2025-04-05 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838166', 'tblTempVendorCDR_20' ) end [2025-04-05 05:53:18] Production.INFO: ProcessCDR(1,14838166,1,1,2) [2025-04-05 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838166', 'tblTempUsageDetail_20' ) start [2025-04-05 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838166', 'tblTempUsageDetail_20' ) end [2025-04-05 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:53:21] Production.INFO: ==32247== Releasing lock... [2025-04-05 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:54:05 [end_date_ymd] => 2025-04-05 05:54:05 [RateCDR] => 1 ) [2025-04-05 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:54:05' and `end` < '2025-04-05 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:54:18] Production.INFO: count ==326 [2025-04-05 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:54:05 - End Time 2025-04-05 05:54:05 [2025-04-05 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838171', 'tblTempUsageDetail_20' ) start [2025-04-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838171', 'tblTempUsageDetail_20' ) end [2025-04-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838171', 'tblTempVendorCDR_20' ) start [2025-04-05 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838171', 'tblTempVendorCDR_20' ) end [2025-04-05 05:54:18] Production.INFO: ProcessCDR(1,14838171,1,1,2) [2025-04-05 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838171', 'tblTempUsageDetail_20' ) start [2025-04-05 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838171', 'tblTempUsageDetail_20' ) end [2025-04-05 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:54:21] Production.INFO: ==32358== Releasing lock... [2025-04-05 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:54:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:55:05 [end_date_ymd] => 2025-04-05 05:55:05 [RateCDR] => 1 ) [2025-04-05 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:55:05' and `end` < '2025-04-05 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:55:18] Production.INFO: count ==326 [2025-04-05 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:55:05 - End Time 2025-04-05 05:55:05 [2025-04-05 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838176', 'tblTempUsageDetail_20' ) start [2025-04-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838176', 'tblTempUsageDetail_20' ) end [2025-04-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838176', 'tblTempVendorCDR_20' ) start [2025-04-05 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838176', 'tblTempVendorCDR_20' ) end [2025-04-05 05:55:18] Production.INFO: ProcessCDR(1,14838176,1,1,2) [2025-04-05 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838176', 'tblTempUsageDetail_20' ) start [2025-04-05 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838176', 'tblTempUsageDetail_20' ) end [2025-04-05 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:55:21] Production.INFO: ==32431== Releasing lock... [2025-04-05 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:55:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:56:06 [end_date_ymd] => 2025-04-05 05:56:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:56:06' and `end` < '2025-04-05 05: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-04-05 05:56:18] Production.INFO: count ==326 [2025-04-05 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:56:06 - End Time 2025-04-05 05:56:06 [2025-04-05 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838181', 'tblTempUsageDetail_20' ) start [2025-04-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838181', 'tblTempUsageDetail_20' ) end [2025-04-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838181', 'tblTempVendorCDR_20' ) start [2025-04-05 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838181', 'tblTempVendorCDR_20' ) end [2025-04-05 05:56:18] Production.INFO: ProcessCDR(1,14838181,1,1,2) [2025-04-05 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838181', 'tblTempUsageDetail_20' ) start [2025-04-05 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838181', 'tblTempUsageDetail_20' ) end [2025-04-05 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:56:22] Production.INFO: ==32503== Releasing lock... [2025-04-05 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:56:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:57:06 [end_date_ymd] => 2025-04-05 05:57:06 [RateCDR] => 1 ) [2025-04-05 05: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-04-05 02:57:06' and `end` < '2025-04-05 05: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-04-05 05:57:18] Production.INFO: count ==326 [2025-04-05 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:57:06 - End Time 2025-04-05 05:57:06 [2025-04-05 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838186', 'tblTempUsageDetail_20' ) start [2025-04-05 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838186', 'tblTempUsageDetail_20' ) end [2025-04-05 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838186', 'tblTempVendorCDR_20' ) start [2025-04-05 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838186', 'tblTempVendorCDR_20' ) end [2025-04-05 05:57:19] Production.INFO: ProcessCDR(1,14838186,1,1,2) [2025-04-05 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838186', 'tblTempUsageDetail_20' ) start [2025-04-05 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838186', 'tblTempUsageDetail_20' ) end [2025-04-05 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:57:22] Production.INFO: ==32581== Releasing lock... [2025-04-05 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:57:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:58:05 [end_date_ymd] => 2025-04-05 05:58:05 [RateCDR] => 1 ) [2025-04-05 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:58:05' and `end` < '2025-04-05 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:58:18] Production.INFO: count ==326 [2025-04-05 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:58:05 - End Time 2025-04-05 05:58:05 [2025-04-05 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838191', 'tblTempUsageDetail_20' ) start [2025-04-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838191', 'tblTempUsageDetail_20' ) end [2025-04-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838191', 'tblTempVendorCDR_20' ) start [2025-04-05 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838191', 'tblTempVendorCDR_20' ) end [2025-04-05 05:58:18] Production.INFO: ProcessCDR(1,14838191,1,1,2) [2025-04-05 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838191', 'tblTempUsageDetail_20' ) start [2025-04-05 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838191', 'tblTempUsageDetail_20' ) end [2025-04-05 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:58:21] Production.INFO: ==32651== Releasing lock... [2025-04-05 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:58:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 02:59:05 [end_date_ymd] => 2025-04-05 05:59:05 [RateCDR] => 1 ) [2025-04-05 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 02:59:05' and `end` < '2025-04-05 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 05:59:18] Production.INFO: count ==322 [2025-04-05 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 02:59:05 - End Time 2025-04-05 05:59:05 [2025-04-05 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838196', 'tblTempUsageDetail_20' ) start [2025-04-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838196', 'tblTempUsageDetail_20' ) end [2025-04-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838196', 'tblTempVendorCDR_20' ) start [2025-04-05 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838196', 'tblTempVendorCDR_20' ) end [2025-04-05 05:59:18] Production.INFO: ProcessCDR(1,14838196,1,1,2) [2025-04-05 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838196', 'tblTempUsageDetail_20' ) start [2025-04-05 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838196', 'tblTempUsageDetail_20' ) end [2025-04-05 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 05:59:21] Production.INFO: ==32723== Releasing lock... [2025-04-05 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 05:59:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:00:06 [end_date_ymd] => 2025-04-05 06:00:06 [RateCDR] => 1 ) [2025-04-05 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:00:06' and `end` < '2025-04-05 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:00:19] Production.INFO: count ==330 [2025-04-05 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:00:06 - End Time 2025-04-05 06:00:06 [2025-04-05 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838201', 'tblTempUsageDetail_20' ) start [2025-04-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838201', 'tblTempUsageDetail_20' ) end [2025-04-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838201', 'tblTempVendorCDR_20' ) start [2025-04-05 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838201', 'tblTempVendorCDR_20' ) end [2025-04-05 06:00:19] Production.INFO: ProcessCDR(1,14838201,1,1,2) [2025-04-05 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838201', 'tblTempUsageDetail_20' ) start [2025-04-05 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838201', 'tblTempUsageDetail_20' ) end [2025-04-05 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:00:22] Production.INFO: ==338== Releasing lock... [2025-04-05 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:01:05 [end_date_ymd] => 2025-04-05 06:01:05 [RateCDR] => 1 ) [2025-04-05 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:01:05' and `end` < '2025-04-05 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:01:18] Production.INFO: count ==332 [2025-04-05 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:01:05 - End Time 2025-04-05 06:01:05 [2025-04-05 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838207', 'tblTempUsageDetail_20' ) start [2025-04-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838207', 'tblTempUsageDetail_20' ) end [2025-04-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838207', 'tblTempVendorCDR_20' ) start [2025-04-05 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838207', 'tblTempVendorCDR_20' ) end [2025-04-05 06:01:18] Production.INFO: ProcessCDR(1,14838207,1,1,2) [2025-04-05 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838207', 'tblTempUsageDetail_20' ) start [2025-04-05 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838207', 'tblTempUsageDetail_20' ) end [2025-04-05 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:01:22] Production.INFO: ==441== Releasing lock... [2025-04-05 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:02:06 [end_date_ymd] => 2025-04-05 06:02:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:02:06' and `end` < '2025-04-05 06: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-04-05 06:02:18] Production.INFO: count ==331 [2025-04-05 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:02:06 - End Time 2025-04-05 06:02:06 [2025-04-05 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838212', 'tblTempUsageDetail_20' ) start [2025-04-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838212', 'tblTempUsageDetail_20' ) end [2025-04-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838212', 'tblTempVendorCDR_20' ) start [2025-04-05 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838212', 'tblTempVendorCDR_20' ) end [2025-04-05 06:02:19] Production.INFO: ProcessCDR(1,14838212,1,1,2) [2025-04-05 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838212', 'tblTempUsageDetail_20' ) start [2025-04-05 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838212', 'tblTempUsageDetail_20' ) end [2025-04-05 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:02:22] Production.INFO: ==517== Releasing lock... [2025-04-05 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:03:05 [end_date_ymd] => 2025-04-05 06:03:05 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:03:05' and `end` < '2025-04-05 06: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-04-05 06:03:18] Production.INFO: count ==340 [2025-04-05 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:03:05 - End Time 2025-04-05 06:03:05 [2025-04-05 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838217', 'tblTempUsageDetail_20' ) start [2025-04-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838217', 'tblTempUsageDetail_20' ) end [2025-04-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838217', 'tblTempVendorCDR_20' ) start [2025-04-05 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838217', 'tblTempVendorCDR_20' ) end [2025-04-05 06:03:18] Production.INFO: ProcessCDR(1,14838217,1,1,2) [2025-04-05 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838217', 'tblTempUsageDetail_20' ) start [2025-04-05 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838217', 'tblTempUsageDetail_20' ) end [2025-04-05 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:03:21] Production.INFO: ==589== Releasing lock... [2025-04-05 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:03:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:04:05 [end_date_ymd] => 2025-04-05 06:04:05 [RateCDR] => 1 ) [2025-04-05 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:04:05' and `end` < '2025-04-05 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:04:18] Production.INFO: count ==339 [2025-04-05 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:04:05 - End Time 2025-04-05 06:04:05 [2025-04-05 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838222', 'tblTempUsageDetail_20' ) start [2025-04-05 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838222', 'tblTempUsageDetail_20' ) end [2025-04-05 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838222', 'tblTempVendorCDR_20' ) start [2025-04-05 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838222', 'tblTempVendorCDR_20' ) end [2025-04-05 06:04:18] Production.INFO: ProcessCDR(1,14838222,1,1,2) [2025-04-05 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838222', 'tblTempUsageDetail_20' ) start [2025-04-05 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838222', 'tblTempUsageDetail_20' ) end [2025-04-05 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:04:22] Production.INFO: ==681== Releasing lock... [2025-04-05 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:05:05 [end_date_ymd] => 2025-04-05 06:05:05 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:05:05' and `end` < '2025-04-05 06: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-04-05 06:05:18] Production.INFO: count ==335 [2025-04-05 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:05:05 - End Time 2025-04-05 06:05:05 [2025-04-05 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838227', 'tblTempUsageDetail_20' ) start [2025-04-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838227', 'tblTempUsageDetail_20' ) end [2025-04-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838227', 'tblTempVendorCDR_20' ) start [2025-04-05 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838227', 'tblTempVendorCDR_20' ) end [2025-04-05 06:05:18] Production.INFO: ProcessCDR(1,14838227,1,1,2) [2025-04-05 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838227', 'tblTempUsageDetail_20' ) start [2025-04-05 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838227', 'tblTempUsageDetail_20' ) end [2025-04-05 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:05:21] Production.INFO: ==769== Releasing lock... [2025-04-05 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:06:05 [end_date_ymd] => 2025-04-05 06:06:05 [RateCDR] => 1 ) [2025-04-05 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:06:05' and `end` < '2025-04-05 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:06:18] Production.INFO: count ==326 [2025-04-05 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:06:05 - End Time 2025-04-05 06:06:05 [2025-04-05 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838232', 'tblTempUsageDetail_20' ) start [2025-04-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838232', 'tblTempUsageDetail_20' ) end [2025-04-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838232', 'tblTempVendorCDR_20' ) start [2025-04-05 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838232', 'tblTempVendorCDR_20' ) end [2025-04-05 06:06:18] Production.INFO: ProcessCDR(1,14838232,1,1,2) [2025-04-05 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838232', 'tblTempUsageDetail_20' ) start [2025-04-05 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838232', 'tblTempUsageDetail_20' ) end [2025-04-05 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:06:21] Production.INFO: ==840== Releasing lock... [2025-04-05 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:06:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:07:06 [end_date_ymd] => 2025-04-05 06:07:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:07:06' and `end` < '2025-04-05 06: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-04-05 06:07:18] Production.INFO: count ==323 [2025-04-05 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:07:06 - End Time 2025-04-05 06:07:06 [2025-04-05 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838237', 'tblTempUsageDetail_20' ) start [2025-04-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838237', 'tblTempUsageDetail_20' ) end [2025-04-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838237', 'tblTempVendorCDR_20' ) start [2025-04-05 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838237', 'tblTempVendorCDR_20' ) end [2025-04-05 06:07:18] Production.INFO: ProcessCDR(1,14838237,1,1,2) [2025-04-05 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838237', 'tblTempUsageDetail_20' ) start [2025-04-05 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838237', 'tblTempUsageDetail_20' ) end [2025-04-05 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:07:22] Production.INFO: ==919== Releasing lock... [2025-04-05 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:07:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:08:05 [end_date_ymd] => 2025-04-05 06:08:05 [RateCDR] => 1 ) [2025-04-05 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:08:05' and `end` < '2025-04-05 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:08:18] Production.INFO: count ==323 [2025-04-05 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:08:05 - End Time 2025-04-05 06:08:05 [2025-04-05 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838242', 'tblTempUsageDetail_20' ) start [2025-04-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838242', 'tblTempUsageDetail_20' ) end [2025-04-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838242', 'tblTempVendorCDR_20' ) start [2025-04-05 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838242', 'tblTempVendorCDR_20' ) end [2025-04-05 06:08:18] Production.INFO: ProcessCDR(1,14838242,1,1,2) [2025-04-05 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838242', 'tblTempUsageDetail_20' ) start [2025-04-05 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838242', 'tblTempUsageDetail_20' ) end [2025-04-05 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:08:21] Production.INFO: ==989== Releasing lock... [2025-04-05 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:09:05 [end_date_ymd] => 2025-04-05 06:09:05 [RateCDR] => 1 ) [2025-04-05 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:09:05' and `end` < '2025-04-05 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:09:18] Production.INFO: count ==323 [2025-04-05 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:09:05 - End Time 2025-04-05 06:09:05 [2025-04-05 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838247', 'tblTempUsageDetail_20' ) start [2025-04-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838247', 'tblTempUsageDetail_20' ) end [2025-04-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838247', 'tblTempVendorCDR_20' ) start [2025-04-05 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838247', 'tblTempVendorCDR_20' ) end [2025-04-05 06:09:18] Production.INFO: ProcessCDR(1,14838247,1,1,2) [2025-04-05 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838247', 'tblTempUsageDetail_20' ) start [2025-04-05 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838247', 'tblTempUsageDetail_20' ) end [2025-04-05 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:09:21] Production.INFO: ==1062== Releasing lock... [2025-04-05 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:09:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:10:05 [end_date_ymd] => 2025-04-05 06:10:05 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:10:05' and `end` < '2025-04-05 06: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-04-05 06:10:18] Production.INFO: count ==330 [2025-04-05 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:10:05 - End Time 2025-04-05 06:10:05 [2025-04-05 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838252', 'tblTempUsageDetail_20' ) start [2025-04-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838252', 'tblTempUsageDetail_20' ) end [2025-04-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838252', 'tblTempVendorCDR_20' ) start [2025-04-05 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838252', 'tblTempVendorCDR_20' ) end [2025-04-05 06:10:18] Production.INFO: ProcessCDR(1,14838252,1,1,2) [2025-04-05 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838252', 'tblTempUsageDetail_20' ) start [2025-04-05 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838252', 'tblTempUsageDetail_20' ) end [2025-04-05 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:10:21] Production.INFO: ==1181== Releasing lock... [2025-04-05 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:10:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:11:06 [end_date_ymd] => 2025-04-05 06:11:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:11:06' and `end` < '2025-04-05 06: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-04-05 06:11:18] Production.INFO: count ==331 [2025-04-05 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:11:06 - End Time 2025-04-05 06:11:06 [2025-04-05 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838258', 'tblTempUsageDetail_20' ) start [2025-04-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838258', 'tblTempUsageDetail_20' ) end [2025-04-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838258', 'tblTempVendorCDR_20' ) start [2025-04-05 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838258', 'tblTempVendorCDR_20' ) end [2025-04-05 06:11:18] Production.INFO: ProcessCDR(1,14838258,1,1,2) [2025-04-05 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838258', 'tblTempUsageDetail_20' ) start [2025-04-05 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838258', 'tblTempUsageDetail_20' ) end [2025-04-05 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:11:23] Production.INFO: ==1267== Releasing lock... [2025-04-05 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:11:23] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:12:05 [end_date_ymd] => 2025-04-05 06:12:05 [RateCDR] => 1 ) [2025-04-05 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:12:05' and `end` < '2025-04-05 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:12:18] Production.INFO: count ==331 [2025-04-05 06:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:12:05 - End Time 2025-04-05 06:12:05 [2025-04-05 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838263', 'tblTempUsageDetail_20' ) start [2025-04-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838263', 'tblTempUsageDetail_20' ) end [2025-04-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838263', 'tblTempVendorCDR_20' ) start [2025-04-05 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838263', 'tblTempVendorCDR_20' ) end [2025-04-05 06:12:18] Production.INFO: ProcessCDR(1,14838263,1,1,2) [2025-04-05 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838263', 'tblTempUsageDetail_20' ) start [2025-04-05 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838263', 'tblTempUsageDetail_20' ) end [2025-04-05 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:12:21] Production.INFO: ==1338== Releasing lock... [2025-04-05 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:12:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:13:05 [end_date_ymd] => 2025-04-05 06:13:05 [RateCDR] => 1 ) [2025-04-05 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:13:05' and `end` < '2025-04-05 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:13:18] Production.INFO: count ==334 [2025-04-05 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:13:05 - End Time 2025-04-05 06:13:05 [2025-04-05 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838268', 'tblTempUsageDetail_20' ) start [2025-04-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838268', 'tblTempUsageDetail_20' ) end [2025-04-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838268', 'tblTempVendorCDR_20' ) start [2025-04-05 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838268', 'tblTempVendorCDR_20' ) end [2025-04-05 06:13:18] Production.INFO: ProcessCDR(1,14838268,1,1,2) [2025-04-05 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838268', 'tblTempUsageDetail_20' ) start [2025-04-05 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838268', 'tblTempUsageDetail_20' ) end [2025-04-05 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:13:22] Production.INFO: ==1409== Releasing lock... [2025-04-05 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:14:06 [end_date_ymd] => 2025-04-05 06:14:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:14:06' and `end` < '2025-04-05 06: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-04-05 06:14:18] Production.INFO: count ==332 [2025-04-05 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:14:06 - End Time 2025-04-05 06:14:06 [2025-04-05 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838273', 'tblTempUsageDetail_20' ) start [2025-04-05 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838273', 'tblTempUsageDetail_20' ) end [2025-04-05 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838273', 'tblTempVendorCDR_20' ) start [2025-04-05 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838273', 'tblTempVendorCDR_20' ) end [2025-04-05 06:14:18] Production.INFO: ProcessCDR(1,14838273,1,1,2) [2025-04-05 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838273', 'tblTempUsageDetail_20' ) start [2025-04-05 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838273', 'tblTempUsageDetail_20' ) end [2025-04-05 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:14:22] Production.INFO: ==1481== Releasing lock... [2025-04-05 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:15:06 [end_date_ymd] => 2025-04-05 06:15:06 [RateCDR] => 1 ) [2025-04-05 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:15:06' and `end` < '2025-04-05 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:15:18] Production.INFO: count ==328 [2025-04-05 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:15:06 - End Time 2025-04-05 06:15:06 [2025-04-05 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838278', 'tblTempUsageDetail_20' ) start [2025-04-05 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838278', 'tblTempUsageDetail_20' ) end [2025-04-05 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838278', 'tblTempVendorCDR_20' ) start [2025-04-05 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838278', 'tblTempVendorCDR_20' ) end [2025-04-05 06:15:18] Production.INFO: ProcessCDR(1,14838278,1,1,2) [2025-04-05 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838278', 'tblTempUsageDetail_20' ) start [2025-04-05 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838278', 'tblTempUsageDetail_20' ) end [2025-04-05 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:15:22] Production.INFO: ==1591== Releasing lock... [2025-04-05 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:16:05 [end_date_ymd] => 2025-04-05 06:16:05 [RateCDR] => 1 ) [2025-04-05 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:16:05' and `end` < '2025-04-05 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:16:18] Production.INFO: count ==322 [2025-04-05 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:16:05 - End Time 2025-04-05 06:16:05 [2025-04-05 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838283', 'tblTempUsageDetail_20' ) start [2025-04-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838283', 'tblTempUsageDetail_20' ) end [2025-04-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838283', 'tblTempVendorCDR_20' ) start [2025-04-05 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838283', 'tblTempVendorCDR_20' ) end [2025-04-05 06:16:18] Production.INFO: ProcessCDR(1,14838283,1,1,2) [2025-04-05 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838283', 'tblTempUsageDetail_20' ) start [2025-04-05 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838283', 'tblTempUsageDetail_20' ) end [2025-04-05 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:16:21] Production.INFO: ==1668== Releasing lock... [2025-04-05 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:17:05 [end_date_ymd] => 2025-04-05 06:17:05 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:17:05' and `end` < '2025-04-05 06: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-04-05 06:17:18] Production.INFO: count ==315 [2025-04-05 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:17:05 - End Time 2025-04-05 06:17:05 [2025-04-05 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838288', 'tblTempUsageDetail_20' ) start [2025-04-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838288', 'tblTempUsageDetail_20' ) end [2025-04-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838288', 'tblTempVendorCDR_20' ) start [2025-04-05 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838288', 'tblTempVendorCDR_20' ) end [2025-04-05 06:17:18] Production.INFO: ProcessCDR(1,14838288,1,1,2) [2025-04-05 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838288', 'tblTempUsageDetail_20' ) start [2025-04-05 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838288', 'tblTempUsageDetail_20' ) end [2025-04-05 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:17:21] Production.INFO: ==1741== Releasing lock... [2025-04-05 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:17:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:18:05 [end_date_ymd] => 2025-04-05 06:18:05 [RateCDR] => 1 ) [2025-04-05 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:18:05' and `end` < '2025-04-05 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:18:18] Production.INFO: count ==314 [2025-04-05 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:18:05 - End Time 2025-04-05 06:18:05 [2025-04-05 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838293', 'tblTempUsageDetail_20' ) start [2025-04-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838293', 'tblTempUsageDetail_20' ) end [2025-04-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838293', 'tblTempVendorCDR_20' ) start [2025-04-05 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838293', 'tblTempVendorCDR_20' ) end [2025-04-05 06:18:18] Production.INFO: ProcessCDR(1,14838293,1,1,2) [2025-04-05 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838293', 'tblTempUsageDetail_20' ) start [2025-04-05 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838293', 'tblTempUsageDetail_20' ) end [2025-04-05 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:18:21] Production.INFO: ==1813== Releasing lock... [2025-04-05 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:19:05 [end_date_ymd] => 2025-04-05 06:19:05 [RateCDR] => 1 ) [2025-04-05 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:19:05' and `end` < '2025-04-05 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:19:18] Production.INFO: count ==313 [2025-04-05 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:19:05 - End Time 2025-04-05 06:19:05 [2025-04-05 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838298', 'tblTempUsageDetail_20' ) start [2025-04-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838298', 'tblTempUsageDetail_20' ) end [2025-04-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838298', 'tblTempVendorCDR_20' ) start [2025-04-05 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838298', 'tblTempVendorCDR_20' ) end [2025-04-05 06:19:18] Production.INFO: ProcessCDR(1,14838298,1,1,2) [2025-04-05 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838298', 'tblTempUsageDetail_20' ) start [2025-04-05 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838298', 'tblTempUsageDetail_20' ) end [2025-04-05 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:19:21] Production.INFO: ==1890== Releasing lock... [2025-04-05 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:19:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:20:06 [end_date_ymd] => 2025-04-05 06:20:06 [RateCDR] => 1 ) [2025-04-05 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:20:06' and `end` < '2025-04-05 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:20:19] Production.INFO: count ==303 [2025-04-05 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:20:06 - End Time 2025-04-05 06:20:06 [2025-04-05 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838304', 'tblTempUsageDetail_20' ) start [2025-04-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838304', 'tblTempUsageDetail_20' ) end [2025-04-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838304', 'tblTempVendorCDR_20' ) start [2025-04-05 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838304', 'tblTempVendorCDR_20' ) end [2025-04-05 06:20:19] Production.INFO: ProcessCDR(1,14838304,1,1,2) [2025-04-05 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838304', 'tblTempUsageDetail_20' ) start [2025-04-05 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838304', 'tblTempUsageDetail_20' ) end [2025-04-05 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:20:22] Production.INFO: ==1969== Releasing lock... [2025-04-05 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:21:05 [end_date_ymd] => 2025-04-05 06:21:05 [RateCDR] => 1 ) [2025-04-05 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:21:05' and `end` < '2025-04-05 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:21:18] Production.INFO: count ==296 [2025-04-05 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:21:05 - End Time 2025-04-05 06:21:05 [2025-04-05 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838309', 'tblTempUsageDetail_20' ) start [2025-04-05 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838309', 'tblTempUsageDetail_20' ) end [2025-04-05 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838309', 'tblTempVendorCDR_20' ) start [2025-04-05 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838309', 'tblTempVendorCDR_20' ) end [2025-04-05 06:21:18] Production.INFO: ProcessCDR(1,14838309,1,1,2) [2025-04-05 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838309', 'tblTempUsageDetail_20' ) start [2025-04-05 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838309', 'tblTempUsageDetail_20' ) end [2025-04-05 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:21:21] Production.INFO: ==2043== Releasing lock... [2025-04-05 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:22:05 [end_date_ymd] => 2025-04-05 06:22:05 [RateCDR] => 1 ) [2025-04-05 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:22:05' and `end` < '2025-04-05 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:22:17] Production.INFO: count ==294 [2025-04-05 06:22:17] Production.ERROR: pbx CDR StartTime 2025-04-05 03:22:05 - End Time 2025-04-05 06:22:05 [2025-04-05 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838314', 'tblTempUsageDetail_20' ) start [2025-04-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838314', 'tblTempUsageDetail_20' ) end [2025-04-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838314', 'tblTempVendorCDR_20' ) start [2025-04-05 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838314', 'tblTempVendorCDR_20' ) end [2025-04-05 06:22:17] Production.INFO: ProcessCDR(1,14838314,1,1,2) [2025-04-05 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838314', 'tblTempUsageDetail_20' ) start [2025-04-05 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838314', 'tblTempUsageDetail_20' ) end [2025-04-05 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:22:21] Production.INFO: ==2118== Releasing lock... [2025-04-05 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:23:05 [end_date_ymd] => 2025-04-05 06:23:05 [RateCDR] => 1 ) [2025-04-05 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:23:05' and `end` < '2025-04-05 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:23:18] Production.INFO: count ==292 [2025-04-05 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:23:05 - End Time 2025-04-05 06:23:05 [2025-04-05 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838319', 'tblTempUsageDetail_20' ) start [2025-04-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838319', 'tblTempUsageDetail_20' ) end [2025-04-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838319', 'tblTempVendorCDR_20' ) start [2025-04-05 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838319', 'tblTempVendorCDR_20' ) end [2025-04-05 06:23:18] Production.INFO: ProcessCDR(1,14838319,1,1,2) [2025-04-05 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838319', 'tblTempUsageDetail_20' ) start [2025-04-05 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838319', 'tblTempUsageDetail_20' ) end [2025-04-05 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:23:21] Production.INFO: ==2190== Releasing lock... [2025-04-05 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:24:06 [end_date_ymd] => 2025-04-05 06:24:06 [RateCDR] => 1 ) [2025-04-05 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:24:06' and `end` < '2025-04-05 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:24:19] Production.INFO: count ==290 [2025-04-05 06:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:24:06 - End Time 2025-04-05 06:24:06 [2025-04-05 06:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838324', 'tblTempUsageDetail_20' ) start [2025-04-05 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838324', 'tblTempUsageDetail_20' ) end [2025-04-05 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838324', 'tblTempVendorCDR_20' ) start [2025-04-05 06:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838324', 'tblTempVendorCDR_20' ) end [2025-04-05 06:24:19] Production.INFO: ProcessCDR(1,14838324,1,1,2) [2025-04-05 06:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838324', 'tblTempUsageDetail_20' ) start [2025-04-05 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838324', 'tblTempUsageDetail_20' ) end [2025-04-05 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:24:22] Production.INFO: ==2263== Releasing lock... [2025-04-05 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:25:04 [end_date_ymd] => 2025-04-05 06:25:04 [RateCDR] => 1 ) [2025-04-05 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:25:04' and `end` < '2025-04-05 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:25:17] Production.INFO: count ==290 [2025-04-05 06:25:17] Production.ERROR: pbx CDR StartTime 2025-04-05 03:25:04 - End Time 2025-04-05 06:25:04 [2025-04-05 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838329', 'tblTempUsageDetail_20' ) start [2025-04-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838329', 'tblTempUsageDetail_20' ) end [2025-04-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838329', 'tblTempVendorCDR_20' ) start [2025-04-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838329', 'tblTempVendorCDR_20' ) end [2025-04-05 06:25:17] Production.INFO: ProcessCDR(1,14838329,1,1,2) [2025-04-05 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838329', 'tblTempUsageDetail_20' ) start [2025-04-05 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838329', 'tblTempUsageDetail_20' ) end [2025-04-05 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:25:20] Production.INFO: ==2374== Releasing lock... [2025-04-05 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:26:05 [end_date_ymd] => 2025-04-05 06:26:05 [RateCDR] => 1 ) [2025-04-05 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:26:05' and `end` < '2025-04-05 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:26:18] Production.INFO: count ==287 [2025-04-05 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:26:05 - End Time 2025-04-05 06:26:05 [2025-04-05 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838334', 'tblTempUsageDetail_20' ) start [2025-04-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838334', 'tblTempUsageDetail_20' ) end [2025-04-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838334', 'tblTempVendorCDR_20' ) start [2025-04-05 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838334', 'tblTempVendorCDR_20' ) end [2025-04-05 06:26:18] Production.INFO: ProcessCDR(1,14838334,1,1,2) [2025-04-05 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838334', 'tblTempUsageDetail_20' ) start [2025-04-05 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838334', 'tblTempUsageDetail_20' ) end [2025-04-05 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:26:21] Production.INFO: ==2444== Releasing lock... [2025-04-05 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:27:05 [end_date_ymd] => 2025-04-05 06:27:05 [RateCDR] => 1 ) [2025-04-05 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:27:05' and `end` < '2025-04-05 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:27:18] Production.INFO: count ==287 [2025-04-05 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:27:05 - End Time 2025-04-05 06:27:05 [2025-04-05 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838339', 'tblTempUsageDetail_20' ) start [2025-04-05 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838339', 'tblTempUsageDetail_20' ) end [2025-04-05 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838339', 'tblTempVendorCDR_20' ) start [2025-04-05 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838339', 'tblTempVendorCDR_20' ) end [2025-04-05 06:27:18] Production.INFO: ProcessCDR(1,14838339,1,1,2) [2025-04-05 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838339', 'tblTempUsageDetail_20' ) start [2025-04-05 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838339', 'tblTempUsageDetail_20' ) end [2025-04-05 06:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:27:23] Production.INFO: ==2516== Releasing lock... [2025-04-05 06:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:27:23] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:28:05 [end_date_ymd] => 2025-04-05 06:28:05 [RateCDR] => 1 ) [2025-04-05 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:28:05' and `end` < '2025-04-05 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:28:18] Production.INFO: count ==282 [2025-04-05 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:28:05 - End Time 2025-04-05 06:28:05 [2025-04-05 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838344', 'tblTempUsageDetail_20' ) start [2025-04-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838344', 'tblTempUsageDetail_20' ) end [2025-04-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838344', 'tblTempVendorCDR_20' ) start [2025-04-05 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838344', 'tblTempVendorCDR_20' ) end [2025-04-05 06:28:18] Production.INFO: ProcessCDR(1,14838344,1,1,2) [2025-04-05 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838344', 'tblTempUsageDetail_20' ) start [2025-04-05 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838344', 'tblTempUsageDetail_20' ) end [2025-04-05 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:28:21] Production.INFO: ==2587== Releasing lock... [2025-04-05 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:28:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:29:05 [end_date_ymd] => 2025-04-05 06:29:05 [RateCDR] => 1 ) [2025-04-05 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:29:05' and `end` < '2025-04-05 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:29:17] Production.INFO: count ==277 [2025-04-05 06:29:17] Production.ERROR: pbx CDR StartTime 2025-04-05 03:29:05 - End Time 2025-04-05 06:29:05 [2025-04-05 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838349', 'tblTempUsageDetail_20' ) start [2025-04-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838349', 'tblTempUsageDetail_20' ) end [2025-04-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838349', 'tblTempVendorCDR_20' ) start [2025-04-05 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838349', 'tblTempVendorCDR_20' ) end [2025-04-05 06:29:17] Production.INFO: ProcessCDR(1,14838349,1,1,2) [2025-04-05 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838349', 'tblTempUsageDetail_20' ) start [2025-04-05 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838349', 'tblTempUsageDetail_20' ) end [2025-04-05 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:29:21] Production.INFO: ==2659== Releasing lock... [2025-04-05 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:30:06 [end_date_ymd] => 2025-04-05 06:30:06 [RateCDR] => 1 ) [2025-04-05 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:30:06' and `end` < '2025-04-05 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:30:19] Production.INFO: count ==278 [2025-04-05 06:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:30:06 - End Time 2025-04-05 06:30:06 [2025-04-05 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838355', 'tblTempUsageDetail_20' ) start [2025-04-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838355', 'tblTempUsageDetail_20' ) end [2025-04-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838355', 'tblTempVendorCDR_20' ) start [2025-04-05 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838355', 'tblTempVendorCDR_20' ) end [2025-04-05 06:30:19] Production.INFO: ProcessCDR(1,14838355,1,1,2) [2025-04-05 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838355', 'tblTempUsageDetail_20' ) start [2025-04-05 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838355', 'tblTempUsageDetail_20' ) end [2025-04-05 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:30:22] Production.INFO: ==2735== Releasing lock... [2025-04-05 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:31:06 [end_date_ymd] => 2025-04-05 06:31:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:31:06' and `end` < '2025-04-05 06: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-04-05 06:31:18] Production.INFO: count ==277 [2025-04-05 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:31:06 - End Time 2025-04-05 06:31:06 [2025-04-05 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838360', 'tblTempUsageDetail_20' ) start [2025-04-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838360', 'tblTempUsageDetail_20' ) end [2025-04-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838360', 'tblTempVendorCDR_20' ) start [2025-04-05 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838360', 'tblTempVendorCDR_20' ) end [2025-04-05 06:31:18] Production.INFO: ProcessCDR(1,14838360,1,1,2) [2025-04-05 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838360', 'tblTempUsageDetail_20' ) start [2025-04-05 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838360', 'tblTempUsageDetail_20' ) end [2025-04-05 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:31:22] Production.INFO: ==2812== Releasing lock... [2025-04-05 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:32:06 [end_date_ymd] => 2025-04-05 06:32:06 [RateCDR] => 1 ) [2025-04-05 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:32:06' and `end` < '2025-04-05 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:32:19] Production.INFO: count ==277 [2025-04-05 06:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:32:06 - End Time 2025-04-05 06:32:06 [2025-04-05 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838365', 'tblTempUsageDetail_20' ) start [2025-04-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838365', 'tblTempUsageDetail_20' ) end [2025-04-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838365', 'tblTempVendorCDR_20' ) start [2025-04-05 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838365', 'tblTempVendorCDR_20' ) end [2025-04-05 06:32:19] Production.INFO: ProcessCDR(1,14838365,1,1,2) [2025-04-05 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838365', 'tblTempUsageDetail_20' ) start [2025-04-05 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838365', 'tblTempUsageDetail_20' ) end [2025-04-05 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:32:22] Production.INFO: ==2886== Releasing lock... [2025-04-05 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:33:06 [end_date_ymd] => 2025-04-05 06:33:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:33:06' and `end` < '2025-04-05 06: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-04-05 06:33:18] Production.INFO: count ==276 [2025-04-05 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:33:06 - End Time 2025-04-05 06:33:06 [2025-04-05 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838370', 'tblTempUsageDetail_20' ) start [2025-04-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838370', 'tblTempUsageDetail_20' ) end [2025-04-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838370', 'tblTempVendorCDR_20' ) start [2025-04-05 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838370', 'tblTempVendorCDR_20' ) end [2025-04-05 06:33:18] Production.INFO: ProcessCDR(1,14838370,1,1,2) [2025-04-05 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838370', 'tblTempUsageDetail_20' ) start [2025-04-05 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838370', 'tblTempUsageDetail_20' ) end [2025-04-05 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:33:22] Production.INFO: ==2957== Releasing lock... [2025-04-05 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:34:05 [end_date_ymd] => 2025-04-05 06:34:05 [RateCDR] => 1 ) [2025-04-05 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:34:05' and `end` < '2025-04-05 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:34:18] Production.INFO: count ==276 [2025-04-05 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:34:05 - End Time 2025-04-05 06:34:05 [2025-04-05 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838375', 'tblTempUsageDetail_20' ) start [2025-04-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838375', 'tblTempUsageDetail_20' ) end [2025-04-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838375', 'tblTempVendorCDR_20' ) start [2025-04-05 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838375', 'tblTempVendorCDR_20' ) end [2025-04-05 06:34:18] Production.INFO: ProcessCDR(1,14838375,1,1,2) [2025-04-05 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838375', 'tblTempUsageDetail_20' ) start [2025-04-05 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838375', 'tblTempUsageDetail_20' ) end [2025-04-05 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:34:22] Production.INFO: ==3031== Releasing lock... [2025-04-05 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:34:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:35:06 [end_date_ymd] => 2025-04-05 06:35:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:35:06' and `end` < '2025-04-05 06: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-04-05 06:35:18] Production.INFO: count ==276 [2025-04-05 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:35:06 - End Time 2025-04-05 06:35:06 [2025-04-05 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838380', 'tblTempUsageDetail_20' ) start [2025-04-05 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838380', 'tblTempUsageDetail_20' ) end [2025-04-05 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838380', 'tblTempVendorCDR_20' ) start [2025-04-05 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838380', 'tblTempVendorCDR_20' ) end [2025-04-05 06:35:18] Production.INFO: ProcessCDR(1,14838380,1,1,2) [2025-04-05 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838380', 'tblTempUsageDetail_20' ) start [2025-04-05 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838380', 'tblTempUsageDetail_20' ) end [2025-04-05 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:35:22] Production.INFO: ==3106== Releasing lock... [2025-04-05 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:36:05 [end_date_ymd] => 2025-04-05 06:36:05 [RateCDR] => 1 ) [2025-04-05 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:36:05' and `end` < '2025-04-05 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:36:18] Production.INFO: count ==276 [2025-04-05 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:36:05 - End Time 2025-04-05 06:36:05 [2025-04-05 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838385', 'tblTempUsageDetail_20' ) start [2025-04-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838385', 'tblTempUsageDetail_20' ) end [2025-04-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838385', 'tblTempVendorCDR_20' ) start [2025-04-05 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838385', 'tblTempVendorCDR_20' ) end [2025-04-05 06:36:18] Production.INFO: ProcessCDR(1,14838385,1,1,2) [2025-04-05 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838385', 'tblTempUsageDetail_20' ) start [2025-04-05 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838385', 'tblTempUsageDetail_20' ) end [2025-04-05 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:36:21] Production.INFO: ==3177== Releasing lock... [2025-04-05 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:37:05 [end_date_ymd] => 2025-04-05 06:37:05 [RateCDR] => 1 ) [2025-04-05 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:37:05' and `end` < '2025-04-05 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:37:18] Production.INFO: count ==273 [2025-04-05 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:37:05 - End Time 2025-04-05 06:37:05 [2025-04-05 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838390', 'tblTempUsageDetail_20' ) start [2025-04-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838390', 'tblTempUsageDetail_20' ) end [2025-04-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838390', 'tblTempVendorCDR_20' ) start [2025-04-05 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838390', 'tblTempVendorCDR_20' ) end [2025-04-05 06:37:18] Production.INFO: ProcessCDR(1,14838390,1,1,2) [2025-04-05 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838390', 'tblTempUsageDetail_20' ) start [2025-04-05 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838390', 'tblTempUsageDetail_20' ) end [2025-04-05 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:37:21] Production.INFO: ==3249== Releasing lock... [2025-04-05 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:38:05 [end_date_ymd] => 2025-04-05 06:38:05 [RateCDR] => 1 ) [2025-04-05 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:38:05' and `end` < '2025-04-05 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:38:18] Production.INFO: count ==271 [2025-04-05 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:38:05 - End Time 2025-04-05 06:38:05 [2025-04-05 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838395', 'tblTempUsageDetail_20' ) start [2025-04-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838395', 'tblTempUsageDetail_20' ) end [2025-04-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838395', 'tblTempVendorCDR_20' ) start [2025-04-05 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838395', 'tblTempVendorCDR_20' ) end [2025-04-05 06:38:18] Production.INFO: ProcessCDR(1,14838395,1,1,2) [2025-04-05 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838395', 'tblTempUsageDetail_20' ) start [2025-04-05 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838395', 'tblTempUsageDetail_20' ) end [2025-04-05 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:38:22] Production.INFO: ==3324== Releasing lock... [2025-04-05 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:38:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:39:06 [end_date_ymd] => 2025-04-05 06:39:06 [RateCDR] => 1 ) [2025-04-05 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:39:06' and `end` < '2025-04-05 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:39:18] Production.INFO: count ==271 [2025-04-05 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:39:06 - End Time 2025-04-05 06:39:06 [2025-04-05 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838400', 'tblTempUsageDetail_20' ) start [2025-04-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838400', 'tblTempUsageDetail_20' ) end [2025-04-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838400', 'tblTempVendorCDR_20' ) start [2025-04-05 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838400', 'tblTempVendorCDR_20' ) end [2025-04-05 06:39:18] Production.INFO: ProcessCDR(1,14838400,1,1,2) [2025-04-05 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838400', 'tblTempUsageDetail_20' ) start [2025-04-05 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838400', 'tblTempUsageDetail_20' ) end [2025-04-05 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:39:22] Production.INFO: ==3396== Releasing lock... [2025-04-05 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:39:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:40:06 [end_date_ymd] => 2025-04-05 06:40:06 [RateCDR] => 1 ) [2025-04-05 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:40:06' and `end` < '2025-04-05 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:40:19] Production.INFO: count ==260 [2025-04-05 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 03:40:06 - End Time 2025-04-05 06:40:06 [2025-04-05 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838406', 'tblTempUsageDetail_20' ) start [2025-04-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838406', 'tblTempUsageDetail_20' ) end [2025-04-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838406', 'tblTempVendorCDR_20' ) start [2025-04-05 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838406', 'tblTempVendorCDR_20' ) end [2025-04-05 06:40:19] Production.INFO: ProcessCDR(1,14838406,1,1,2) [2025-04-05 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838406', 'tblTempUsageDetail_20' ) start [2025-04-05 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838406', 'tblTempUsageDetail_20' ) end [2025-04-05 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:40:22] Production.INFO: ==3475== Releasing lock... [2025-04-05 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:41:05 [end_date_ymd] => 2025-04-05 06:41:05 [RateCDR] => 1 ) [2025-04-05 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:41:05' and `end` < '2025-04-05 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:41:18] Production.INFO: count ==265 [2025-04-05 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:41:05 - End Time 2025-04-05 06:41:05 [2025-04-05 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838411', 'tblTempUsageDetail_20' ) start [2025-04-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838411', 'tblTempUsageDetail_20' ) end [2025-04-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838411', 'tblTempVendorCDR_20' ) start [2025-04-05 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838411', 'tblTempVendorCDR_20' ) end [2025-04-05 06:41:18] Production.INFO: ProcessCDR(1,14838411,1,1,2) [2025-04-05 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838411', 'tblTempUsageDetail_20' ) start [2025-04-05 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838411', 'tblTempUsageDetail_20' ) end [2025-04-05 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:41:21] Production.INFO: ==3590== Releasing lock... [2025-04-05 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:41:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:42:05 [end_date_ymd] => 2025-04-05 06:42:05 [RateCDR] => 1 ) [2025-04-05 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:42:05' and `end` < '2025-04-05 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:42:18] Production.INFO: count ==265 [2025-04-05 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:42:05 - End Time 2025-04-05 06:42:05 [2025-04-05 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838416', 'tblTempUsageDetail_20' ) start [2025-04-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838416', 'tblTempUsageDetail_20' ) end [2025-04-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838416', 'tblTempVendorCDR_20' ) start [2025-04-05 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838416', 'tblTempVendorCDR_20' ) end [2025-04-05 06:42:18] Production.INFO: ProcessCDR(1,14838416,1,1,2) [2025-04-05 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838416', 'tblTempUsageDetail_20' ) start [2025-04-05 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838416', 'tblTempUsageDetail_20' ) end [2025-04-05 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:42:21] Production.INFO: ==3662== Releasing lock... [2025-04-05 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:42:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:43:05 [end_date_ymd] => 2025-04-05 06:43:05 [RateCDR] => 1 ) [2025-04-05 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:43:05' and `end` < '2025-04-05 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:43:18] Production.INFO: count ==264 [2025-04-05 06:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:43:05 - End Time 2025-04-05 06:43:05 [2025-04-05 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838421', 'tblTempUsageDetail_20' ) start [2025-04-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838421', 'tblTempUsageDetail_20' ) end [2025-04-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838421', 'tblTempVendorCDR_20' ) start [2025-04-05 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838421', 'tblTempVendorCDR_20' ) end [2025-04-05 06:43:18] Production.INFO: ProcessCDR(1,14838421,1,1,2) [2025-04-05 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838421', 'tblTempUsageDetail_20' ) start [2025-04-05 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838421', 'tblTempUsageDetail_20' ) end [2025-04-05 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:43:21] Production.INFO: ==3736== Releasing lock... [2025-04-05 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:44:05 [end_date_ymd] => 2025-04-05 06:44:05 [RateCDR] => 1 ) [2025-04-05 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:44:05' and `end` < '2025-04-05 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:44:18] Production.INFO: count ==267 [2025-04-05 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:44:05 - End Time 2025-04-05 06:44:05 [2025-04-05 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838426', 'tblTempUsageDetail_20' ) start [2025-04-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838426', 'tblTempUsageDetail_20' ) end [2025-04-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838426', 'tblTempVendorCDR_20' ) start [2025-04-05 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838426', 'tblTempVendorCDR_20' ) end [2025-04-05 06:44:18] Production.INFO: ProcessCDR(1,14838426,1,1,2) [2025-04-05 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838426', 'tblTempUsageDetail_20' ) start [2025-04-05 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838426', 'tblTempUsageDetail_20' ) end [2025-04-05 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:44:22] Production.INFO: ==3808== Releasing lock... [2025-04-05 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:44:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:45:05 [end_date_ymd] => 2025-04-05 06:45:05 [RateCDR] => 1 ) [2025-04-05 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:45:05' and `end` < '2025-04-05 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:45:18] Production.INFO: count ==265 [2025-04-05 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:45:05 - End Time 2025-04-05 06:45:05 [2025-04-05 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838431', 'tblTempUsageDetail_20' ) start [2025-04-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838431', 'tblTempUsageDetail_20' ) end [2025-04-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838431', 'tblTempVendorCDR_20' ) start [2025-04-05 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838431', 'tblTempVendorCDR_20' ) end [2025-04-05 06:45:18] Production.INFO: ProcessCDR(1,14838431,1,1,2) [2025-04-05 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838431', 'tblTempUsageDetail_20' ) start [2025-04-05 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838431', 'tblTempUsageDetail_20' ) end [2025-04-05 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:45:22] Production.INFO: ==3886== Releasing lock... [2025-04-05 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:45:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:46:05 [end_date_ymd] => 2025-04-05 06:46:05 [RateCDR] => 1 ) [2025-04-05 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:46:05' and `end` < '2025-04-05 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:46:17] Production.INFO: count ==266 [2025-04-05 06:46:17] Production.ERROR: pbx CDR StartTime 2025-04-05 03:46:05 - End Time 2025-04-05 06:46:05 [2025-04-05 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838436', 'tblTempUsageDetail_20' ) start [2025-04-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838436', 'tblTempUsageDetail_20' ) end [2025-04-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838436', 'tblTempVendorCDR_20' ) start [2025-04-05 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838436', 'tblTempVendorCDR_20' ) end [2025-04-05 06:46:17] Production.INFO: ProcessCDR(1,14838436,1,1,2) [2025-04-05 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838436', 'tblTempUsageDetail_20' ) start [2025-04-05 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838436', 'tblTempUsageDetail_20' ) end [2025-04-05 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:46:21] Production.INFO: ==3954== Releasing lock... [2025-04-05 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:47:06 [end_date_ymd] => 2025-04-05 06:47:06 [RateCDR] => 1 ) [2025-04-05 06:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:47:06' and `end` < '2025-04-05 06:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:47:18] Production.INFO: count ==263 [2025-04-05 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:47:06 - End Time 2025-04-05 06:47:06 [2025-04-05 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838441', 'tblTempUsageDetail_20' ) start [2025-04-05 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838441', 'tblTempUsageDetail_20' ) end [2025-04-05 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838441', 'tblTempVendorCDR_20' ) start [2025-04-05 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838441', 'tblTempVendorCDR_20' ) end [2025-04-05 06:47:18] Production.INFO: ProcessCDR(1,14838441,1,1,2) [2025-04-05 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838441', 'tblTempUsageDetail_20' ) start [2025-04-05 06:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838441', 'tblTempUsageDetail_20' ) end [2025-04-05 06:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:47:23] Production.INFO: ==4028== Releasing lock... [2025-04-05 06:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:47:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:48:06 [end_date_ymd] => 2025-04-05 06:48:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:48:06' and `end` < '2025-04-05 06: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-04-05 06:48:18] Production.INFO: count ==261 [2025-04-05 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:48:06 - End Time 2025-04-05 06:48:06 [2025-04-05 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838446', 'tblTempUsageDetail_20' ) start [2025-04-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838446', 'tblTempUsageDetail_20' ) end [2025-04-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838446', 'tblTempVendorCDR_20' ) start [2025-04-05 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838446', 'tblTempVendorCDR_20' ) end [2025-04-05 06:48:18] Production.INFO: ProcessCDR(1,14838446,1,1,2) [2025-04-05 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838446', 'tblTempUsageDetail_20' ) start [2025-04-05 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838446', 'tblTempUsageDetail_20' ) end [2025-04-05 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:48:22] Production.INFO: ==4103== Releasing lock... [2025-04-05 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:49:05 [end_date_ymd] => 2025-04-05 06:49:05 [RateCDR] => 1 ) [2025-04-05 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:49:05' and `end` < '2025-04-05 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:49:18] Production.INFO: count ==261 [2025-04-05 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:49:05 - End Time 2025-04-05 06:49:05 [2025-04-05 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838451', 'tblTempUsageDetail_20' ) start [2025-04-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838451', 'tblTempUsageDetail_20' ) end [2025-04-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838451', 'tblTempVendorCDR_20' ) start [2025-04-05 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838451', 'tblTempVendorCDR_20' ) end [2025-04-05 06:49:18] Production.INFO: ProcessCDR(1,14838451,1,1,2) [2025-04-05 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838451', 'tblTempUsageDetail_20' ) start [2025-04-05 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838451', 'tblTempUsageDetail_20' ) end [2025-04-05 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:49:22] Production.INFO: ==4175== Releasing lock... [2025-04-05 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:50:06 [end_date_ymd] => 2025-04-05 06:50:06 [RateCDR] => 1 ) [2025-04-05 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:50:06' and `end` < '2025-04-05 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:50:18] Production.INFO: count ==261 [2025-04-05 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:50:06 - End Time 2025-04-05 06:50:06 [2025-04-05 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838456', 'tblTempUsageDetail_20' ) start [2025-04-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838456', 'tblTempUsageDetail_20' ) end [2025-04-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838456', 'tblTempVendorCDR_20' ) start [2025-04-05 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838456', 'tblTempVendorCDR_20' ) end [2025-04-05 06:50:18] Production.INFO: ProcessCDR(1,14838456,1,1,2) [2025-04-05 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838456', 'tblTempUsageDetail_20' ) start [2025-04-05 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838456', 'tblTempUsageDetail_20' ) end [2025-04-05 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:50:22] Production.INFO: ==4249== Releasing lock... [2025-04-05 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:51:05 [end_date_ymd] => 2025-04-05 06:51:05 [RateCDR] => 1 ) [2025-04-05 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:51:05' and `end` < '2025-04-05 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:51:18] Production.INFO: count ==261 [2025-04-05 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:51:05 - End Time 2025-04-05 06:51:05 [2025-04-05 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838462', 'tblTempUsageDetail_20' ) start [2025-04-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838462', 'tblTempUsageDetail_20' ) end [2025-04-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838462', 'tblTempVendorCDR_20' ) start [2025-04-05 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838462', 'tblTempVendorCDR_20' ) end [2025-04-05 06:51:18] Production.INFO: ProcessCDR(1,14838462,1,1,2) [2025-04-05 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838462', 'tblTempUsageDetail_20' ) start [2025-04-05 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838462', 'tblTempUsageDetail_20' ) end [2025-04-05 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:51:21] Production.INFO: ==4325== Releasing lock... [2025-04-05 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:52:05 [end_date_ymd] => 2025-04-05 06:52:05 [RateCDR] => 1 ) [2025-04-05 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:52:05' and `end` < '2025-04-05 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:52:18] Production.INFO: count ==261 [2025-04-05 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:52:05 - End Time 2025-04-05 06:52:05 [2025-04-05 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838467', 'tblTempUsageDetail_20' ) start [2025-04-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838467', 'tblTempUsageDetail_20' ) end [2025-04-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838467', 'tblTempVendorCDR_20' ) start [2025-04-05 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838467', 'tblTempVendorCDR_20' ) end [2025-04-05 06:52:18] Production.INFO: ProcessCDR(1,14838467,1,1,2) [2025-04-05 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838467', 'tblTempUsageDetail_20' ) start [2025-04-05 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838467', 'tblTempUsageDetail_20' ) end [2025-04-05 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:52:22] Production.INFO: ==4397== Releasing lock... [2025-04-05 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:53:05 [end_date_ymd] => 2025-04-05 06:53:05 [RateCDR] => 1 ) [2025-04-05 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:53:05' and `end` < '2025-04-05 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:53:18] Production.INFO: count ==261 [2025-04-05 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:53:05 - End Time 2025-04-05 06:53:05 [2025-04-05 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838472', 'tblTempUsageDetail_20' ) start [2025-04-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838472', 'tblTempUsageDetail_20' ) end [2025-04-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838472', 'tblTempVendorCDR_20' ) start [2025-04-05 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838472', 'tblTempVendorCDR_20' ) end [2025-04-05 06:53:18] Production.INFO: ProcessCDR(1,14838472,1,1,2) [2025-04-05 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838472', 'tblTempUsageDetail_20' ) start [2025-04-05 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838472', 'tblTempUsageDetail_20' ) end [2025-04-05 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:53:21] Production.INFO: ==4475== Releasing lock... [2025-04-05 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:54:06 [end_date_ymd] => 2025-04-05 06:54:06 [RateCDR] => 1 ) [2025-04-05 06: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-04-05 03:54:06' and `end` < '2025-04-05 06: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-04-05 06:54:18] Production.INFO: count ==261 [2025-04-05 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:54:06 - End Time 2025-04-05 06:54:06 [2025-04-05 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838477', 'tblTempUsageDetail_20' ) start [2025-04-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838477', 'tblTempUsageDetail_20' ) end [2025-04-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838477', 'tblTempVendorCDR_20' ) start [2025-04-05 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838477', 'tblTempVendorCDR_20' ) end [2025-04-05 06:54:18] Production.INFO: ProcessCDR(1,14838477,1,1,2) [2025-04-05 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838477', 'tblTempUsageDetail_20' ) start [2025-04-05 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838477', 'tblTempUsageDetail_20' ) end [2025-04-05 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:54:22] Production.INFO: ==4549== Releasing lock... [2025-04-05 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:55:05 [end_date_ymd] => 2025-04-05 06:55:05 [RateCDR] => 1 ) [2025-04-05 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:55:05' and `end` < '2025-04-05 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:55:18] Production.INFO: count ==261 [2025-04-05 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:55:05 - End Time 2025-04-05 06:55:05 [2025-04-05 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838482', 'tblTempUsageDetail_20' ) start [2025-04-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838482', 'tblTempUsageDetail_20' ) end [2025-04-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838482', 'tblTempVendorCDR_20' ) start [2025-04-05 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838482', 'tblTempVendorCDR_20' ) end [2025-04-05 06:55:18] Production.INFO: ProcessCDR(1,14838482,1,1,2) [2025-04-05 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838482', 'tblTempUsageDetail_20' ) start [2025-04-05 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838482', 'tblTempUsageDetail_20' ) end [2025-04-05 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:55:21] Production.INFO: ==4629== Releasing lock... [2025-04-05 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:56:05 [end_date_ymd] => 2025-04-05 06:56:05 [RateCDR] => 1 ) [2025-04-05 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:56:05' and `end` < '2025-04-05 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:56:18] Production.INFO: count ==261 [2025-04-05 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:56:05 - End Time 2025-04-05 06:56:05 [2025-04-05 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838487', 'tblTempUsageDetail_20' ) start [2025-04-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838487', 'tblTempUsageDetail_20' ) end [2025-04-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838487', 'tblTempVendorCDR_20' ) start [2025-04-05 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838487', 'tblTempVendorCDR_20' ) end [2025-04-05 06:56:18] Production.INFO: ProcessCDR(1,14838487,1,1,2) [2025-04-05 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838487', 'tblTempUsageDetail_20' ) start [2025-04-05 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838487', 'tblTempUsageDetail_20' ) end [2025-04-05 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:56:21] Production.INFO: ==4740== Releasing lock... [2025-04-05 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:56:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:57:05 [end_date_ymd] => 2025-04-05 06:57:05 [RateCDR] => 1 ) [2025-04-05 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:57:05' and `end` < '2025-04-05 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:57:18] Production.INFO: count ==261 [2025-04-05 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:57:05 - End Time 2025-04-05 06:57:05 [2025-04-05 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838492', 'tblTempUsageDetail_20' ) start [2025-04-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838492', 'tblTempUsageDetail_20' ) end [2025-04-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838492', 'tblTempVendorCDR_20' ) start [2025-04-05 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838492', 'tblTempVendorCDR_20' ) end [2025-04-05 06:57:18] Production.INFO: ProcessCDR(1,14838492,1,1,2) [2025-04-05 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838492', 'tblTempUsageDetail_20' ) start [2025-04-05 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838492', 'tblTempUsageDetail_20' ) end [2025-04-05 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:57:21] Production.INFO: ==4814== Releasing lock... [2025-04-05 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:58:05 [end_date_ymd] => 2025-04-05 06:58:05 [RateCDR] => 1 ) [2025-04-05 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:58:05' and `end` < '2025-04-05 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:58:18] Production.INFO: count ==264 [2025-04-05 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:58:05 - End Time 2025-04-05 06:58:05 [2025-04-05 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838497', 'tblTempUsageDetail_20' ) start [2025-04-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838497', 'tblTempUsageDetail_20' ) end [2025-04-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838497', 'tblTempVendorCDR_20' ) start [2025-04-05 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838497', 'tblTempVendorCDR_20' ) end [2025-04-05 06:58:18] Production.INFO: ProcessCDR(1,14838497,1,1,2) [2025-04-05 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838497', 'tblTempUsageDetail_20' ) start [2025-04-05 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838497', 'tblTempUsageDetail_20' ) end [2025-04-05 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:58:21] Production.INFO: ==4887== Releasing lock... [2025-04-05 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:58:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 03:59:05 [end_date_ymd] => 2025-04-05 06:59:05 [RateCDR] => 1 ) [2025-04-05 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 03:59:05' and `end` < '2025-04-05 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 06:59:18] Production.INFO: count ==263 [2025-04-05 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 03:59:05 - End Time 2025-04-05 06:59:05 [2025-04-05 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838502', 'tblTempUsageDetail_20' ) start [2025-04-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838502', 'tblTempUsageDetail_20' ) end [2025-04-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838502', 'tblTempVendorCDR_20' ) start [2025-04-05 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838502', 'tblTempVendorCDR_20' ) end [2025-04-05 06:59:18] Production.INFO: ProcessCDR(1,14838502,1,1,2) [2025-04-05 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838502', 'tblTempUsageDetail_20' ) start [2025-04-05 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838502', 'tblTempUsageDetail_20' ) end [2025-04-05 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 06:59:21] Production.INFO: ==4963== Releasing lock... [2025-04-05 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 06:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:00:06 [end_date_ymd] => 2025-04-05 07:00:06 [RateCDR] => 1 ) [2025-04-05 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:00:06' and `end` < '2025-04-05 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:00:19] Production.INFO: count ==264 [2025-04-05 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:00:06 - End Time 2025-04-05 07:00:06 [2025-04-05 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838508', 'tblTempUsageDetail_20' ) start [2025-04-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838508', 'tblTempUsageDetail_20' ) end [2025-04-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838508', 'tblTempVendorCDR_20' ) start [2025-04-05 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838508', 'tblTempVendorCDR_20' ) end [2025-04-05 07:00:19] Production.INFO: ProcessCDR(1,14838508,1,1,2) [2025-04-05 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838508', 'tblTempUsageDetail_20' ) start [2025-04-05 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838508', 'tblTempUsageDetail_20' ) end [2025-04-05 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:00:23] Production.INFO: ==5040== Releasing lock... [2025-04-05 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:00:23] Production.INFO: 31 MB #Memory Used# [2025-04-05 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:01:05 [end_date_ymd] => 2025-04-05 07:01:05 [RateCDR] => 1 ) [2025-04-05 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:01:05' and `end` < '2025-04-05 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:01:18] Production.INFO: count ==261 [2025-04-05 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:01:05 - End Time 2025-04-05 07:01:05 [2025-04-05 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838513', 'tblTempUsageDetail_20' ) start [2025-04-05 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838513', 'tblTempUsageDetail_20' ) end [2025-04-05 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838513', 'tblTempVendorCDR_20' ) start [2025-04-05 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838513', 'tblTempVendorCDR_20' ) end [2025-04-05 07:01:18] Production.INFO: ProcessCDR(1,14838513,1,1,2) [2025-04-05 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838513', 'tblTempUsageDetail_20' ) start [2025-04-05 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838513', 'tblTempUsageDetail_20' ) end [2025-04-05 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:01:21] Production.INFO: ==5139== Releasing lock... [2025-04-05 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:01:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:02:05 [end_date_ymd] => 2025-04-05 07:02:05 [RateCDR] => 1 ) [2025-04-05 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:02:05' and `end` < '2025-04-05 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:02:20] Production.INFO: count ==254 [2025-04-05 07:02:20] Production.ERROR: pbx CDR StartTime 2025-04-05 04:02:05 - End Time 2025-04-05 07:02:05 [2025-04-05 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838518', 'tblTempUsageDetail_20' ) start [2025-04-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838518', 'tblTempUsageDetail_20' ) end [2025-04-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838518', 'tblTempVendorCDR_20' ) start [2025-04-05 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838518', 'tblTempVendorCDR_20' ) end [2025-04-05 07:02:20] Production.INFO: ProcessCDR(1,14838518,1,1,2) [2025-04-05 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838518', 'tblTempUsageDetail_20' ) start [2025-04-05 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838518', 'tblTempUsageDetail_20' ) end [2025-04-05 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:02:23] Production.INFO: ==5311== Releasing lock... [2025-04-05 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:02:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:03:05 [end_date_ymd] => 2025-04-05 07:03:05 [RateCDR] => 1 ) [2025-04-05 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:03:05' and `end` < '2025-04-05 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:03:18] Production.INFO: count ==246 [2025-04-05 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:03:05 - End Time 2025-04-05 07:03:05 [2025-04-05 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838523', 'tblTempUsageDetail_20' ) start [2025-04-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838523', 'tblTempUsageDetail_20' ) end [2025-04-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838523', 'tblTempVendorCDR_20' ) start [2025-04-05 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838523', 'tblTempVendorCDR_20' ) end [2025-04-05 07:03:18] Production.INFO: ProcessCDR(1,14838523,1,1,2) [2025-04-05 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838523', 'tblTempUsageDetail_20' ) start [2025-04-05 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838523', 'tblTempUsageDetail_20' ) end [2025-04-05 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:03:21] Production.INFO: ==5399== Releasing lock... [2025-04-05 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:04:05 [end_date_ymd] => 2025-04-05 07:04:05 [RateCDR] => 1 ) [2025-04-05 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:04:05' and `end` < '2025-04-05 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:04:20] Production.INFO: count ==241 [2025-04-05 07:04:20] Production.ERROR: pbx CDR StartTime 2025-04-05 04:04:05 - End Time 2025-04-05 07:04:05 [2025-04-05 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838528', 'tblTempUsageDetail_20' ) start [2025-04-05 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838528', 'tblTempUsageDetail_20' ) end [2025-04-05 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838528', 'tblTempVendorCDR_20' ) start [2025-04-05 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838528', 'tblTempVendorCDR_20' ) end [2025-04-05 07:04:20] Production.INFO: ProcessCDR(1,14838528,1,1,2) [2025-04-05 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838528', 'tblTempUsageDetail_20' ) start [2025-04-05 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838528', 'tblTempUsageDetail_20' ) end [2025-04-05 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:04:23] Production.INFO: ==5488== Releasing lock... [2025-04-05 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:04:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:05:05 [end_date_ymd] => 2025-04-05 07:05:05 [RateCDR] => 1 ) [2025-04-05 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:05:05' and `end` < '2025-04-05 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:05:19] Production.INFO: count ==238 [2025-04-05 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:05:05 - End Time 2025-04-05 07:05:05 [2025-04-05 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838533', 'tblTempUsageDetail_20' ) start [2025-04-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838533', 'tblTempUsageDetail_20' ) end [2025-04-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838533', 'tblTempVendorCDR_20' ) start [2025-04-05 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838533', 'tblTempVendorCDR_20' ) end [2025-04-05 07:05:19] Production.INFO: ProcessCDR(1,14838533,1,1,2) [2025-04-05 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838533', 'tblTempUsageDetail_20' ) start [2025-04-05 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838533', 'tblTempUsageDetail_20' ) end [2025-04-05 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:05:22] Production.INFO: ==5650== Releasing lock... [2025-04-05 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:05:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:06:05 [end_date_ymd] => 2025-04-05 07:06:05 [RateCDR] => 1 ) [2025-04-05 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:06:05' and `end` < '2025-04-05 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:06:18] Production.INFO: count ==237 [2025-04-05 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:06:05 - End Time 2025-04-05 07:06:05 [2025-04-05 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838538', 'tblTempUsageDetail_20' ) start [2025-04-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838538', 'tblTempUsageDetail_20' ) end [2025-04-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838538', 'tblTempVendorCDR_20' ) start [2025-04-05 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838538', 'tblTempVendorCDR_20' ) end [2025-04-05 07:06:18] Production.INFO: ProcessCDR(1,14838538,1,1,2) [2025-04-05 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838538', 'tblTempUsageDetail_20' ) start [2025-04-05 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838538', 'tblTempUsageDetail_20' ) end [2025-04-05 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:06:21] Production.INFO: ==5722== Releasing lock... [2025-04-05 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:07:04 [end_date_ymd] => 2025-04-05 07:07:04 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:07:04' and `end` < '2025-04-05 07: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-04-05 07:07:18] Production.INFO: count ==239 [2025-04-05 07:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:07:04 - End Time 2025-04-05 07:07:04 [2025-04-05 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838543', 'tblTempUsageDetail_20' ) start [2025-04-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838543', 'tblTempUsageDetail_20' ) end [2025-04-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838543', 'tblTempVendorCDR_20' ) start [2025-04-05 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838543', 'tblTempVendorCDR_20' ) end [2025-04-05 07:07:18] Production.INFO: ProcessCDR(1,14838543,1,1,2) [2025-04-05 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838543', 'tblTempUsageDetail_20' ) start [2025-04-05 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838543', 'tblTempUsageDetail_20' ) end [2025-04-05 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:07:21] Production.INFO: ==5792== Releasing lock... [2025-04-05 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:08:05 [end_date_ymd] => 2025-04-05 07:08:05 [RateCDR] => 1 ) [2025-04-05 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:08:05' and `end` < '2025-04-05 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:08:18] Production.INFO: count ==242 [2025-04-05 07:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:08:05 - End Time 2025-04-05 07:08:05 [2025-04-05 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838548', 'tblTempUsageDetail_20' ) start [2025-04-05 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838548', 'tblTempUsageDetail_20' ) end [2025-04-05 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838548', 'tblTempVendorCDR_20' ) start [2025-04-05 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838548', 'tblTempVendorCDR_20' ) end [2025-04-05 07:08:18] Production.INFO: ProcessCDR(1,14838548,1,1,2) [2025-04-05 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838548', 'tblTempUsageDetail_20' ) start [2025-04-05 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838548', 'tblTempUsageDetail_20' ) end [2025-04-05 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:08:22] Production.INFO: ==5916== Releasing lock... [2025-04-05 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:09:06 [end_date_ymd] => 2025-04-05 07:09:06 [RateCDR] => 1 ) [2025-04-05 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:09:06' and `end` < '2025-04-05 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:09:18] Production.INFO: count ==242 [2025-04-05 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:09:06 - End Time 2025-04-05 07:09:06 [2025-04-05 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838553', 'tblTempUsageDetail_20' ) start [2025-04-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838553', 'tblTempUsageDetail_20' ) end [2025-04-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838553', 'tblTempVendorCDR_20' ) start [2025-04-05 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838553', 'tblTempVendorCDR_20' ) end [2025-04-05 07:09:18] Production.INFO: ProcessCDR(1,14838553,1,1,2) [2025-04-05 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838553', 'tblTempUsageDetail_20' ) start [2025-04-05 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838553', 'tblTempUsageDetail_20' ) end [2025-04-05 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:09:22] Production.INFO: ==6016== Releasing lock... [2025-04-05 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:09:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:10:05 [end_date_ymd] => 2025-04-05 07:10:05 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:10:05' and `end` < '2025-04-05 07: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-04-05 07:10:18] Production.INFO: count ==242 [2025-04-05 07:10:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:10:05 - End Time 2025-04-05 07:10:05 [2025-04-05 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838558', 'tblTempUsageDetail_20' ) start [2025-04-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838558', 'tblTempUsageDetail_20' ) end [2025-04-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838558', 'tblTempVendorCDR_20' ) start [2025-04-05 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838558', 'tblTempVendorCDR_20' ) end [2025-04-05 07:10:18] Production.INFO: ProcessCDR(1,14838558,1,1,2) [2025-04-05 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838558', 'tblTempUsageDetail_20' ) start [2025-04-05 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838558', 'tblTempUsageDetail_20' ) end [2025-04-05 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:10:22] Production.INFO: ==6089== Releasing lock... [2025-04-05 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:11:06 [end_date_ymd] => 2025-04-05 07:11:06 [RateCDR] => 1 ) [2025-04-05 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:11:06' and `end` < '2025-04-05 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:11:19] Production.INFO: count ==242 [2025-04-05 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:11:06 - End Time 2025-04-05 07:11:06 [2025-04-05 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838564', 'tblTempUsageDetail_20' ) start [2025-04-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838564', 'tblTempUsageDetail_20' ) end [2025-04-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838564', 'tblTempVendorCDR_20' ) start [2025-04-05 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838564', 'tblTempVendorCDR_20' ) end [2025-04-05 07:11:19] Production.INFO: ProcessCDR(1,14838564,1,1,2) [2025-04-05 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838564', 'tblTempUsageDetail_20' ) start [2025-04-05 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838564', 'tblTempUsageDetail_20' ) end [2025-04-05 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:11:22] Production.INFO: ==6205== Releasing lock... [2025-04-05 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:12:05 [end_date_ymd] => 2025-04-05 07:12:05 [RateCDR] => 1 ) [2025-04-05 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:12:05' and `end` < '2025-04-05 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:12:20] Production.INFO: count ==242 [2025-04-05 07:12:20] Production.ERROR: pbx CDR StartTime 2025-04-05 04:12:05 - End Time 2025-04-05 07:12:05 [2025-04-05 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838569', 'tblTempUsageDetail_20' ) start [2025-04-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838569', 'tblTempUsageDetail_20' ) end [2025-04-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838569', 'tblTempVendorCDR_20' ) start [2025-04-05 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838569', 'tblTempVendorCDR_20' ) end [2025-04-05 07:12:20] Production.INFO: ProcessCDR(1,14838569,1,1,2) [2025-04-05 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838569', 'tblTempUsageDetail_20' ) start [2025-04-05 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838569', 'tblTempUsageDetail_20' ) end [2025-04-05 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:12:23] Production.INFO: ==6355== Releasing lock... [2025-04-05 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:13:05 [end_date_ymd] => 2025-04-05 07:13:05 [RateCDR] => 1 ) [2025-04-05 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:13:05' and `end` < '2025-04-05 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:13:19] Production.INFO: count ==242 [2025-04-05 07:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:13:05 - End Time 2025-04-05 07:13:05 [2025-04-05 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838574', 'tblTempUsageDetail_20' ) start [2025-04-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838574', 'tblTempUsageDetail_20' ) end [2025-04-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838574', 'tblTempVendorCDR_20' ) start [2025-04-05 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838574', 'tblTempVendorCDR_20' ) end [2025-04-05 07:13:19] Production.INFO: ProcessCDR(1,14838574,1,1,2) [2025-04-05 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838574', 'tblTempUsageDetail_20' ) start [2025-04-05 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838574', 'tblTempUsageDetail_20' ) end [2025-04-05 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:13:22] Production.INFO: ==6427== Releasing lock... [2025-04-05 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:14:05 [end_date_ymd] => 2025-04-05 07:14:05 [RateCDR] => 1 ) [2025-04-05 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:14:05' and `end` < '2025-04-05 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:14:19] Production.INFO: count ==244 [2025-04-05 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:14:05 - End Time 2025-04-05 07:14:05 [2025-04-05 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838579', 'tblTempUsageDetail_20' ) start [2025-04-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838579', 'tblTempUsageDetail_20' ) end [2025-04-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838579', 'tblTempVendorCDR_20' ) start [2025-04-05 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838579', 'tblTempVendorCDR_20' ) end [2025-04-05 07:14:19] Production.INFO: ProcessCDR(1,14838579,1,1,2) [2025-04-05 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838579', 'tblTempUsageDetail_20' ) start [2025-04-05 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838579', 'tblTempUsageDetail_20' ) end [2025-04-05 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:14:24] Production.INFO: ==6500== Releasing lock... [2025-04-05 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:14:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:15:05 [end_date_ymd] => 2025-04-05 07:15:05 [RateCDR] => 1 ) [2025-04-05 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:15:05' and `end` < '2025-04-05 07: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-04-05 07:15:20] Production.INFO: count ==245 [2025-04-05 07:15:20] Production.ERROR: pbx CDR StartTime 2025-04-05 04:15:05 - End Time 2025-04-05 07:15:05 [2025-04-05 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838584', 'tblTempUsageDetail_20' ) start [2025-04-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838584', 'tblTempUsageDetail_20' ) end [2025-04-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838584', 'tblTempVendorCDR_20' ) start [2025-04-05 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838584', 'tblTempVendorCDR_20' ) end [2025-04-05 07:15:20] Production.INFO: ProcessCDR(1,14838584,1,1,2) [2025-04-05 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838584', 'tblTempUsageDetail_20' ) start [2025-04-05 07:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838584', 'tblTempUsageDetail_20' ) end [2025-04-05 07:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:15:25] Production.INFO: ==6656== Releasing lock... [2025-04-05 07:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:15:25] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:16:05 [end_date_ymd] => 2025-04-05 07:16:05 [RateCDR] => 1 ) [2025-04-05 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:16:05' and `end` < '2025-04-05 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:16:18] Production.INFO: count ==245 [2025-04-05 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:16:05 - End Time 2025-04-05 07:16:05 [2025-04-05 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838589', 'tblTempUsageDetail_20' ) start [2025-04-05 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838589', 'tblTempUsageDetail_20' ) end [2025-04-05 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838589', 'tblTempVendorCDR_20' ) start [2025-04-05 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838589', 'tblTempVendorCDR_20' ) end [2025-04-05 07:16:18] Production.INFO: ProcessCDR(1,14838589,1,1,2) [2025-04-05 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838589', 'tblTempUsageDetail_20' ) start [2025-04-05 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838589', 'tblTempUsageDetail_20' ) end [2025-04-05 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:16:22] Production.INFO: ==6732== Releasing lock... [2025-04-05 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:16:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:17:05 [end_date_ymd] => 2025-04-05 07:17:05 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:17:05' and `end` < '2025-04-05 07: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-04-05 07:17:18] Production.INFO: count ==245 [2025-04-05 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:17:05 - End Time 2025-04-05 07:17:05 [2025-04-05 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838594', 'tblTempUsageDetail_20' ) start [2025-04-05 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838594', 'tblTempUsageDetail_20' ) end [2025-04-05 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838594', 'tblTempVendorCDR_20' ) start [2025-04-05 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838594', 'tblTempVendorCDR_20' ) end [2025-04-05 07:17:18] Production.INFO: ProcessCDR(1,14838594,1,1,2) [2025-04-05 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838594', 'tblTempUsageDetail_20' ) start [2025-04-05 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838594', 'tblTempUsageDetail_20' ) end [2025-04-05 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:17:22] Production.INFO: ==6804== Releasing lock... [2025-04-05 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:18:05 [end_date_ymd] => 2025-04-05 07:18:05 [RateCDR] => 1 ) [2025-04-05 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:18:05' and `end` < '2025-04-05 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:18:18] Production.INFO: count ==245 [2025-04-05 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:18:05 - End Time 2025-04-05 07:18:05 [2025-04-05 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838599', 'tblTempUsageDetail_20' ) start [2025-04-05 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838599', 'tblTempUsageDetail_20' ) end [2025-04-05 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838599', 'tblTempVendorCDR_20' ) start [2025-04-05 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838599', 'tblTempVendorCDR_20' ) end [2025-04-05 07:18:18] Production.INFO: ProcessCDR(1,14838599,1,1,2) [2025-04-05 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838599', 'tblTempUsageDetail_20' ) start [2025-04-05 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838599', 'tblTempUsageDetail_20' ) end [2025-04-05 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:18:21] Production.INFO: ==6879== Releasing lock... [2025-04-05 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:19:05 [end_date_ymd] => 2025-04-05 07:19:05 [RateCDR] => 1 ) [2025-04-05 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:19:05' and `end` < '2025-04-05 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:19:18] Production.INFO: count ==245 [2025-04-05 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:19:05 - End Time 2025-04-05 07:19:05 [2025-04-05 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838604', 'tblTempUsageDetail_20' ) start [2025-04-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838604', 'tblTempUsageDetail_20' ) end [2025-04-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838604', 'tblTempVendorCDR_20' ) start [2025-04-05 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838604', 'tblTempVendorCDR_20' ) end [2025-04-05 07:19:18] Production.INFO: ProcessCDR(1,14838604,1,1,2) [2025-04-05 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838604', 'tblTempUsageDetail_20' ) start [2025-04-05 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838604', 'tblTempUsageDetail_20' ) end [2025-04-05 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:19:22] Production.INFO: ==6952== Releasing lock... [2025-04-05 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:20:07 [end_date_ymd] => 2025-04-05 07:20:07 [RateCDR] => 1 ) [2025-04-05 07:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:20:07' and `end` < '2025-04-05 07:20: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-04-05 07:20:19] Production.INFO: count ==237 [2025-04-05 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:20:07 - End Time 2025-04-05 07:20:07 [2025-04-05 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838609', 'tblTempUsageDetail_20' ) start [2025-04-05 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838609', 'tblTempUsageDetail_20' ) end [2025-04-05 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838609', 'tblTempVendorCDR_20' ) start [2025-04-05 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838609', 'tblTempVendorCDR_20' ) end [2025-04-05 07:20:19] Production.INFO: ProcessCDR(1,14838609,1,1,2) [2025-04-05 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838609', 'tblTempUsageDetail_20' ) start [2025-04-05 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838609', 'tblTempUsageDetail_20' ) end [2025-04-05 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:20:23] Production.INFO: ==7025== Releasing lock... [2025-04-05 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:20:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:21:05 [end_date_ymd] => 2025-04-05 07:21:05 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:21:05' and `end` < '2025-04-05 07: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-04-05 07:21:18] Production.INFO: count ==237 [2025-04-05 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:21:05 - End Time 2025-04-05 07:21:05 [2025-04-05 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838615', 'tblTempUsageDetail_20' ) start [2025-04-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838615', 'tblTempUsageDetail_20' ) end [2025-04-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838615', 'tblTempVendorCDR_20' ) start [2025-04-05 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838615', 'tblTempVendorCDR_20' ) end [2025-04-05 07:21:18] Production.INFO: ProcessCDR(1,14838615,1,1,2) [2025-04-05 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838615', 'tblTempUsageDetail_20' ) start [2025-04-05 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838615', 'tblTempUsageDetail_20' ) end [2025-04-05 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:21:22] Production.INFO: ==7098== Releasing lock... [2025-04-05 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:22:06 [end_date_ymd] => 2025-04-05 07:22:06 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:22:06' and `end` < '2025-04-05 07: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-04-05 07:22:19] Production.INFO: count ==238 [2025-04-05 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:22:06 - End Time 2025-04-05 07:22:06 [2025-04-05 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838620', 'tblTempUsageDetail_20' ) start [2025-04-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838620', 'tblTempUsageDetail_20' ) end [2025-04-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838620', 'tblTempVendorCDR_20' ) start [2025-04-05 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838620', 'tblTempVendorCDR_20' ) end [2025-04-05 07:22:19] Production.INFO: ProcessCDR(1,14838620,1,1,2) [2025-04-05 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838620', 'tblTempUsageDetail_20' ) start [2025-04-05 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838620', 'tblTempUsageDetail_20' ) end [2025-04-05 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:22:24] Production.INFO: ==7171== Releasing lock... [2025-04-05 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:23:06 [end_date_ymd] => 2025-04-05 07:23:06 [RateCDR] => 1 ) [2025-04-05 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:23:06' and `end` < '2025-04-05 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:23:18] Production.INFO: count ==238 [2025-04-05 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:23:06 - End Time 2025-04-05 07:23:06 [2025-04-05 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838625', 'tblTempUsageDetail_20' ) start [2025-04-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838625', 'tblTempUsageDetail_20' ) end [2025-04-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838625', 'tblTempVendorCDR_20' ) start [2025-04-05 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838625', 'tblTempVendorCDR_20' ) end [2025-04-05 07:23:18] Production.INFO: ProcessCDR(1,14838625,1,1,2) [2025-04-05 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838625', 'tblTempUsageDetail_20' ) start [2025-04-05 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838625', 'tblTempUsageDetail_20' ) end [2025-04-05 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:23:22] Production.INFO: ==7244== Releasing lock... [2025-04-05 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:24:06 [end_date_ymd] => 2025-04-05 07:24:06 [RateCDR] => 1 ) [2025-04-05 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:24:06' and `end` < '2025-04-05 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:24:18] Production.INFO: count ==238 [2025-04-05 07:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:24:06 - End Time 2025-04-05 07:24:06 [2025-04-05 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838630', 'tblTempUsageDetail_20' ) start [2025-04-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838630', 'tblTempUsageDetail_20' ) end [2025-04-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838630', 'tblTempVendorCDR_20' ) start [2025-04-05 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838630', 'tblTempVendorCDR_20' ) end [2025-04-05 07:24:19] Production.INFO: ProcessCDR(1,14838630,1,1,2) [2025-04-05 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838630', 'tblTempUsageDetail_20' ) start [2025-04-05 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838630', 'tblTempUsageDetail_20' ) end [2025-04-05 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:24:22] Production.INFO: ==7318== Releasing lock... [2025-04-05 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:25:05 [end_date_ymd] => 2025-04-05 07:25:05 [RateCDR] => 1 ) [2025-04-05 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:25:05' and `end` < '2025-04-05 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:25:17] Production.INFO: count ==238 [2025-04-05 07:25:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:25:05 - End Time 2025-04-05 07:25:05 [2025-04-05 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838632', 'tblTempUsageDetail_20' ) start [2025-04-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838632', 'tblTempUsageDetail_20' ) end [2025-04-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838632', 'tblTempVendorCDR_20' ) start [2025-04-05 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838632', 'tblTempVendorCDR_20' ) end [2025-04-05 07:25:17] Production.INFO: ProcessCDR(1,14838632,1,1,2) [2025-04-05 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838632', 'tblTempUsageDetail_20' ) start [2025-04-05 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838632', 'tblTempUsageDetail_20' ) end [2025-04-05 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:25:21] Production.INFO: ==7387== Releasing lock... [2025-04-05 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:26:05 [end_date_ymd] => 2025-04-05 07:26:05 [RateCDR] => 1 ) [2025-04-05 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:26:05' and `end` < '2025-04-05 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:26:18] Production.INFO: count ==238 [2025-04-05 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:26:05 - End Time 2025-04-05 07:26:05 [2025-04-05 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838640', 'tblTempUsageDetail_20' ) start [2025-04-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838640', 'tblTempUsageDetail_20' ) end [2025-04-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838640', 'tblTempVendorCDR_20' ) start [2025-04-05 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838640', 'tblTempVendorCDR_20' ) end [2025-04-05 07:26:18] Production.INFO: ProcessCDR(1,14838640,1,1,2) [2025-04-05 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838640', 'tblTempUsageDetail_20' ) start [2025-04-05 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838640', 'tblTempUsageDetail_20' ) end [2025-04-05 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:26:21] Production.INFO: ==7460== Releasing lock... [2025-04-05 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:27:05 [end_date_ymd] => 2025-04-05 07:27:05 [RateCDR] => 1 ) [2025-04-05 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:27:05' and `end` < '2025-04-05 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:27:18] Production.INFO: count ==238 [2025-04-05 07:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:27:05 - End Time 2025-04-05 07:27:05 [2025-04-05 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838645', 'tblTempUsageDetail_20' ) start [2025-04-05 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838645', 'tblTempUsageDetail_20' ) end [2025-04-05 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838645', 'tblTempVendorCDR_20' ) start [2025-04-05 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838645', 'tblTempVendorCDR_20' ) end [2025-04-05 07:27:18] Production.INFO: ProcessCDR(1,14838645,1,1,2) [2025-04-05 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838645', 'tblTempUsageDetail_20' ) start [2025-04-05 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838645', 'tblTempUsageDetail_20' ) end [2025-04-05 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:27:21] Production.INFO: ==7574== Releasing lock... [2025-04-05 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:28:06 [end_date_ymd] => 2025-04-05 07:28:06 [RateCDR] => 1 ) [2025-04-05 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:28:06' and `end` < '2025-04-05 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:28:19] Production.INFO: count ==235 [2025-04-05 07:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:28:06 - End Time 2025-04-05 07:28:06 [2025-04-05 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838650', 'tblTempUsageDetail_20' ) start [2025-04-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838650', 'tblTempUsageDetail_20' ) end [2025-04-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838650', 'tblTempVendorCDR_20' ) start [2025-04-05 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838650', 'tblTempVendorCDR_20' ) end [2025-04-05 07:28:19] Production.INFO: ProcessCDR(1,14838650,1,1,2) [2025-04-05 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838650', 'tblTempUsageDetail_20' ) start [2025-04-05 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838650', 'tblTempUsageDetail_20' ) end [2025-04-05 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:28:22] Production.INFO: ==7645== Releasing lock... [2025-04-05 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:28:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:29:05 [end_date_ymd] => 2025-04-05 07:29:05 [RateCDR] => 1 ) [2025-04-05 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:29:05' and `end` < '2025-04-05 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:29:17] Production.INFO: count ==235 [2025-04-05 07:29:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:29:05 - End Time 2025-04-05 07:29:05 [2025-04-05 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838655', 'tblTempUsageDetail_20' ) start [2025-04-05 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838655', 'tblTempUsageDetail_20' ) end [2025-04-05 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838655', 'tblTempVendorCDR_20' ) start [2025-04-05 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838655', 'tblTempVendorCDR_20' ) end [2025-04-05 07:29:17] Production.INFO: ProcessCDR(1,14838655,1,1,2) [2025-04-05 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838655', 'tblTempUsageDetail_20' ) start [2025-04-05 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838655', 'tblTempUsageDetail_20' ) end [2025-04-05 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:29:21] Production.INFO: ==7719== Releasing lock... [2025-04-05 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:30:06 [end_date_ymd] => 2025-04-05 07:30:06 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:30:06' and `end` < '2025-04-05 07: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-04-05 07:30:19] Production.INFO: count ==233 [2025-04-05 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:30:06 - End Time 2025-04-05 07:30:06 [2025-04-05 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838661', 'tblTempUsageDetail_20' ) start [2025-04-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838661', 'tblTempUsageDetail_20' ) end [2025-04-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838661', 'tblTempVendorCDR_20' ) start [2025-04-05 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838661', 'tblTempVendorCDR_20' ) end [2025-04-05 07:30:19] Production.INFO: ProcessCDR(1,14838661,1,1,2) [2025-04-05 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838661', 'tblTempUsageDetail_20' ) start [2025-04-05 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838661', 'tblTempUsageDetail_20' ) end [2025-04-05 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:30:22] Production.INFO: ==7801== Releasing lock... [2025-04-05 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:31:05 [end_date_ymd] => 2025-04-05 07:31:05 [RateCDR] => 1 ) [2025-04-05 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:31:05' and `end` < '2025-04-05 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:31:17] Production.INFO: count ==233 [2025-04-05 07:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:31:05 - End Time 2025-04-05 07:31:05 [2025-04-05 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838666', 'tblTempUsageDetail_20' ) start [2025-04-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838666', 'tblTempUsageDetail_20' ) end [2025-04-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838666', 'tblTempVendorCDR_20' ) start [2025-04-05 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838666', 'tblTempVendorCDR_20' ) end [2025-04-05 07:31:18] Production.INFO: ProcessCDR(1,14838666,1,1,2) [2025-04-05 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838666', 'tblTempUsageDetail_20' ) start [2025-04-05 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838666', 'tblTempUsageDetail_20' ) end [2025-04-05 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:31:21] Production.INFO: ==7878== Releasing lock... [2025-04-05 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:32:05 [end_date_ymd] => 2025-04-05 07:32:05 [RateCDR] => 1 ) [2025-04-05 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:32:05' and `end` < '2025-04-05 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:32:18] Production.INFO: count ==233 [2025-04-05 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:32:05 - End Time 2025-04-05 07:32:05 [2025-04-05 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838671', 'tblTempUsageDetail_20' ) start [2025-04-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838671', 'tblTempUsageDetail_20' ) end [2025-04-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838671', 'tblTempVendorCDR_20' ) start [2025-04-05 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838671', 'tblTempVendorCDR_20' ) end [2025-04-05 07:32:18] Production.INFO: ProcessCDR(1,14838671,1,1,2) [2025-04-05 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838671', 'tblTempUsageDetail_20' ) start [2025-04-05 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838671', 'tblTempUsageDetail_20' ) end [2025-04-05 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:32:21] Production.INFO: ==7953== Releasing lock... [2025-04-05 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:33:05 [end_date_ymd] => 2025-04-05 07:33:05 [RateCDR] => 1 ) [2025-04-05 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:33:05' and `end` < '2025-04-05 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:33:17] Production.INFO: count ==233 [2025-04-05 07:33:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:33:05 - End Time 2025-04-05 07:33:05 [2025-04-05 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838676', 'tblTempUsageDetail_20' ) start [2025-04-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838676', 'tblTempUsageDetail_20' ) end [2025-04-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838676', 'tblTempVendorCDR_20' ) start [2025-04-05 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838676', 'tblTempVendorCDR_20' ) end [2025-04-05 07:33:17] Production.INFO: ProcessCDR(1,14838676,1,1,2) [2025-04-05 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838676', 'tblTempUsageDetail_20' ) start [2025-04-05 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838676', 'tblTempUsageDetail_20' ) end [2025-04-05 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:33:21] Production.INFO: ==8023== Releasing lock... [2025-04-05 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:34:05 [end_date_ymd] => 2025-04-05 07:34:05 [RateCDR] => 1 ) [2025-04-05 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:34:05' and `end` < '2025-04-05 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:34:18] Production.INFO: count ==238 [2025-04-05 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:34:05 - End Time 2025-04-05 07:34:05 [2025-04-05 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838681', 'tblTempUsageDetail_20' ) start [2025-04-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838681', 'tblTempUsageDetail_20' ) end [2025-04-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838681', 'tblTempVendorCDR_20' ) start [2025-04-05 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838681', 'tblTempVendorCDR_20' ) end [2025-04-05 07:34:18] Production.INFO: ProcessCDR(1,14838681,1,1,2) [2025-04-05 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838681', 'tblTempUsageDetail_20' ) start [2025-04-05 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838681', 'tblTempUsageDetail_20' ) end [2025-04-05 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:34:21] Production.INFO: ==8107== Releasing lock... [2025-04-05 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:35:05 [end_date_ymd] => 2025-04-05 07:35:05 [RateCDR] => 1 ) [2025-04-05 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:35:05' and `end` < '2025-04-05 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:35:18] Production.INFO: count ==233 [2025-04-05 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:35:05 - End Time 2025-04-05 07:35:05 [2025-04-05 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838686', 'tblTempUsageDetail_20' ) start [2025-04-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838686', 'tblTempUsageDetail_20' ) end [2025-04-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838686', 'tblTempVendorCDR_20' ) start [2025-04-05 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838686', 'tblTempVendorCDR_20' ) end [2025-04-05 07:35:18] Production.INFO: ProcessCDR(1,14838686,1,1,2) [2025-04-05 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838686', 'tblTempUsageDetail_20' ) start [2025-04-05 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838686', 'tblTempUsageDetail_20' ) end [2025-04-05 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:35:22] Production.INFO: ==8184== Releasing lock... [2025-04-05 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:36:05 [end_date_ymd] => 2025-04-05 07:36:05 [RateCDR] => 1 ) [2025-04-05 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:36:05' and `end` < '2025-04-05 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:36:18] Production.INFO: count ==233 [2025-04-05 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:36:05 - End Time 2025-04-05 07:36:05 [2025-04-05 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838691', 'tblTempUsageDetail_20' ) start [2025-04-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838691', 'tblTempUsageDetail_20' ) end [2025-04-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838691', 'tblTempVendorCDR_20' ) start [2025-04-05 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838691', 'tblTempVendorCDR_20' ) end [2025-04-05 07:36:18] Production.INFO: ProcessCDR(1,14838691,1,1,2) [2025-04-05 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838691', 'tblTempUsageDetail_20' ) start [2025-04-05 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838691', 'tblTempUsageDetail_20' ) end [2025-04-05 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:36:22] Production.INFO: ==8262== Releasing lock... [2025-04-05 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:37:05 [end_date_ymd] => 2025-04-05 07:37:05 [RateCDR] => 1 ) [2025-04-05 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:37:05' and `end` < '2025-04-05 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:37:18] Production.INFO: count ==233 [2025-04-05 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:37:05 - End Time 2025-04-05 07:37:05 [2025-04-05 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838696', 'tblTempUsageDetail_20' ) start [2025-04-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838696', 'tblTempUsageDetail_20' ) end [2025-04-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838696', 'tblTempVendorCDR_20' ) start [2025-04-05 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838696', 'tblTempVendorCDR_20' ) end [2025-04-05 07:37:18] Production.INFO: ProcessCDR(1,14838696,1,1,2) [2025-04-05 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838696', 'tblTempUsageDetail_20' ) start [2025-04-05 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838696', 'tblTempUsageDetail_20' ) end [2025-04-05 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:37:21] Production.INFO: ==8338== Releasing lock... [2025-04-05 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:37:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:38:05 [end_date_ymd] => 2025-04-05 07:38:05 [RateCDR] => 1 ) [2025-04-05 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:38:05' and `end` < '2025-04-05 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:38:18] Production.INFO: count ==233 [2025-04-05 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:38:05 - End Time 2025-04-05 07:38:05 [2025-04-05 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838701', 'tblTempUsageDetail_20' ) start [2025-04-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838701', 'tblTempUsageDetail_20' ) end [2025-04-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838701', 'tblTempVendorCDR_20' ) start [2025-04-05 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838701', 'tblTempVendorCDR_20' ) end [2025-04-05 07:38:18] Production.INFO: ProcessCDR(1,14838701,1,1,2) [2025-04-05 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838701', 'tblTempUsageDetail_20' ) start [2025-04-05 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838701', 'tblTempUsageDetail_20' ) end [2025-04-05 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:38:21] Production.INFO: ==8621== Releasing lock... [2025-04-05 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:39:05 [end_date_ymd] => 2025-04-05 07:39:05 [RateCDR] => 1 ) [2025-04-05 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:39:05' and `end` < '2025-04-05 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:39:18] Production.INFO: count ==231 [2025-04-05 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:39:05 - End Time 2025-04-05 07:39:05 [2025-04-05 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838706', 'tblTempUsageDetail_20' ) start [2025-04-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838706', 'tblTempUsageDetail_20' ) end [2025-04-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838706', 'tblTempVendorCDR_20' ) start [2025-04-05 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838706', 'tblTempVendorCDR_20' ) end [2025-04-05 07:39:18] Production.INFO: ProcessCDR(1,14838706,1,1,2) [2025-04-05 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838706', 'tblTempUsageDetail_20' ) start [2025-04-05 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838706', 'tblTempUsageDetail_20' ) end [2025-04-05 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:39:22] Production.INFO: ==8874== Releasing lock... [2025-04-05 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:40:06 [end_date_ymd] => 2025-04-05 07:40:06 [RateCDR] => 1 ) [2025-04-05 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:40:06' and `end` < '2025-04-05 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:40:19] Production.INFO: count ==238 [2025-04-05 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:40:06 - End Time 2025-04-05 07:40:06 [2025-04-05 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838712', 'tblTempUsageDetail_20' ) start [2025-04-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838712', 'tblTempUsageDetail_20' ) end [2025-04-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838712', 'tblTempVendorCDR_20' ) start [2025-04-05 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838712', 'tblTempVendorCDR_20' ) end [2025-04-05 07:40:19] Production.INFO: ProcessCDR(1,14838712,1,1,2) [2025-04-05 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838712', 'tblTempUsageDetail_20' ) start [2025-04-05 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838712', 'tblTempUsageDetail_20' ) end [2025-04-05 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:40:22] Production.INFO: ==9021== Releasing lock... [2025-04-05 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:41:06 [end_date_ymd] => 2025-04-05 07:41:06 [RateCDR] => 1 ) [2025-04-05 07:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:41:06' and `end` < '2025-04-05 07:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:41:18] Production.INFO: count ==243 [2025-04-05 07:41:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:41:06 - End Time 2025-04-05 07:41:06 [2025-04-05 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838717', 'tblTempUsageDetail_20' ) start [2025-04-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838717', 'tblTempUsageDetail_20' ) end [2025-04-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838717', 'tblTempVendorCDR_20' ) start [2025-04-05 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838717', 'tblTempVendorCDR_20' ) end [2025-04-05 07:41:19] Production.INFO: ProcessCDR(1,14838717,1,1,2) [2025-04-05 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838717', 'tblTempUsageDetail_20' ) start [2025-04-05 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838717', 'tblTempUsageDetail_20' ) end [2025-04-05 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:41:24] Production.INFO: ==9105== Releasing lock... [2025-04-05 07:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:41:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:42:05 [end_date_ymd] => 2025-04-05 07:42:05 [RateCDR] => 1 ) [2025-04-05 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:42:05' and `end` < '2025-04-05 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:42:18] Production.INFO: count ==243 [2025-04-05 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:42:05 - End Time 2025-04-05 07:42:05 [2025-04-05 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838722', 'tblTempUsageDetail_20' ) start [2025-04-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838722', 'tblTempUsageDetail_20' ) end [2025-04-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838722', 'tblTempVendorCDR_20' ) start [2025-04-05 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838722', 'tblTempVendorCDR_20' ) end [2025-04-05 07:42:18] Production.INFO: ProcessCDR(1,14838722,1,1,2) [2025-04-05 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838722', 'tblTempUsageDetail_20' ) start [2025-04-05 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838722', 'tblTempUsageDetail_20' ) end [2025-04-05 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:42:22] Production.INFO: ==9220== Releasing lock... [2025-04-05 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:43:05 [end_date_ymd] => 2025-04-05 07:43:05 [RateCDR] => 1 ) [2025-04-05 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:43:05' and `end` < '2025-04-05 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:43:18] Production.INFO: count ==243 [2025-04-05 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:43:05 - End Time 2025-04-05 07:43:05 [2025-04-05 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838727', 'tblTempUsageDetail_20' ) start [2025-04-05 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838727', 'tblTempUsageDetail_20' ) end [2025-04-05 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838727', 'tblTempVendorCDR_20' ) start [2025-04-05 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838727', 'tblTempVendorCDR_20' ) end [2025-04-05 07:43:18] Production.INFO: ProcessCDR(1,14838727,1,1,2) [2025-04-05 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838727', 'tblTempUsageDetail_20' ) start [2025-04-05 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838727', 'tblTempUsageDetail_20' ) end [2025-04-05 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:43:21] Production.INFO: ==9294== Releasing lock... [2025-04-05 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:44:06 [end_date_ymd] => 2025-04-05 07:44:06 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:44:06' and `end` < '2025-04-05 07: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-04-05 07:44:18] Production.INFO: count ==243 [2025-04-05 07:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:44:06 - End Time 2025-04-05 07:44:06 [2025-04-05 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838732', 'tblTempUsageDetail_20' ) start [2025-04-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838732', 'tblTempUsageDetail_20' ) end [2025-04-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838732', 'tblTempVendorCDR_20' ) start [2025-04-05 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838732', 'tblTempVendorCDR_20' ) end [2025-04-05 07:44:18] Production.INFO: ProcessCDR(1,14838732,1,1,2) [2025-04-05 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838732', 'tblTempUsageDetail_20' ) start [2025-04-05 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838732', 'tblTempUsageDetail_20' ) end [2025-04-05 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:44:22] Production.INFO: ==9371== Releasing lock... [2025-04-05 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:45:05 [end_date_ymd] => 2025-04-05 07:45:05 [RateCDR] => 1 ) [2025-04-05 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:45:05' and `end` < '2025-04-05 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:45:17] Production.INFO: count ==243 [2025-04-05 07:45:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:45:05 - End Time 2025-04-05 07:45:05 [2025-04-05 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838737', 'tblTempUsageDetail_20' ) start [2025-04-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838737', 'tblTempUsageDetail_20' ) end [2025-04-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838737', 'tblTempVendorCDR_20' ) start [2025-04-05 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838737', 'tblTempVendorCDR_20' ) end [2025-04-05 07:45:18] Production.INFO: ProcessCDR(1,14838737,1,1,2) [2025-04-05 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838737', 'tblTempUsageDetail_20' ) start [2025-04-05 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838737', 'tblTempUsageDetail_20' ) end [2025-04-05 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:45:21] Production.INFO: ==9453== Releasing lock... [2025-04-05 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:46:06 [end_date_ymd] => 2025-04-05 07:46:06 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:46:06' and `end` < '2025-04-05 07: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-04-05 07:46:18] Production.INFO: count ==243 [2025-04-05 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:46:06 - End Time 2025-04-05 07:46:06 [2025-04-05 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838742', 'tblTempUsageDetail_20' ) start [2025-04-05 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838742', 'tblTempUsageDetail_20' ) end [2025-04-05 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838742', 'tblTempVendorCDR_20' ) start [2025-04-05 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838742', 'tblTempVendorCDR_20' ) end [2025-04-05 07:46:18] Production.INFO: ProcessCDR(1,14838742,1,1,2) [2025-04-05 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838742', 'tblTempUsageDetail_20' ) start [2025-04-05 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838742', 'tblTempUsageDetail_20' ) end [2025-04-05 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:46:22] Production.INFO: ==9532== Releasing lock... [2025-04-05 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:47:05 [end_date_ymd] => 2025-04-05 07:47:05 [RateCDR] => 1 ) [2025-04-05 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:47:05' and `end` < '2025-04-05 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:47:18] Production.INFO: count ==243 [2025-04-05 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:47:05 - End Time 2025-04-05 07:47:05 [2025-04-05 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838747', 'tblTempUsageDetail_20' ) start [2025-04-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838747', 'tblTempUsageDetail_20' ) end [2025-04-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838747', 'tblTempVendorCDR_20' ) start [2025-04-05 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838747', 'tblTempVendorCDR_20' ) end [2025-04-05 07:47:18] Production.INFO: ProcessCDR(1,14838747,1,1,2) [2025-04-05 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838747', 'tblTempUsageDetail_20' ) start [2025-04-05 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838747', 'tblTempUsageDetail_20' ) end [2025-04-05 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:47:21] Production.INFO: ==9613== Releasing lock... [2025-04-05 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:48:06 [end_date_ymd] => 2025-04-05 07:48:06 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:48:06' and `end` < '2025-04-05 07: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-04-05 07:48:18] Production.INFO: count ==243 [2025-04-05 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:48:06 - End Time 2025-04-05 07:48:06 [2025-04-05 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838752', 'tblTempUsageDetail_20' ) start [2025-04-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838752', 'tblTempUsageDetail_20' ) end [2025-04-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838752', 'tblTempVendorCDR_20' ) start [2025-04-05 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838752', 'tblTempVendorCDR_20' ) end [2025-04-05 07:48:18] Production.INFO: ProcessCDR(1,14838752,1,1,2) [2025-04-05 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838752', 'tblTempUsageDetail_20' ) start [2025-04-05 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838752', 'tblTempUsageDetail_20' ) end [2025-04-05 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:48:22] Production.INFO: ==9686== Releasing lock... [2025-04-05 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:49:05 [end_date_ymd] => 2025-04-05 07:49:05 [RateCDR] => 1 ) [2025-04-05 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:49:05' and `end` < '2025-04-05 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:49:17] Production.INFO: count ==243 [2025-04-05 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:49:05 - End Time 2025-04-05 07:49:05 [2025-04-05 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838757', 'tblTempUsageDetail_20' ) start [2025-04-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838757', 'tblTempUsageDetail_20' ) end [2025-04-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838757', 'tblTempVendorCDR_20' ) start [2025-04-05 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838757', 'tblTempVendorCDR_20' ) end [2025-04-05 07:49:17] Production.INFO: ProcessCDR(1,14838757,1,1,2) [2025-04-05 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838757', 'tblTempUsageDetail_20' ) start [2025-04-05 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838757', 'tblTempUsageDetail_20' ) end [2025-04-05 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:49:21] Production.INFO: ==9765== Releasing lock... [2025-04-05 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:50:07 [end_date_ymd] => 2025-04-05 07:50:07 [RateCDR] => 1 ) [2025-04-05 07: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-04-05 04:50:07' and `end` < '2025-04-05 07: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-04-05 07:50:19] Production.INFO: count ==243 [2025-04-05 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 04:50:07 - End Time 2025-04-05 07:50:07 [2025-04-05 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838763', 'tblTempUsageDetail_20' ) start [2025-04-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838763', 'tblTempUsageDetail_20' ) end [2025-04-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838763', 'tblTempVendorCDR_20' ) start [2025-04-05 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838763', 'tblTempVendorCDR_20' ) end [2025-04-05 07:50:19] Production.INFO: ProcessCDR(1,14838763,1,1,2) [2025-04-05 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838763', 'tblTempUsageDetail_20' ) start [2025-04-05 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838763', 'tblTempUsageDetail_20' ) end [2025-04-05 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:50:23] Production.INFO: ==9842== Releasing lock... [2025-04-05 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:51:05 [end_date_ymd] => 2025-04-05 07:51:05 [RateCDR] => 1 ) [2025-04-05 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:51:05' and `end` < '2025-04-05 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:51:18] Production.INFO: count ==243 [2025-04-05 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:51:05 - End Time 2025-04-05 07:51:05 [2025-04-05 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838768', 'tblTempUsageDetail_20' ) start [2025-04-05 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838768', 'tblTempUsageDetail_20' ) end [2025-04-05 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838768', 'tblTempVendorCDR_20' ) start [2025-04-05 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838768', 'tblTempVendorCDR_20' ) end [2025-04-05 07:51:18] Production.INFO: ProcessCDR(1,14838768,1,1,2) [2025-04-05 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838768', 'tblTempUsageDetail_20' ) start [2025-04-05 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838768', 'tblTempUsageDetail_20' ) end [2025-04-05 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:51:21] Production.INFO: ==9921== Releasing lock... [2025-04-05 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:52:05 [end_date_ymd] => 2025-04-05 07:52:05 [RateCDR] => 1 ) [2025-04-05 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:52:05' and `end` < '2025-04-05 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:52:18] Production.INFO: count ==243 [2025-04-05 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:52:05 - End Time 2025-04-05 07:52:05 [2025-04-05 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838773', 'tblTempUsageDetail_20' ) start [2025-04-05 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838773', 'tblTempUsageDetail_20' ) end [2025-04-05 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838773', 'tblTempVendorCDR_20' ) start [2025-04-05 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838773', 'tblTempVendorCDR_20' ) end [2025-04-05 07:52:18] Production.INFO: ProcessCDR(1,14838773,1,1,2) [2025-04-05 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838773', 'tblTempUsageDetail_20' ) start [2025-04-05 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838773', 'tblTempUsageDetail_20' ) end [2025-04-05 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:52:21] Production.INFO: ==10002== Releasing lock... [2025-04-05 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:53:05 [end_date_ymd] => 2025-04-05 07:53:05 [RateCDR] => 1 ) [2025-04-05 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:53:05' and `end` < '2025-04-05 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:53:18] Production.INFO: count ==243 [2025-04-05 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:53:05 - End Time 2025-04-05 07:53:05 [2025-04-05 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838778', 'tblTempUsageDetail_20' ) start [2025-04-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838778', 'tblTempUsageDetail_20' ) end [2025-04-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838778', 'tblTempVendorCDR_20' ) start [2025-04-05 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838778', 'tblTempVendorCDR_20' ) end [2025-04-05 07:53:18] Production.INFO: ProcessCDR(1,14838778,1,1,2) [2025-04-05 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838778', 'tblTempUsageDetail_20' ) start [2025-04-05 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838778', 'tblTempUsageDetail_20' ) end [2025-04-05 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:53:21] Production.INFO: ==10077== Releasing lock... [2025-04-05 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:54:05 [end_date_ymd] => 2025-04-05 07:54:05 [RateCDR] => 1 ) [2025-04-05 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:54:05' and `end` < '2025-04-05 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:54:18] Production.INFO: count ==243 [2025-04-05 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:54:05 - End Time 2025-04-05 07:54:05 [2025-04-05 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838783', 'tblTempUsageDetail_20' ) start [2025-04-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838783', 'tblTempUsageDetail_20' ) end [2025-04-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838783', 'tblTempVendorCDR_20' ) start [2025-04-05 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838783', 'tblTempVendorCDR_20' ) end [2025-04-05 07:54:18] Production.INFO: ProcessCDR(1,14838783,1,1,2) [2025-04-05 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838783', 'tblTempUsageDetail_20' ) start [2025-04-05 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838783', 'tblTempUsageDetail_20' ) end [2025-04-05 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:54:21] Production.INFO: ==10157== Releasing lock... [2025-04-05 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:55:05 [end_date_ymd] => 2025-04-05 07:55:05 [RateCDR] => 1 ) [2025-04-05 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:55:05' and `end` < '2025-04-05 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:55:18] Production.INFO: count ==243 [2025-04-05 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:55:05 - End Time 2025-04-05 07:55:05 [2025-04-05 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838788', 'tblTempUsageDetail_20' ) start [2025-04-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838788', 'tblTempUsageDetail_20' ) end [2025-04-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838788', 'tblTempVendorCDR_20' ) start [2025-04-05 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838788', 'tblTempVendorCDR_20' ) end [2025-04-05 07:55:18] Production.INFO: ProcessCDR(1,14838788,1,1,2) [2025-04-05 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838788', 'tblTempUsageDetail_20' ) start [2025-04-05 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838788', 'tblTempUsageDetail_20' ) end [2025-04-05 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:55:21] Production.INFO: ==10239== Releasing lock... [2025-04-05 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:56:05 [end_date_ymd] => 2025-04-05 07:56:05 [RateCDR] => 1 ) [2025-04-05 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:56:05' and `end` < '2025-04-05 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:56:18] Production.INFO: count ==240 [2025-04-05 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:56:05 - End Time 2025-04-05 07:56:05 [2025-04-05 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838793', 'tblTempUsageDetail_20' ) start [2025-04-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838793', 'tblTempUsageDetail_20' ) end [2025-04-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838793', 'tblTempVendorCDR_20' ) start [2025-04-05 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838793', 'tblTempVendorCDR_20' ) end [2025-04-05 07:56:18] Production.INFO: ProcessCDR(1,14838793,1,1,2) [2025-04-05 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838793', 'tblTempUsageDetail_20' ) start [2025-04-05 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838793', 'tblTempUsageDetail_20' ) end [2025-04-05 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:56:21] Production.INFO: ==10318== Releasing lock... [2025-04-05 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:57:05 [end_date_ymd] => 2025-04-05 07:57:05 [RateCDR] => 1 ) [2025-04-05 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:57:05' and `end` < '2025-04-05 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:57:18] Production.INFO: count ==242 [2025-04-05 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:57:05 - End Time 2025-04-05 07:57:05 [2025-04-05 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838798', 'tblTempUsageDetail_20' ) start [2025-04-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838798', 'tblTempUsageDetail_20' ) end [2025-04-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838798', 'tblTempVendorCDR_20' ) start [2025-04-05 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838798', 'tblTempVendorCDR_20' ) end [2025-04-05 07:57:18] Production.INFO: ProcessCDR(1,14838798,1,1,2) [2025-04-05 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838798', 'tblTempUsageDetail_20' ) start [2025-04-05 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838798', 'tblTempUsageDetail_20' ) end [2025-04-05 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:57:21] Production.INFO: ==10396== Releasing lock... [2025-04-05 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:58:05 [end_date_ymd] => 2025-04-05 07:58:05 [RateCDR] => 1 ) [2025-04-05 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:58:05' and `end` < '2025-04-05 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:58:17] Production.INFO: count ==245 [2025-04-05 07:58:17] Production.ERROR: pbx CDR StartTime 2025-04-05 04:58:05 - End Time 2025-04-05 07:58:05 [2025-04-05 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838803', 'tblTempUsageDetail_20' ) start [2025-04-05 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838803', 'tblTempUsageDetail_20' ) end [2025-04-05 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838803', 'tblTempVendorCDR_20' ) start [2025-04-05 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838803', 'tblTempVendorCDR_20' ) end [2025-04-05 07:58:17] Production.INFO: ProcessCDR(1,14838803,1,1,2) [2025-04-05 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838803', 'tblTempUsageDetail_20' ) start [2025-04-05 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838803', 'tblTempUsageDetail_20' ) end [2025-04-05 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:58:20] Production.INFO: ==10509== Releasing lock... [2025-04-05 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:58:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 04:59:05 [end_date_ymd] => 2025-04-05 07:59:05 [RateCDR] => 1 ) [2025-04-05 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 04:59:05' and `end` < '2025-04-05 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 07:59:18] Production.INFO: count ==245 [2025-04-05 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 04:59:05 - End Time 2025-04-05 07:59:05 [2025-04-05 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838808', 'tblTempUsageDetail_20' ) start [2025-04-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838808', 'tblTempUsageDetail_20' ) end [2025-04-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838808', 'tblTempVendorCDR_20' ) start [2025-04-05 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838808', 'tblTempVendorCDR_20' ) end [2025-04-05 07:59:18] Production.INFO: ProcessCDR(1,14838808,1,1,2) [2025-04-05 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838808', 'tblTempUsageDetail_20' ) start [2025-04-05 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838808', 'tblTempUsageDetail_20' ) end [2025-04-05 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 07:59:21] Production.INFO: ==10587== Releasing lock... [2025-04-05 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 07:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:00:06 [end_date_ymd] => 2025-04-05 08:00:06 [RateCDR] => 1 ) [2025-04-05 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:00:06' and `end` < '2025-04-05 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:00:19] Production.INFO: count ==240 [2025-04-05 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:00:06 - End Time 2025-04-05 08:00:06 [2025-04-05 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838813', 'tblTempUsageDetail_20' ) start [2025-04-05 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838813', 'tblTempUsageDetail_20' ) end [2025-04-05 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838813', 'tblTempVendorCDR_20' ) start [2025-04-05 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838813', 'tblTempVendorCDR_20' ) end [2025-04-05 08:00:19] Production.INFO: ProcessCDR(1,14838813,1,1,2) [2025-04-05 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838813', 'tblTempUsageDetail_20' ) start [2025-04-05 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838813', 'tblTempUsageDetail_20' ) end [2025-04-05 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:00:23] Production.INFO: ==10668== Releasing lock... [2025-04-05 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:01:05 [end_date_ymd] => 2025-04-05 08:01:05 [RateCDR] => 1 ) [2025-04-05 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:01:05' and `end` < '2025-04-05 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:01:18] Production.INFO: count ==230 [2025-04-05 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:01:05 - End Time 2025-04-05 08:01:05 [2025-04-05 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838819', 'tblTempUsageDetail_20' ) start [2025-04-05 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838819', 'tblTempUsageDetail_20' ) end [2025-04-05 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838819', 'tblTempVendorCDR_20' ) start [2025-04-05 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838819', 'tblTempVendorCDR_20' ) end [2025-04-05 08:01:18] Production.INFO: ProcessCDR(1,14838819,1,1,2) [2025-04-05 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838819', 'tblTempUsageDetail_20' ) start [2025-04-05 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838819', 'tblTempUsageDetail_20' ) end [2025-04-05 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:01:22] Production.INFO: ==10760== Releasing lock... [2025-04-05 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:02:05 [end_date_ymd] => 2025-04-05 08:02:05 [RateCDR] => 1 ) [2025-04-05 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:02:05' and `end` < '2025-04-05 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:02:18] Production.INFO: count ==230 [2025-04-05 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:02:05 - End Time 2025-04-05 08:02:05 [2025-04-05 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838824', 'tblTempUsageDetail_20' ) start [2025-04-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838824', 'tblTempUsageDetail_20' ) end [2025-04-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838824', 'tblTempVendorCDR_20' ) start [2025-04-05 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838824', 'tblTempVendorCDR_20' ) end [2025-04-05 08:02:18] Production.INFO: ProcessCDR(1,14838824,1,1,2) [2025-04-05 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838824', 'tblTempUsageDetail_20' ) start [2025-04-05 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838824', 'tblTempUsageDetail_20' ) end [2025-04-05 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:02:21] Production.INFO: ==10836== Releasing lock... [2025-04-05 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:03:05 [end_date_ymd] => 2025-04-05 08:03:05 [RateCDR] => 1 ) [2025-04-05 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:03:05' and `end` < '2025-04-05 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:03:18] Production.INFO: count ==225 [2025-04-05 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:03:05 - End Time 2025-04-05 08:03:05 [2025-04-05 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838829', 'tblTempUsageDetail_20' ) start [2025-04-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838829', 'tblTempUsageDetail_20' ) end [2025-04-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838829', 'tblTempVendorCDR_20' ) start [2025-04-05 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838829', 'tblTempVendorCDR_20' ) end [2025-04-05 08:03:18] Production.INFO: ProcessCDR(1,14838829,1,1,2) [2025-04-05 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838829', 'tblTempUsageDetail_20' ) start [2025-04-05 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838829', 'tblTempUsageDetail_20' ) end [2025-04-05 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:03:21] Production.INFO: ==10909== Releasing lock... [2025-04-05 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:03:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:04:06 [end_date_ymd] => 2025-04-05 08:04:06 [RateCDR] => 1 ) [2025-04-05 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:04:06' and `end` < '2025-04-05 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:04:18] Production.INFO: count ==208 [2025-04-05 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:04:06 - End Time 2025-04-05 08:04:06 [2025-04-05 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838834', 'tblTempUsageDetail_20' ) start [2025-04-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838834', 'tblTempUsageDetail_20' ) end [2025-04-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838834', 'tblTempVendorCDR_20' ) start [2025-04-05 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838834', 'tblTempVendorCDR_20' ) end [2025-04-05 08:04:18] Production.INFO: ProcessCDR(1,14838834,1,1,2) [2025-04-05 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838834', 'tblTempUsageDetail_20' ) start [2025-04-05 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838834', 'tblTempUsageDetail_20' ) end [2025-04-05 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:04:23] Production.INFO: ==10989== Releasing lock... [2025-04-05 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:05:05 [end_date_ymd] => 2025-04-05 08:05:05 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:05:05' and `end` < '2025-04-05 08: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-04-05 08:05:17] Production.INFO: count ==197 [2025-04-05 08:05:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:05:05 - End Time 2025-04-05 08:05:05 [2025-04-05 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838839', 'tblTempUsageDetail_20' ) start [2025-04-05 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838839', 'tblTempUsageDetail_20' ) end [2025-04-05 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838839', 'tblTempVendorCDR_20' ) start [2025-04-05 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838839', 'tblTempVendorCDR_20' ) end [2025-04-05 08:05:17] Production.INFO: ProcessCDR(1,14838839,1,1,2) [2025-04-05 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838839', 'tblTempUsageDetail_20' ) start [2025-04-05 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838839', 'tblTempUsageDetail_20' ) end [2025-04-05 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:05:22] Production.INFO: ==11063== Releasing lock... [2025-04-05 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:05:22] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:06:05 [end_date_ymd] => 2025-04-05 08:06:05 [RateCDR] => 1 ) [2025-04-05 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:06:05' and `end` < '2025-04-05 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:06:18] Production.INFO: count ==200 [2025-04-05 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:06:05 - End Time 2025-04-05 08:06:05 [2025-04-05 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838844', 'tblTempUsageDetail_20' ) start [2025-04-05 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838844', 'tblTempUsageDetail_20' ) end [2025-04-05 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838844', 'tblTempVendorCDR_20' ) start [2025-04-05 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838844', 'tblTempVendorCDR_20' ) end [2025-04-05 08:06:18] Production.INFO: ProcessCDR(1,14838844,1,1,2) [2025-04-05 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838844', 'tblTempUsageDetail_20' ) start [2025-04-05 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838844', 'tblTempUsageDetail_20' ) end [2025-04-05 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:06:21] Production.INFO: ==11138== Releasing lock... [2025-04-05 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:06:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:07:04 [end_date_ymd] => 2025-04-05 08:07:04 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:07:04' and `end` < '2025-04-05 08: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-04-05 08:07:17] Production.INFO: count ==205 [2025-04-05 08:07:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:07:04 - End Time 2025-04-05 08:07:04 [2025-04-05 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838849', 'tblTempUsageDetail_20' ) start [2025-04-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838849', 'tblTempUsageDetail_20' ) end [2025-04-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838849', 'tblTempVendorCDR_20' ) start [2025-04-05 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838849', 'tblTempVendorCDR_20' ) end [2025-04-05 08:07:17] Production.INFO: ProcessCDR(1,14838849,1,1,2) [2025-04-05 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838849', 'tblTempUsageDetail_20' ) start [2025-04-05 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838849', 'tblTempUsageDetail_20' ) end [2025-04-05 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:07:21] Production.INFO: ==11215== Releasing lock... [2025-04-05 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:08:05 [end_date_ymd] => 2025-04-05 08:08:05 [RateCDR] => 1 ) [2025-04-05 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:08:05' and `end` < '2025-04-05 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:08:18] Production.INFO: count ==205 [2025-04-05 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:08:05 - End Time 2025-04-05 08:08:05 [2025-04-05 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838854', 'tblTempUsageDetail_20' ) start [2025-04-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838854', 'tblTempUsageDetail_20' ) end [2025-04-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838854', 'tblTempVendorCDR_20' ) start [2025-04-05 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838854', 'tblTempVendorCDR_20' ) end [2025-04-05 08:08:18] Production.INFO: ProcessCDR(1,14838854,1,1,2) [2025-04-05 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838854', 'tblTempUsageDetail_20' ) start [2025-04-05 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838854', 'tblTempUsageDetail_20' ) end [2025-04-05 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:08:22] Production.INFO: ==11294== Releasing lock... [2025-04-05 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:09:05 [end_date_ymd] => 2025-04-05 08:09:05 [RateCDR] => 1 ) [2025-04-05 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:09:05' and `end` < '2025-04-05 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:09:18] Production.INFO: count ==205 [2025-04-05 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:09:05 - End Time 2025-04-05 08:09:05 [2025-04-05 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838859', 'tblTempUsageDetail_20' ) start [2025-04-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838859', 'tblTempUsageDetail_20' ) end [2025-04-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838859', 'tblTempVendorCDR_20' ) start [2025-04-05 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838859', 'tblTempVendorCDR_20' ) end [2025-04-05 08:09:18] Production.INFO: ProcessCDR(1,14838859,1,1,2) [2025-04-05 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838859', 'tblTempUsageDetail_20' ) start [2025-04-05 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838859', 'tblTempUsageDetail_20' ) end [2025-04-05 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:09:21] Production.INFO: ==11367== Releasing lock... [2025-04-05 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:10:05 [end_date_ymd] => 2025-04-05 08:10:05 [RateCDR] => 1 ) [2025-04-05 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:10:05' and `end` < '2025-04-05 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:10:17] Production.INFO: count ==213 [2025-04-05 08:10:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:10:05 - End Time 2025-04-05 08:10:05 [2025-04-05 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838864', 'tblTempUsageDetail_20' ) start [2025-04-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838864', 'tblTempUsageDetail_20' ) end [2025-04-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838864', 'tblTempVendorCDR_20' ) start [2025-04-05 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838864', 'tblTempVendorCDR_20' ) end [2025-04-05 08:10:17] Production.INFO: ProcessCDR(1,14838864,1,1,2) [2025-04-05 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838864', 'tblTempUsageDetail_20' ) start [2025-04-05 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838864', 'tblTempUsageDetail_20' ) end [2025-04-05 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:10:21] Production.INFO: ==11443== Releasing lock... [2025-04-05 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:11:05 [end_date_ymd] => 2025-04-05 08:11:05 [RateCDR] => 1 ) [2025-04-05 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:11:05' and `end` < '2025-04-05 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:11:18] Production.INFO: count ==212 [2025-04-05 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:11:05 - End Time 2025-04-05 08:11:05 [2025-04-05 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838870', 'tblTempUsageDetail_20' ) start [2025-04-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838870', 'tblTempUsageDetail_20' ) end [2025-04-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838870', 'tblTempVendorCDR_20' ) start [2025-04-05 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838870', 'tblTempVendorCDR_20' ) end [2025-04-05 08:11:18] Production.INFO: ProcessCDR(1,14838870,1,1,2) [2025-04-05 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838870', 'tblTempUsageDetail_20' ) start [2025-04-05 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838870', 'tblTempUsageDetail_20' ) end [2025-04-05 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:11:21] Production.INFO: ==11524== Releasing lock... [2025-04-05 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:12:04 [end_date_ymd] => 2025-04-05 08:12:04 [RateCDR] => 1 ) [2025-04-05 08:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:12:04' and `end` < '2025-04-05 08:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:12:17] Production.INFO: count ==213 [2025-04-05 08:12:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:12:04 - End Time 2025-04-05 08:12:04 [2025-04-05 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838875', 'tblTempUsageDetail_20' ) start [2025-04-05 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838875', 'tblTempUsageDetail_20' ) end [2025-04-05 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838875', 'tblTempVendorCDR_20' ) start [2025-04-05 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838875', 'tblTempVendorCDR_20' ) end [2025-04-05 08:12:17] Production.INFO: ProcessCDR(1,14838875,1,1,2) [2025-04-05 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838875', 'tblTempUsageDetail_20' ) start [2025-04-05 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838875', 'tblTempUsageDetail_20' ) end [2025-04-05 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:12:22] Production.INFO: ==11600== Releasing lock... [2025-04-05 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:12:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:13:05 [end_date_ymd] => 2025-04-05 08:13:05 [RateCDR] => 1 ) [2025-04-05 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:13:05' and `end` < '2025-04-05 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:13:18] Production.INFO: count ==208 [2025-04-05 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:13:05 - End Time 2025-04-05 08:13:05 [2025-04-05 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838880', 'tblTempUsageDetail_20' ) start [2025-04-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838880', 'tblTempUsageDetail_20' ) end [2025-04-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838880', 'tblTempVendorCDR_20' ) start [2025-04-05 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838880', 'tblTempVendorCDR_20' ) end [2025-04-05 08:13:18] Production.INFO: ProcessCDR(1,14838880,1,1,2) [2025-04-05 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838880', 'tblTempUsageDetail_20' ) start [2025-04-05 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838880', 'tblTempUsageDetail_20' ) end [2025-04-05 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:13:23] Production.INFO: ==11714== Releasing lock... [2025-04-05 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:13:23] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:14:05 [end_date_ymd] => 2025-04-05 08:14:05 [RateCDR] => 1 ) [2025-04-05 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:14:05' and `end` < '2025-04-05 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:14:18] Production.INFO: count ==209 [2025-04-05 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:14:05 - End Time 2025-04-05 08:14:05 [2025-04-05 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838885', 'tblTempUsageDetail_20' ) start [2025-04-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838885', 'tblTempUsageDetail_20' ) end [2025-04-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838885', 'tblTempVendorCDR_20' ) start [2025-04-05 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838885', 'tblTempVendorCDR_20' ) end [2025-04-05 08:14:18] Production.INFO: ProcessCDR(1,14838885,1,1,2) [2025-04-05 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838885', 'tblTempUsageDetail_20' ) start [2025-04-05 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838885', 'tblTempUsageDetail_20' ) end [2025-04-05 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:14:23] Production.INFO: ==11798== Releasing lock... [2025-04-05 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:14:23] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:15:05 [end_date_ymd] => 2025-04-05 08:15:05 [RateCDR] => 1 ) [2025-04-05 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:15:05' and `end` < '2025-04-05 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:15:18] Production.INFO: count ==214 [2025-04-05 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:15:05 - End Time 2025-04-05 08:15:05 [2025-04-05 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838890', 'tblTempUsageDetail_20' ) start [2025-04-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838890', 'tblTempUsageDetail_20' ) end [2025-04-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838890', 'tblTempVendorCDR_20' ) start [2025-04-05 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838890', 'tblTempVendorCDR_20' ) end [2025-04-05 08:15:18] Production.INFO: ProcessCDR(1,14838890,1,1,2) [2025-04-05 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838890', 'tblTempUsageDetail_20' ) start [2025-04-05 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838890', 'tblTempUsageDetail_20' ) end [2025-04-05 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:15:21] Production.INFO: ==11876== Releasing lock... [2025-04-05 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:16:06 [end_date_ymd] => 2025-04-05 08:16:06 [RateCDR] => 1 ) [2025-04-05 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:16:06' and `end` < '2025-04-05 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:16:18] Production.INFO: count ==213 [2025-04-05 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:16:06 - End Time 2025-04-05 08:16:06 [2025-04-05 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838895', 'tblTempUsageDetail_20' ) start [2025-04-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838895', 'tblTempUsageDetail_20' ) end [2025-04-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838895', 'tblTempVendorCDR_20' ) start [2025-04-05 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838895', 'tblTempVendorCDR_20' ) end [2025-04-05 08:16:18] Production.INFO: ProcessCDR(1,14838895,1,1,2) [2025-04-05 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838895', 'tblTempUsageDetail_20' ) start [2025-04-05 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838895', 'tblTempUsageDetail_20' ) end [2025-04-05 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:16:22] Production.INFO: ==11959== Releasing lock... [2025-04-05 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:17:05 [end_date_ymd] => 2025-04-05 08:17:05 [RateCDR] => 1 ) [2025-04-05 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:17:05' and `end` < '2025-04-05 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:17:17] Production.INFO: count ==213 [2025-04-05 08:17:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:17:05 - End Time 2025-04-05 08:17:05 [2025-04-05 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838900', 'tblTempUsageDetail_20' ) start [2025-04-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838900', 'tblTempUsageDetail_20' ) end [2025-04-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838900', 'tblTempVendorCDR_20' ) start [2025-04-05 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838900', 'tblTempVendorCDR_20' ) end [2025-04-05 08:17:17] Production.INFO: ProcessCDR(1,14838900,1,1,2) [2025-04-05 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838900', 'tblTempUsageDetail_20' ) start [2025-04-05 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838900', 'tblTempUsageDetail_20' ) end [2025-04-05 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:17:21] Production.INFO: ==12036== Releasing lock... [2025-04-05 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:18:05 [end_date_ymd] => 2025-04-05 08:18:05 [RateCDR] => 1 ) [2025-04-05 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:18:05' and `end` < '2025-04-05 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:18:18] Production.INFO: count ==213 [2025-04-05 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:18:05 - End Time 2025-04-05 08:18:05 [2025-04-05 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838905', 'tblTempUsageDetail_20' ) start [2025-04-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838905', 'tblTempUsageDetail_20' ) end [2025-04-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838905', 'tblTempVendorCDR_20' ) start [2025-04-05 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838905', 'tblTempVendorCDR_20' ) end [2025-04-05 08:18:18] Production.INFO: ProcessCDR(1,14838905,1,1,2) [2025-04-05 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838905', 'tblTempUsageDetail_20' ) start [2025-04-05 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838905', 'tblTempUsageDetail_20' ) end [2025-04-05 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:18:21] Production.INFO: ==12107== Releasing lock... [2025-04-05 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:19:05 [end_date_ymd] => 2025-04-05 08:19:05 [RateCDR] => 1 ) [2025-04-05 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:19:05' and `end` < '2025-04-05 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:19:17] Production.INFO: count ==209 [2025-04-05 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:19:05 - End Time 2025-04-05 08:19:05 [2025-04-05 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838910', 'tblTempUsageDetail_20' ) start [2025-04-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838910', 'tblTempUsageDetail_20' ) end [2025-04-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838910', 'tblTempVendorCDR_20' ) start [2025-04-05 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838910', 'tblTempVendorCDR_20' ) end [2025-04-05 08:19:18] Production.INFO: ProcessCDR(1,14838910,1,1,2) [2025-04-05 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838910', 'tblTempUsageDetail_20' ) start [2025-04-05 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838910', 'tblTempUsageDetail_20' ) end [2025-04-05 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:19:22] Production.INFO: ==12182== Releasing lock... [2025-04-05 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:19:22] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:20:05 [end_date_ymd] => 2025-04-05 08:20:05 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:20:05' and `end` < '2025-04-05 08: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-04-05 08:20:18] Production.INFO: count ==201 [2025-04-05 08:20:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:20:05 - End Time 2025-04-05 08:20:05 [2025-04-05 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838916', 'tblTempUsageDetail_20' ) start [2025-04-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838916', 'tblTempUsageDetail_20' ) end [2025-04-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838916', 'tblTempVendorCDR_20' ) start [2025-04-05 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838916', 'tblTempVendorCDR_20' ) end [2025-04-05 08:20:18] Production.INFO: ProcessCDR(1,14838916,1,1,2) [2025-04-05 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838916', 'tblTempUsageDetail_20' ) start [2025-04-05 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838916', 'tblTempUsageDetail_20' ) end [2025-04-05 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:20:21] Production.INFO: ==12259== Releasing lock... [2025-04-05 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:20:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:21:05 [end_date_ymd] => 2025-04-05 08:21:05 [RateCDR] => 1 ) [2025-04-05 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:21:05' and `end` < '2025-04-05 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:21:18] Production.INFO: count ==201 [2025-04-05 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:21:05 - End Time 2025-04-05 08:21:05 [2025-04-05 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838921', 'tblTempUsageDetail_20' ) start [2025-04-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838921', 'tblTempUsageDetail_20' ) end [2025-04-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838921', 'tblTempVendorCDR_20' ) start [2025-04-05 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838921', 'tblTempVendorCDR_20' ) end [2025-04-05 08:21:18] Production.INFO: ProcessCDR(1,14838921,1,1,2) [2025-04-05 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838921', 'tblTempUsageDetail_20' ) start [2025-04-05 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838921', 'tblTempUsageDetail_20' ) end [2025-04-05 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:21:21] Production.INFO: ==12331== Releasing lock... [2025-04-05 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:21:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:22:05 [end_date_ymd] => 2025-04-05 08:22:05 [RateCDR] => 1 ) [2025-04-05 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:22:05' and `end` < '2025-04-05 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:22:18] Production.INFO: count ==201 [2025-04-05 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:22:05 - End Time 2025-04-05 08:22:05 [2025-04-05 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838926', 'tblTempUsageDetail_20' ) start [2025-04-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838926', 'tblTempUsageDetail_20' ) end [2025-04-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838926', 'tblTempVendorCDR_20' ) start [2025-04-05 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838926', 'tblTempVendorCDR_20' ) end [2025-04-05 08:22:18] Production.INFO: ProcessCDR(1,14838926,1,1,2) [2025-04-05 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838926', 'tblTempUsageDetail_20' ) start [2025-04-05 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838926', 'tblTempUsageDetail_20' ) end [2025-04-05 08:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:22:21] Production.INFO: ==12405== Releasing lock... [2025-04-05 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:22:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:23:06 [end_date_ymd] => 2025-04-05 08:23:06 [RateCDR] => 1 ) [2025-04-05 08:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:23:06' and `end` < '2025-04-05 08:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:23:19] Production.INFO: count ==214 [2025-04-05 08:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:23:06 - End Time 2025-04-05 08:23:06 [2025-04-05 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838931', 'tblTempUsageDetail_20' ) start [2025-04-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838931', 'tblTempUsageDetail_20' ) end [2025-04-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838931', 'tblTempVendorCDR_20' ) start [2025-04-05 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838931', 'tblTempVendorCDR_20' ) end [2025-04-05 08:23:19] Production.INFO: ProcessCDR(1,14838931,1,1,2) [2025-04-05 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838931', 'tblTempUsageDetail_20' ) start [2025-04-05 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838931', 'tblTempUsageDetail_20' ) end [2025-04-05 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:23:23] Production.INFO: ==12478== Releasing lock... [2025-04-05 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:23:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:24:05 [end_date_ymd] => 2025-04-05 08:24:05 [RateCDR] => 1 ) [2025-04-05 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:24:05' and `end` < '2025-04-05 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:24:18] Production.INFO: count ==213 [2025-04-05 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:24:05 - End Time 2025-04-05 08:24:05 [2025-04-05 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838936', 'tblTempUsageDetail_20' ) start [2025-04-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838936', 'tblTempUsageDetail_20' ) end [2025-04-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838936', 'tblTempVendorCDR_20' ) start [2025-04-05 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838936', 'tblTempVendorCDR_20' ) end [2025-04-05 08:24:18] Production.INFO: ProcessCDR(1,14838936,1,1,2) [2025-04-05 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838936', 'tblTempUsageDetail_20' ) start [2025-04-05 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838936', 'tblTempUsageDetail_20' ) end [2025-04-05 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:24:21] Production.INFO: ==12552== Releasing lock... [2025-04-05 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:24:22] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:25:06 [end_date_ymd] => 2025-04-05 08:25:06 [RateCDR] => 1 ) [2025-04-05 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:25:06' and `end` < '2025-04-05 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:25:19] Production.INFO: count ==228 [2025-04-05 08:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:25:06 - End Time 2025-04-05 08:25:06 [2025-04-05 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838941', 'tblTempUsageDetail_20' ) start [2025-04-05 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838941', 'tblTempUsageDetail_20' ) end [2025-04-05 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838941', 'tblTempVendorCDR_20' ) start [2025-04-05 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838941', 'tblTempVendorCDR_20' ) end [2025-04-05 08:25:19] Production.INFO: ProcessCDR(1,14838941,1,1,2) [2025-04-05 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838941', 'tblTempUsageDetail_20' ) start [2025-04-05 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838941', 'tblTempUsageDetail_20' ) end [2025-04-05 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:25:22] Production.INFO: ==12627== Releasing lock... [2025-04-05 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:26:05 [end_date_ymd] => 2025-04-05 08:26:05 [RateCDR] => 1 ) [2025-04-05 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:26:05' and `end` < '2025-04-05 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:26:18] Production.INFO: count ==226 [2025-04-05 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:26:05 - End Time 2025-04-05 08:26:05 [2025-04-05 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838946', 'tblTempUsageDetail_20' ) start [2025-04-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838946', 'tblTempUsageDetail_20' ) end [2025-04-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838946', 'tblTempVendorCDR_20' ) start [2025-04-05 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838946', 'tblTempVendorCDR_20' ) end [2025-04-05 08:26:18] Production.INFO: ProcessCDR(1,14838946,1,1,2) [2025-04-05 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838946', 'tblTempUsageDetail_20' ) start [2025-04-05 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838946', 'tblTempUsageDetail_20' ) end [2025-04-05 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:26:21] Production.INFO: ==12700== Releasing lock... [2025-04-05 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:26:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:27:05 [end_date_ymd] => 2025-04-05 08:27:05 [RateCDR] => 1 ) [2025-04-05 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:27:05' and `end` < '2025-04-05 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:27:18] Production.INFO: count ==227 [2025-04-05 08:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:27:05 - End Time 2025-04-05 08:27:05 [2025-04-05 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838951', 'tblTempUsageDetail_20' ) start [2025-04-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838951', 'tblTempUsageDetail_20' ) end [2025-04-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838951', 'tblTempVendorCDR_20' ) start [2025-04-05 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838951', 'tblTempVendorCDR_20' ) end [2025-04-05 08:27:18] Production.INFO: ProcessCDR(1,14838951,1,1,2) [2025-04-05 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838951', 'tblTempUsageDetail_20' ) start [2025-04-05 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838951', 'tblTempUsageDetail_20' ) end [2025-04-05 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:27:22] Production.INFO: ==12772== Releasing lock... [2025-04-05 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:28:05 [end_date_ymd] => 2025-04-05 08:28:05 [RateCDR] => 1 ) [2025-04-05 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:28:05' and `end` < '2025-04-05 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:28:18] Production.INFO: count ==227 [2025-04-05 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:28:05 - End Time 2025-04-05 08:28:05 [2025-04-05 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838956', 'tblTempUsageDetail_20' ) start [2025-04-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838956', 'tblTempUsageDetail_20' ) end [2025-04-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838956', 'tblTempVendorCDR_20' ) start [2025-04-05 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838956', 'tblTempVendorCDR_20' ) end [2025-04-05 08:28:18] Production.INFO: ProcessCDR(1,14838956,1,1,2) [2025-04-05 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838956', 'tblTempUsageDetail_20' ) start [2025-04-05 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838956', 'tblTempUsageDetail_20' ) end [2025-04-05 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:28:21] Production.INFO: ==12843== Releasing lock... [2025-04-05 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:28:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:29:05 [end_date_ymd] => 2025-04-05 08:29:05 [RateCDR] => 1 ) [2025-04-05 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:29:05' and `end` < '2025-04-05 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:29:18] Production.INFO: count ==227 [2025-04-05 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:29:05 - End Time 2025-04-05 08:29:05 [2025-04-05 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838961', 'tblTempUsageDetail_20' ) start [2025-04-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838961', 'tblTempUsageDetail_20' ) end [2025-04-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838961', 'tblTempVendorCDR_20' ) start [2025-04-05 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838961', 'tblTempVendorCDR_20' ) end [2025-04-05 08:29:18] Production.INFO: ProcessCDR(1,14838961,1,1,2) [2025-04-05 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838961', 'tblTempUsageDetail_20' ) start [2025-04-05 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838961', 'tblTempUsageDetail_20' ) end [2025-04-05 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:29:21] Production.INFO: ==12960== Releasing lock... [2025-04-05 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:29:21] Production.INFO: 30 MB #Memory Used# [2025-04-05 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:30:06 [end_date_ymd] => 2025-04-05 08:30:06 [RateCDR] => 1 ) [2025-04-05 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:30:06' and `end` < '2025-04-05 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:30:18] Production.INFO: count ==247 [2025-04-05 08:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:30:06 - End Time 2025-04-05 08:30:06 [2025-04-05 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838967', 'tblTempUsageDetail_20' ) start [2025-04-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838967', 'tblTempUsageDetail_20' ) end [2025-04-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838967', 'tblTempVendorCDR_20' ) start [2025-04-05 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838967', 'tblTempVendorCDR_20' ) end [2025-04-05 08:30:19] Production.INFO: ProcessCDR(1,14838967,1,1,2) [2025-04-05 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838967', 'tblTempUsageDetail_20' ) start [2025-04-05 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838967', 'tblTempUsageDetail_20' ) end [2025-04-05 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:30:22] Production.INFO: ==13034== Releasing lock... [2025-04-05 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:31:06 [end_date_ymd] => 2025-04-05 08:31:06 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:31:06' and `end` < '2025-04-05 08: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-04-05 08:31:18] Production.INFO: count ==258 [2025-04-05 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:31:06 - End Time 2025-04-05 08:31:06 [2025-04-05 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838972', 'tblTempUsageDetail_20' ) start [2025-04-05 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838972', 'tblTempUsageDetail_20' ) end [2025-04-05 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838972', 'tblTempVendorCDR_20' ) start [2025-04-05 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838972', 'tblTempVendorCDR_20' ) end [2025-04-05 08:31:18] Production.INFO: ProcessCDR(1,14838972,1,1,2) [2025-04-05 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838972', 'tblTempUsageDetail_20' ) start [2025-04-05 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838972', 'tblTempUsageDetail_20' ) end [2025-04-05 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:31:22] Production.INFO: ==13112== Releasing lock... [2025-04-05 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:31:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:32:05 [end_date_ymd] => 2025-04-05 08:32:05 [RateCDR] => 1 ) [2025-04-05 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:32:05' and `end` < '2025-04-05 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:32:17] Production.INFO: count ==258 [2025-04-05 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:32:05 - End Time 2025-04-05 08:32:05 [2025-04-05 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838977', 'tblTempUsageDetail_20' ) start [2025-04-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838977', 'tblTempUsageDetail_20' ) end [2025-04-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838977', 'tblTempVendorCDR_20' ) start [2025-04-05 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838977', 'tblTempVendorCDR_20' ) end [2025-04-05 08:32:18] Production.INFO: ProcessCDR(1,14838977,1,1,2) [2025-04-05 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838977', 'tblTempUsageDetail_20' ) start [2025-04-05 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838977', 'tblTempUsageDetail_20' ) end [2025-04-05 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:32:21] Production.INFO: ==13188== Releasing lock... [2025-04-05 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:33:05 [end_date_ymd] => 2025-04-05 08:33:05 [RateCDR] => 1 ) [2025-04-05 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:33:05' and `end` < '2025-04-05 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:33:18] Production.INFO: count ==258 [2025-04-05 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:33:05 - End Time 2025-04-05 08:33:05 [2025-04-05 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838982', 'tblTempUsageDetail_20' ) start [2025-04-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838982', 'tblTempUsageDetail_20' ) end [2025-04-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838982', 'tblTempVendorCDR_20' ) start [2025-04-05 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838982', 'tblTempVendorCDR_20' ) end [2025-04-05 08:33:18] Production.INFO: ProcessCDR(1,14838982,1,1,2) [2025-04-05 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838982', 'tblTempUsageDetail_20' ) start [2025-04-05 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838982', 'tblTempUsageDetail_20' ) end [2025-04-05 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:33:21] Production.INFO: ==13259== Releasing lock... [2025-04-05 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:34:05 [end_date_ymd] => 2025-04-05 08:34:05 [RateCDR] => 1 ) [2025-04-05 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:34:05' and `end` < '2025-04-05 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:34:17] Production.INFO: count ==258 [2025-04-05 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:34:05 - End Time 2025-04-05 08:34:05 [2025-04-05 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838987', 'tblTempUsageDetail_20' ) start [2025-04-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838987', 'tblTempUsageDetail_20' ) end [2025-04-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838987', 'tblTempVendorCDR_20' ) start [2025-04-05 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838987', 'tblTempVendorCDR_20' ) end [2025-04-05 08:34:18] Production.INFO: ProcessCDR(1,14838987,1,1,2) [2025-04-05 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838987', 'tblTempUsageDetail_20' ) start [2025-04-05 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838987', 'tblTempUsageDetail_20' ) end [2025-04-05 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:34:21] Production.INFO: ==13334== Releasing lock... [2025-04-05 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:35:05 [end_date_ymd] => 2025-04-05 08:35:05 [RateCDR] => 1 ) [2025-04-05 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:35:05' and `end` < '2025-04-05 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:35:17] Production.INFO: count ==272 [2025-04-05 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:35:05 - End Time 2025-04-05 08:35:05 [2025-04-05 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838992', 'tblTempUsageDetail_20' ) start [2025-04-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838992', 'tblTempUsageDetail_20' ) end [2025-04-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838992', 'tblTempVendorCDR_20' ) start [2025-04-05 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838992', 'tblTempVendorCDR_20' ) end [2025-04-05 08:35:18] Production.INFO: ProcessCDR(1,14838992,1,1,2) [2025-04-05 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838992', 'tblTempUsageDetail_20' ) start [2025-04-05 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838992', 'tblTempUsageDetail_20' ) end [2025-04-05 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:35:21] Production.INFO: ==13412== Releasing lock... [2025-04-05 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:36:06 [end_date_ymd] => 2025-04-05 08:36:06 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:36:06' and `end` < '2025-04-05 08: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-04-05 08:36:19] Production.INFO: count ==272 [2025-04-05 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:36:06 - End Time 2025-04-05 08:36:06 [2025-04-05 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838997', 'tblTempUsageDetail_20' ) start [2025-04-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14838997', 'tblTempUsageDetail_20' ) end [2025-04-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838997', 'tblTempVendorCDR_20' ) start [2025-04-05 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14838997', 'tblTempVendorCDR_20' ) end [2025-04-05 08:36:19] Production.INFO: ProcessCDR(1,14838997,1,1,2) [2025-04-05 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14838997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14838997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14838997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14838997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838997', 'tblTempUsageDetail_20' ) start [2025-04-05 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14838997', 'tblTempUsageDetail_20' ) end [2025-04-05 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:36:22] Production.INFO: ==13487== Releasing lock... [2025-04-05 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:37:05 [end_date_ymd] => 2025-04-05 08:37:05 [RateCDR] => 1 ) [2025-04-05 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:37:05' and `end` < '2025-04-05 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:37:17] Production.INFO: count ==272 [2025-04-05 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:37:05 - End Time 2025-04-05 08:37:05 [2025-04-05 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839002', 'tblTempUsageDetail_20' ) start [2025-04-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839002', 'tblTempUsageDetail_20' ) end [2025-04-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839002', 'tblTempVendorCDR_20' ) start [2025-04-05 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839002', 'tblTempVendorCDR_20' ) end [2025-04-05 08:37:18] Production.INFO: ProcessCDR(1,14839002,1,1,2) [2025-04-05 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839002', 'tblTempUsageDetail_20' ) start [2025-04-05 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839002', 'tblTempUsageDetail_20' ) end [2025-04-05 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:37:21] Production.INFO: ==13561== Releasing lock... [2025-04-05 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:38:06 [end_date_ymd] => 2025-04-05 08:38:06 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:38:06' and `end` < '2025-04-05 08: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-04-05 08:38:19] Production.INFO: count ==277 [2025-04-05 08:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:38:06 - End Time 2025-04-05 08:38:06 [2025-04-05 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839007', 'tblTempUsageDetail_20' ) start [2025-04-05 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839007', 'tblTempUsageDetail_20' ) end [2025-04-05 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839007', 'tblTempVendorCDR_20' ) start [2025-04-05 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839007', 'tblTempVendorCDR_20' ) end [2025-04-05 08:38:19] Production.INFO: ProcessCDR(1,14839007,1,1,2) [2025-04-05 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839007', 'tblTempUsageDetail_20' ) start [2025-04-05 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839007', 'tblTempUsageDetail_20' ) end [2025-04-05 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:38:22] Production.INFO: ==13633== Releasing lock... [2025-04-05 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:39:05 [end_date_ymd] => 2025-04-05 08:39:05 [RateCDR] => 1 ) [2025-04-05 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:39:05' and `end` < '2025-04-05 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:39:18] Production.INFO: count ==276 [2025-04-05 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:39:05 - End Time 2025-04-05 08:39:05 [2025-04-05 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839012', 'tblTempUsageDetail_20' ) start [2025-04-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839012', 'tblTempUsageDetail_20' ) end [2025-04-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839012', 'tblTempVendorCDR_20' ) start [2025-04-05 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839012', 'tblTempVendorCDR_20' ) end [2025-04-05 08:39:18] Production.INFO: ProcessCDR(1,14839012,1,1,2) [2025-04-05 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839012', 'tblTempUsageDetail_20' ) start [2025-04-05 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839012', 'tblTempUsageDetail_20' ) end [2025-04-05 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:39:21] Production.INFO: ==13705== Releasing lock... [2025-04-05 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:40:06 [end_date_ymd] => 2025-04-05 08:40:06 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:40:06' and `end` < '2025-04-05 08: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-04-05 08:40:19] Production.INFO: count ==278 [2025-04-05 08:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:40:06 - End Time 2025-04-05 08:40:06 [2025-04-05 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839018', 'tblTempUsageDetail_20' ) start [2025-04-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839018', 'tblTempUsageDetail_20' ) end [2025-04-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839018', 'tblTempVendorCDR_20' ) start [2025-04-05 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839018', 'tblTempVendorCDR_20' ) end [2025-04-05 08:40:19] Production.INFO: ProcessCDR(1,14839018,1,1,2) [2025-04-05 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839018', 'tblTempUsageDetail_20' ) start [2025-04-05 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839018', 'tblTempUsageDetail_20' ) end [2025-04-05 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:40:22] Production.INFO: ==13781== Releasing lock... [2025-04-05 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:41:05 [end_date_ymd] => 2025-04-05 08:41:05 [RateCDR] => 1 ) [2025-04-05 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:41:05' and `end` < '2025-04-05 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:41:17] Production.INFO: count ==278 [2025-04-05 08:41:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:41:05 - End Time 2025-04-05 08:41:05 [2025-04-05 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839023', 'tblTempUsageDetail_20' ) start [2025-04-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839023', 'tblTempUsageDetail_20' ) end [2025-04-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839023', 'tblTempVendorCDR_20' ) start [2025-04-05 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839023', 'tblTempVendorCDR_20' ) end [2025-04-05 08:41:17] Production.INFO: ProcessCDR(1,14839023,1,1,2) [2025-04-05 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839023', 'tblTempUsageDetail_20' ) start [2025-04-05 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839023', 'tblTempUsageDetail_20' ) end [2025-04-05 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:41:21] Production.INFO: ==13855== Releasing lock... [2025-04-05 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:42:05 [end_date_ymd] => 2025-04-05 08:42:05 [RateCDR] => 1 ) [2025-04-05 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:42:05' and `end` < '2025-04-05 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:42:18] Production.INFO: count ==278 [2025-04-05 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:42:05 - End Time 2025-04-05 08:42:05 [2025-04-05 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839028', 'tblTempUsageDetail_20' ) start [2025-04-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839028', 'tblTempUsageDetail_20' ) end [2025-04-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839028', 'tblTempVendorCDR_20' ) start [2025-04-05 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839028', 'tblTempVendorCDR_20' ) end [2025-04-05 08:42:18] Production.INFO: ProcessCDR(1,14839028,1,1,2) [2025-04-05 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839028', 'tblTempUsageDetail_20' ) start [2025-04-05 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839028', 'tblTempUsageDetail_20' ) end [2025-04-05 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:42:21] Production.INFO: ==13927== Releasing lock... [2025-04-05 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:43:05 [end_date_ymd] => 2025-04-05 08:43:05 [RateCDR] => 1 ) [2025-04-05 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:43:05' and `end` < '2025-04-05 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:43:18] Production.INFO: count ==278 [2025-04-05 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:43:05 - End Time 2025-04-05 08:43:05 [2025-04-05 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839033', 'tblTempUsageDetail_20' ) start [2025-04-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839033', 'tblTempUsageDetail_20' ) end [2025-04-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839033', 'tblTempVendorCDR_20' ) start [2025-04-05 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839033', 'tblTempVendorCDR_20' ) end [2025-04-05 08:43:18] Production.INFO: ProcessCDR(1,14839033,1,1,2) [2025-04-05 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839033', 'tblTempUsageDetail_20' ) start [2025-04-05 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839033', 'tblTempUsageDetail_20' ) end [2025-04-05 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:43:22] Production.INFO: ==13998== Releasing lock... [2025-04-05 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:44:05 [end_date_ymd] => 2025-04-05 08:44:05 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:44:05' and `end` < '2025-04-05 08: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-04-05 08:44:18] Production.INFO: count ==278 [2025-04-05 08:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:44:05 - End Time 2025-04-05 08:44:05 [2025-04-05 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839038', 'tblTempUsageDetail_20' ) start [2025-04-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839038', 'tblTempUsageDetail_20' ) end [2025-04-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839038', 'tblTempVendorCDR_20' ) start [2025-04-05 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839038', 'tblTempVendorCDR_20' ) end [2025-04-05 08:44:18] Production.INFO: ProcessCDR(1,14839038,1,1,2) [2025-04-05 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839038', 'tblTempUsageDetail_20' ) start [2025-04-05 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839038', 'tblTempUsageDetail_20' ) end [2025-04-05 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:44:21] Production.INFO: ==14111== Releasing lock... [2025-04-05 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:45:05 [end_date_ymd] => 2025-04-05 08:45:05 [RateCDR] => 1 ) [2025-04-05 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:45:05' and `end` < '2025-04-05 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:45:17] Production.INFO: count ==278 [2025-04-05 08:45:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:45:05 - End Time 2025-04-05 08:45:05 [2025-04-05 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839043', 'tblTempUsageDetail_20' ) start [2025-04-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839043', 'tblTempUsageDetail_20' ) end [2025-04-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839043', 'tblTempVendorCDR_20' ) start [2025-04-05 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839043', 'tblTempVendorCDR_20' ) end [2025-04-05 08:45:17] Production.INFO: ProcessCDR(1,14839043,1,1,2) [2025-04-05 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839043', 'tblTempUsageDetail_20' ) start [2025-04-05 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839043', 'tblTempUsageDetail_20' ) end [2025-04-05 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:45:21] Production.INFO: ==14184== Releasing lock... [2025-04-05 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:46:05 [end_date_ymd] => 2025-04-05 08:46:05 [RateCDR] => 1 ) [2025-04-05 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:46:05' and `end` < '2025-04-05 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:46:18] Production.INFO: count ==278 [2025-04-05 08:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:46:05 - End Time 2025-04-05 08:46:05 [2025-04-05 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839048', 'tblTempUsageDetail_20' ) start [2025-04-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839048', 'tblTempUsageDetail_20' ) end [2025-04-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839048', 'tblTempVendorCDR_20' ) start [2025-04-05 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839048', 'tblTempVendorCDR_20' ) end [2025-04-05 08:46:18] Production.INFO: ProcessCDR(1,14839048,1,1,2) [2025-04-05 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839048', 'tblTempUsageDetail_20' ) start [2025-04-05 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839048', 'tblTempUsageDetail_20' ) end [2025-04-05 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:46:21] Production.INFO: ==14256== Releasing lock... [2025-04-05 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:47:06 [end_date_ymd] => 2025-04-05 08:47:06 [RateCDR] => 1 ) [2025-04-05 08:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:47:06' and `end` < '2025-04-05 08:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:47:19] Production.INFO: count ==278 [2025-04-05 08:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:47:06 - End Time 2025-04-05 08:47:06 [2025-04-05 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839053', 'tblTempUsageDetail_20' ) start [2025-04-05 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839053', 'tblTempUsageDetail_20' ) end [2025-04-05 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839053', 'tblTempVendorCDR_20' ) start [2025-04-05 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839053', 'tblTempVendorCDR_20' ) end [2025-04-05 08:47:19] Production.INFO: ProcessCDR(1,14839053,1,1,2) [2025-04-05 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839053', 'tblTempUsageDetail_20' ) start [2025-04-05 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839053', 'tblTempUsageDetail_20' ) end [2025-04-05 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:47:22] Production.INFO: ==14328== Releasing lock... [2025-04-05 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:48:05 [end_date_ymd] => 2025-04-05 08:48:05 [RateCDR] => 1 ) [2025-04-05 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:48:05' and `end` < '2025-04-05 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:48:18] Production.INFO: count ==279 [2025-04-05 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:48:05 - End Time 2025-04-05 08:48:05 [2025-04-05 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839058', 'tblTempUsageDetail_20' ) start [2025-04-05 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839058', 'tblTempUsageDetail_20' ) end [2025-04-05 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839058', 'tblTempVendorCDR_20' ) start [2025-04-05 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839058', 'tblTempVendorCDR_20' ) end [2025-04-05 08:48:18] Production.INFO: ProcessCDR(1,14839058,1,1,2) [2025-04-05 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839058', 'tblTempUsageDetail_20' ) start [2025-04-05 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839058', 'tblTempUsageDetail_20' ) end [2025-04-05 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:48:23] Production.INFO: ==14400== Releasing lock... [2025-04-05 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:48:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:49:05 [end_date_ymd] => 2025-04-05 08:49:05 [RateCDR] => 1 ) [2025-04-05 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:49:05' and `end` < '2025-04-05 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:49:18] Production.INFO: count ==279 [2025-04-05 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:49:05 - End Time 2025-04-05 08:49:05 [2025-04-05 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839063', 'tblTempUsageDetail_20' ) start [2025-04-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839063', 'tblTempUsageDetail_20' ) end [2025-04-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839063', 'tblTempVendorCDR_20' ) start [2025-04-05 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839063', 'tblTempVendorCDR_20' ) end [2025-04-05 08:49:18] Production.INFO: ProcessCDR(1,14839063,1,1,2) [2025-04-05 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839063', 'tblTempUsageDetail_20' ) start [2025-04-05 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839063', 'tblTempUsageDetail_20' ) end [2025-04-05 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:49:21] Production.INFO: ==14475== Releasing lock... [2025-04-05 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:50:06 [end_date_ymd] => 2025-04-05 08:50:06 [RateCDR] => 1 ) [2025-04-05 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:50:06' and `end` < '2025-04-05 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:50:19] Production.INFO: count ==279 [2025-04-05 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 05:50:06 - End Time 2025-04-05 08:50:06 [2025-04-05 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839069', 'tblTempUsageDetail_20' ) start [2025-04-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839069', 'tblTempUsageDetail_20' ) end [2025-04-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839069', 'tblTempVendorCDR_20' ) start [2025-04-05 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839069', 'tblTempVendorCDR_20' ) end [2025-04-05 08:50:19] Production.INFO: ProcessCDR(1,14839069,1,1,2) [2025-04-05 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839069', 'tblTempUsageDetail_20' ) start [2025-04-05 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839069', 'tblTempUsageDetail_20' ) end [2025-04-05 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:50:22] Production.INFO: ==14551== Releasing lock... [2025-04-05 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:51:05 [end_date_ymd] => 2025-04-05 08:51:05 [RateCDR] => 1 ) [2025-04-05 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:51:05' and `end` < '2025-04-05 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:51:17] Production.INFO: count ==281 [2025-04-05 08:51:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:51:05 - End Time 2025-04-05 08:51:05 [2025-04-05 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839074', 'tblTempUsageDetail_20' ) start [2025-04-05 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839074', 'tblTempUsageDetail_20' ) end [2025-04-05 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839074', 'tblTempVendorCDR_20' ) start [2025-04-05 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839074', 'tblTempVendorCDR_20' ) end [2025-04-05 08:51:17] Production.INFO: ProcessCDR(1,14839074,1,1,2) [2025-04-05 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839074', 'tblTempUsageDetail_20' ) start [2025-04-05 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839074', 'tblTempUsageDetail_20' ) end [2025-04-05 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:51:21] Production.INFO: ==14624== Releasing lock... [2025-04-05 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:51:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:52:04 [end_date_ymd] => 2025-04-05 08:52:04 [RateCDR] => 1 ) [2025-04-05 08:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:52:04' and `end` < '2025-04-05 08:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:52:17] Production.INFO: count ==284 [2025-04-05 08:52:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:52:04 - End Time 2025-04-05 08:52:04 [2025-04-05 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839079', 'tblTempUsageDetail_20' ) start [2025-04-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839079', 'tblTempUsageDetail_20' ) end [2025-04-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839079', 'tblTempVendorCDR_20' ) start [2025-04-05 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839079', 'tblTempVendorCDR_20' ) end [2025-04-05 08:52:17] Production.INFO: ProcessCDR(1,14839079,1,1,2) [2025-04-05 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839079', 'tblTempUsageDetail_20' ) start [2025-04-05 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839079', 'tblTempUsageDetail_20' ) end [2025-04-05 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:52:20] Production.INFO: ==14695== Releasing lock... [2025-04-05 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:52:20] Production.INFO: 31 MB #Memory Used# [2025-04-05 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:53:05 [end_date_ymd] => 2025-04-05 08:53:05 [RateCDR] => 1 ) [2025-04-05 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:53:05' and `end` < '2025-04-05 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:53:18] Production.INFO: count ==284 [2025-04-05 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:53:05 - End Time 2025-04-05 08:53:05 [2025-04-05 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839084', 'tblTempUsageDetail_20' ) start [2025-04-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839084', 'tblTempUsageDetail_20' ) end [2025-04-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839084', 'tblTempVendorCDR_20' ) start [2025-04-05 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839084', 'tblTempVendorCDR_20' ) end [2025-04-05 08:53:18] Production.INFO: ProcessCDR(1,14839084,1,1,2) [2025-04-05 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839084', 'tblTempUsageDetail_20' ) start [2025-04-05 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839084', 'tblTempUsageDetail_20' ) end [2025-04-05 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:53:21] Production.INFO: ==14767== Releasing lock... [2025-04-05 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:53:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:54:06 [end_date_ymd] => 2025-04-05 08:54:06 [RateCDR] => 1 ) [2025-04-05 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:54:06' and `end` < '2025-04-05 08: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-04-05 08:54:18] Production.INFO: count ==285 [2025-04-05 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:54:06 - End Time 2025-04-05 08:54:06 [2025-04-05 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839089', 'tblTempUsageDetail_20' ) start [2025-04-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839089', 'tblTempUsageDetail_20' ) end [2025-04-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839089', 'tblTempVendorCDR_20' ) start [2025-04-05 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839089', 'tblTempVendorCDR_20' ) end [2025-04-05 08:54:18] Production.INFO: ProcessCDR(1,14839089,1,1,2) [2025-04-05 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839089', 'tblTempUsageDetail_20' ) start [2025-04-05 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839089', 'tblTempUsageDetail_20' ) end [2025-04-05 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:54:23] Production.INFO: ==14842== Releasing lock... [2025-04-05 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:54:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:55:04 [end_date_ymd] => 2025-04-05 08:55:04 [RateCDR] => 1 ) [2025-04-05 08:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:55:04' and `end` < '2025-04-05 08:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:55:17] Production.INFO: count ==285 [2025-04-05 08:55:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:55:04 - End Time 2025-04-05 08:55:04 [2025-04-05 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839094', 'tblTempUsageDetail_20' ) start [2025-04-05 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839094', 'tblTempUsageDetail_20' ) end [2025-04-05 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839094', 'tblTempVendorCDR_20' ) start [2025-04-05 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839094', 'tblTempVendorCDR_20' ) end [2025-04-05 08:55:17] Production.INFO: ProcessCDR(1,14839094,1,1,2) [2025-04-05 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839094', 'tblTempUsageDetail_20' ) start [2025-04-05 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839094', 'tblTempUsageDetail_20' ) end [2025-04-05 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:55:21] Production.INFO: ==14921== Releasing lock... [2025-04-05 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:56:06 [end_date_ymd] => 2025-04-05 08:56:06 [RateCDR] => 1 ) [2025-04-05 08: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-04-05 05:56:06' and `end` < '2025-04-05 08: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-04-05 08:56:18] Production.INFO: count ==290 [2025-04-05 08:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:56:06 - End Time 2025-04-05 08:56:06 [2025-04-05 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839099', 'tblTempUsageDetail_20' ) start [2025-04-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839099', 'tblTempUsageDetail_20' ) end [2025-04-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839099', 'tblTempVendorCDR_20' ) start [2025-04-05 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839099', 'tblTempVendorCDR_20' ) end [2025-04-05 08:56:18] Production.INFO: ProcessCDR(1,14839099,1,1,2) [2025-04-05 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839099', 'tblTempUsageDetail_20' ) start [2025-04-05 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839099', 'tblTempUsageDetail_20' ) end [2025-04-05 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:56:22] Production.INFO: ==14995== Releasing lock... [2025-04-05 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:57:05 [end_date_ymd] => 2025-04-05 08:57:05 [RateCDR] => 1 ) [2025-04-05 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:57:05' and `end` < '2025-04-05 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:57:17] Production.INFO: count ==290 [2025-04-05 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-05 05:57:05 - End Time 2025-04-05 08:57:05 [2025-04-05 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839104', 'tblTempUsageDetail_20' ) start [2025-04-05 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839104', 'tblTempUsageDetail_20' ) end [2025-04-05 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839104', 'tblTempVendorCDR_20' ) start [2025-04-05 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839104', 'tblTempVendorCDR_20' ) end [2025-04-05 08:57:17] Production.INFO: ProcessCDR(1,14839104,1,1,2) [2025-04-05 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839104', 'tblTempUsageDetail_20' ) start [2025-04-05 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839104', 'tblTempUsageDetail_20' ) end [2025-04-05 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:57:21] Production.INFO: ==15070== Releasing lock... [2025-04-05 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:58:05 [end_date_ymd] => 2025-04-05 08:58:05 [RateCDR] => 1 ) [2025-04-05 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:58:05' and `end` < '2025-04-05 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:58:18] Production.INFO: count ==297 [2025-04-05 08:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:58:05 - End Time 2025-04-05 08:58:05 [2025-04-05 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839109', 'tblTempUsageDetail_20' ) start [2025-04-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839109', 'tblTempUsageDetail_20' ) end [2025-04-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839109', 'tblTempVendorCDR_20' ) start [2025-04-05 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839109', 'tblTempVendorCDR_20' ) end [2025-04-05 08:58:18] Production.INFO: ProcessCDR(1,14839109,1,1,2) [2025-04-05 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839109', 'tblTempUsageDetail_20' ) start [2025-04-05 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839109', 'tblTempUsageDetail_20' ) end [2025-04-05 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:58:21] Production.INFO: ==15147== Releasing lock... [2025-04-05 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:58:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 05:59:05 [end_date_ymd] => 2025-04-05 08:59:05 [RateCDR] => 1 ) [2025-04-05 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 05:59:05' and `end` < '2025-04-05 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 08:59:18] Production.INFO: count ==297 [2025-04-05 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 05:59:05 - End Time 2025-04-05 08:59:05 [2025-04-05 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839114', 'tblTempUsageDetail_20' ) start [2025-04-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839114', 'tblTempUsageDetail_20' ) end [2025-04-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839114', 'tblTempVendorCDR_20' ) start [2025-04-05 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839114', 'tblTempVendorCDR_20' ) end [2025-04-05 08:59:18] Production.INFO: ProcessCDR(1,14839114,1,1,2) [2025-04-05 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839114', 'tblTempUsageDetail_20' ) start [2025-04-05 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839114', 'tblTempUsageDetail_20' ) end [2025-04-05 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 08:59:22] Production.INFO: ==15259== Releasing lock... [2025-04-05 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 08:59:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:00:06 [end_date_ymd] => 2025-04-05 09:00:06 [RateCDR] => 1 ) [2025-04-05 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:00:06' and `end` < '2025-04-05 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:00:18] Production.INFO: count ==298 [2025-04-05 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:00:06 - End Time 2025-04-05 09:00:06 [2025-04-05 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839119', 'tblTempUsageDetail_20' ) start [2025-04-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839119', 'tblTempUsageDetail_20' ) end [2025-04-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839119', 'tblTempVendorCDR_20' ) start [2025-04-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839119', 'tblTempVendorCDR_20' ) end [2025-04-05 09:00:19] Production.INFO: ProcessCDR(1,14839119,1,1,2) [2025-04-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839119', 'tblTempUsageDetail_20' ) start [2025-04-05 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839119', 'tblTempUsageDetail_20' ) end [2025-04-05 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:00:22] Production.INFO: ==15333== Releasing lock... [2025-04-05 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:01:06 [end_date_ymd] => 2025-04-05 09:01:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:01:06' and `end` < '2025-04-05 09: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-04-05 09:01:19] Production.INFO: count ==285 [2025-04-05 09:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:01:06 - End Time 2025-04-05 09:01:06 [2025-04-05 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839125', 'tblTempUsageDetail_20' ) start [2025-04-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839125', 'tblTempUsageDetail_20' ) end [2025-04-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839125', 'tblTempVendorCDR_20' ) start [2025-04-05 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839125', 'tblTempVendorCDR_20' ) end [2025-04-05 09:01:19] Production.INFO: ProcessCDR(1,14839125,1,1,2) [2025-04-05 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839125', 'tblTempUsageDetail_20' ) start [2025-04-05 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839125', 'tblTempUsageDetail_20' ) end [2025-04-05 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:01:22] Production.INFO: ==15419== Releasing lock... [2025-04-05 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:02:05 [end_date_ymd] => 2025-04-05 09:02:05 [RateCDR] => 1 ) [2025-04-05 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:02:05' and `end` < '2025-04-05 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:02:18] Production.INFO: count ==280 [2025-04-05 09:02:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:02:05 - End Time 2025-04-05 09:02:05 [2025-04-05 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839130', 'tblTempUsageDetail_20' ) start [2025-04-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839130', 'tblTempUsageDetail_20' ) end [2025-04-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839130', 'tblTempVendorCDR_20' ) start [2025-04-05 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839130', 'tblTempVendorCDR_20' ) end [2025-04-05 09:02:18] Production.INFO: ProcessCDR(1,14839130,1,1,2) [2025-04-05 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839130', 'tblTempUsageDetail_20' ) start [2025-04-05 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839130', 'tblTempUsageDetail_20' ) end [2025-04-05 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:02:21] Production.INFO: ==15492== Releasing lock... [2025-04-05 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:02:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:03:05 [end_date_ymd] => 2025-04-05 09:03:05 [RateCDR] => 1 ) [2025-04-05 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:03:05' and `end` < '2025-04-05 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:03:18] Production.INFO: count ==274 [2025-04-05 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:03:05 - End Time 2025-04-05 09:03:05 [2025-04-05 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839135', 'tblTempUsageDetail_20' ) start [2025-04-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839135', 'tblTempUsageDetail_20' ) end [2025-04-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839135', 'tblTempVendorCDR_20' ) start [2025-04-05 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839135', 'tblTempVendorCDR_20' ) end [2025-04-05 09:03:18] Production.INFO: ProcessCDR(1,14839135,1,1,2) [2025-04-05 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839135', 'tblTempUsageDetail_20' ) start [2025-04-05 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839135', 'tblTempUsageDetail_20' ) end [2025-04-05 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:03:21] Production.INFO: ==15563== Releasing lock... [2025-04-05 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-05 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:04:05 [end_date_ymd] => 2025-04-05 09:04:05 [RateCDR] => 1 ) [2025-04-05 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:04:05' and `end` < '2025-04-05 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:04:17] Production.INFO: count ==292 [2025-04-05 09:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:04:05 - End Time 2025-04-05 09:04:05 [2025-04-05 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839140', 'tblTempUsageDetail_20' ) start [2025-04-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839140', 'tblTempUsageDetail_20' ) end [2025-04-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839140', 'tblTempVendorCDR_20' ) start [2025-04-05 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839140', 'tblTempVendorCDR_20' ) end [2025-04-05 09:04:18] Production.INFO: ProcessCDR(1,14839140,1,1,2) [2025-04-05 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839140', 'tblTempUsageDetail_20' ) start [2025-04-05 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839140', 'tblTempUsageDetail_20' ) end [2025-04-05 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:04:22] Production.INFO: ==15640== Releasing lock... [2025-04-05 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-05 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:05:06 [end_date_ymd] => 2025-04-05 09:05:06 [RateCDR] => 1 ) [2025-04-05 09:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:05:06' and `end` < '2025-04-05 09:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:05:18] Production.INFO: count ==296 [2025-04-05 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:05:06 - End Time 2025-04-05 09:05:06 [2025-04-05 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839145', 'tblTempUsageDetail_20' ) start [2025-04-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839145', 'tblTempUsageDetail_20' ) end [2025-04-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839145', 'tblTempVendorCDR_20' ) start [2025-04-05 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839145', 'tblTempVendorCDR_20' ) end [2025-04-05 09:05:18] Production.INFO: ProcessCDR(1,14839145,1,1,2) [2025-04-05 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839145', 'tblTempUsageDetail_20' ) start [2025-04-05 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839145', 'tblTempUsageDetail_20' ) end [2025-04-05 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:05:22] Production.INFO: ==15714== Releasing lock... [2025-04-05 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:06:05 [end_date_ymd] => 2025-04-05 09:06:05 [RateCDR] => 1 ) [2025-04-05 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:06:05' and `end` < '2025-04-05 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:06:17] Production.INFO: count ==296 [2025-04-05 09:06:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:06:05 - End Time 2025-04-05 09:06:05 [2025-04-05 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839150', 'tblTempUsageDetail_20' ) start [2025-04-05 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839150', 'tblTempUsageDetail_20' ) end [2025-04-05 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839150', 'tblTempVendorCDR_20' ) start [2025-04-05 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839150', 'tblTempVendorCDR_20' ) end [2025-04-05 09:06:17] Production.INFO: ProcessCDR(1,14839150,1,1,2) [2025-04-05 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839150', 'tblTempUsageDetail_20' ) start [2025-04-05 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839150', 'tblTempUsageDetail_20' ) end [2025-04-05 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:06:21] Production.INFO: ==15787== Releasing lock... [2025-04-05 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:07:05 [end_date_ymd] => 2025-04-05 09:07:05 [RateCDR] => 1 ) [2025-04-05 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:07:05' and `end` < '2025-04-05 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:07:18] Production.INFO: count ==302 [2025-04-05 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:07:05 - End Time 2025-04-05 09:07:05 [2025-04-05 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839155', 'tblTempUsageDetail_20' ) start [2025-04-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839155', 'tblTempUsageDetail_20' ) end [2025-04-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839155', 'tblTempVendorCDR_20' ) start [2025-04-05 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839155', 'tblTempVendorCDR_20' ) end [2025-04-05 09:07:18] Production.INFO: ProcessCDR(1,14839155,1,1,2) [2025-04-05 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839155', 'tblTempUsageDetail_20' ) start [2025-04-05 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839155', 'tblTempUsageDetail_20' ) end [2025-04-05 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:07:22] Production.INFO: ==15859== Releasing lock... [2025-04-05 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:07:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:08:05 [end_date_ymd] => 2025-04-05 09:08:05 [RateCDR] => 1 ) [2025-04-05 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:08:05' and `end` < '2025-04-05 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:08:18] Production.INFO: count ==309 [2025-04-05 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:08:05 - End Time 2025-04-05 09:08:05 [2025-04-05 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839160', 'tblTempUsageDetail_20' ) start [2025-04-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839160', 'tblTempUsageDetail_20' ) end [2025-04-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839160', 'tblTempVendorCDR_20' ) start [2025-04-05 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839160', 'tblTempVendorCDR_20' ) end [2025-04-05 09:08:18] Production.INFO: ProcessCDR(1,14839160,1,1,2) [2025-04-05 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839160', 'tblTempUsageDetail_20' ) start [2025-04-05 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839160', 'tblTempUsageDetail_20' ) end [2025-04-05 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:08:21] Production.INFO: ==15931== Releasing lock... [2025-04-05 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:09:05 [end_date_ymd] => 2025-04-05 09:09:05 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:09:05' and `end` < '2025-04-05 09: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-04-05 09:09:18] Production.INFO: count ==322 [2025-04-05 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:09:05 - End Time 2025-04-05 09:09:05 [2025-04-05 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839165', 'tblTempUsageDetail_20' ) start [2025-04-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839165', 'tblTempUsageDetail_20' ) end [2025-04-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839165', 'tblTempVendorCDR_20' ) start [2025-04-05 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839165', 'tblTempVendorCDR_20' ) end [2025-04-05 09:09:18] Production.INFO: ProcessCDR(1,14839165,1,1,2) [2025-04-05 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839165', 'tblTempUsageDetail_20' ) start [2025-04-05 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839165', 'tblTempUsageDetail_20' ) end [2025-04-05 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:09:22] Production.INFO: ==16002== Releasing lock... [2025-04-05 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:09:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:10:06 [end_date_ymd] => 2025-04-05 09:10:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:10:06' and `end` < '2025-04-05 09: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-04-05 09:10:18] Production.INFO: count ==323 [2025-04-05 09:10:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:10:06 - End Time 2025-04-05 09:10:06 [2025-04-05 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839170', 'tblTempUsageDetail_20' ) start [2025-04-05 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839170', 'tblTempUsageDetail_20' ) end [2025-04-05 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839170', 'tblTempVendorCDR_20' ) start [2025-04-05 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839170', 'tblTempVendorCDR_20' ) end [2025-04-05 09:10:18] Production.INFO: ProcessCDR(1,14839170,1,1,2) [2025-04-05 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839170', 'tblTempUsageDetail_20' ) start [2025-04-05 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839170', 'tblTempUsageDetail_20' ) end [2025-04-05 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:10:23] Production.INFO: ==16077== Releasing lock... [2025-04-05 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:10:23] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:11:05 [end_date_ymd] => 2025-04-05 09:11:05 [RateCDR] => 1 ) [2025-04-05 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:11:05' and `end` < '2025-04-05 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:11:17] Production.INFO: count ==341 [2025-04-05 09:11:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:11:05 - End Time 2025-04-05 09:11:05 [2025-04-05 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839176', 'tblTempUsageDetail_20' ) start [2025-04-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839176', 'tblTempUsageDetail_20' ) end [2025-04-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839176', 'tblTempVendorCDR_20' ) start [2025-04-05 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839176', 'tblTempVendorCDR_20' ) end [2025-04-05 09:11:17] Production.INFO: ProcessCDR(1,14839176,1,1,2) [2025-04-05 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839176', 'tblTempUsageDetail_20' ) start [2025-04-05 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839176', 'tblTempUsageDetail_20' ) end [2025-04-05 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:11:22] Production.INFO: ==16154== Releasing lock... [2025-04-05 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:11:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:12:05 [end_date_ymd] => 2025-04-05 09:12:05 [RateCDR] => 1 ) [2025-04-05 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:12:05' and `end` < '2025-04-05 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:12:18] Production.INFO: count ==351 [2025-04-05 09:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:12:05 - End Time 2025-04-05 09:12:05 [2025-04-05 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839181', 'tblTempUsageDetail_20' ) start [2025-04-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839181', 'tblTempUsageDetail_20' ) end [2025-04-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839181', 'tblTempVendorCDR_20' ) start [2025-04-05 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839181', 'tblTempVendorCDR_20' ) end [2025-04-05 09:12:18] Production.INFO: ProcessCDR(1,14839181,1,1,2) [2025-04-05 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839181', 'tblTempUsageDetail_20' ) start [2025-04-05 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839181', 'tblTempUsageDetail_20' ) end [2025-04-05 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:12:23] Production.INFO: ==16226== Releasing lock... [2025-04-05 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:12:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:13:05 [end_date_ymd] => 2025-04-05 09:13:05 [RateCDR] => 1 ) [2025-04-05 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:13:05' and `end` < '2025-04-05 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:13:17] Production.INFO: count ==354 [2025-04-05 09:13:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:13:05 - End Time 2025-04-05 09:13:05 [2025-04-05 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839186', 'tblTempUsageDetail_20' ) start [2025-04-05 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839186', 'tblTempUsageDetail_20' ) end [2025-04-05 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839186', 'tblTempVendorCDR_20' ) start [2025-04-05 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839186', 'tblTempVendorCDR_20' ) end [2025-04-05 09:13:17] Production.INFO: ProcessCDR(1,14839186,1,1,2) [2025-04-05 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839186', 'tblTempUsageDetail_20' ) start [2025-04-05 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839186', 'tblTempUsageDetail_20' ) end [2025-04-05 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:13:22] Production.INFO: ==16297== Releasing lock... [2025-04-05 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:13:22] Production.INFO: 31 MB #Memory Used# [2025-04-05 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:14:05 [end_date_ymd] => 2025-04-05 09:14:05 [RateCDR] => 1 ) [2025-04-05 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:14:05' and `end` < '2025-04-05 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:14:18] Production.INFO: count ==356 [2025-04-05 09:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:14:05 - End Time 2025-04-05 09:14:05 [2025-04-05 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839191', 'tblTempUsageDetail_20' ) start [2025-04-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839191', 'tblTempUsageDetail_20' ) end [2025-04-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839191', 'tblTempVendorCDR_20' ) start [2025-04-05 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839191', 'tblTempVendorCDR_20' ) end [2025-04-05 09:14:18] Production.INFO: ProcessCDR(1,14839191,1,1,2) [2025-04-05 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839191', 'tblTempUsageDetail_20' ) start [2025-04-05 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839191', 'tblTempUsageDetail_20' ) end [2025-04-05 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:14:21] Production.INFO: ==16374== Releasing lock... [2025-04-05 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-05 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:15:06 [end_date_ymd] => 2025-04-05 09:15:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:15:06' and `end` < '2025-04-05 09: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-04-05 09:15:19] Production.INFO: count ==365 [2025-04-05 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:15:06 - End Time 2025-04-05 09:15:06 [2025-04-05 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839196', 'tblTempUsageDetail_20' ) start [2025-04-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839196', 'tblTempUsageDetail_20' ) end [2025-04-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839196', 'tblTempVendorCDR_20' ) start [2025-04-05 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839196', 'tblTempVendorCDR_20' ) end [2025-04-05 09:15:19] Production.INFO: ProcessCDR(1,14839196,1,1,2) [2025-04-05 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839196', 'tblTempUsageDetail_20' ) start [2025-04-05 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839196', 'tblTempUsageDetail_20' ) end [2025-04-05 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:15:23] Production.INFO: ==16492== Releasing lock... [2025-04-05 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:15:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:16:05 [end_date_ymd] => 2025-04-05 09:16:05 [RateCDR] => 1 ) [2025-04-05 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:16:05' and `end` < '2025-04-05 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:16:18] Production.INFO: count ==367 [2025-04-05 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:16:05 - End Time 2025-04-05 09:16:05 [2025-04-05 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839201', 'tblTempUsageDetail_20' ) start [2025-04-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839201', 'tblTempUsageDetail_20' ) end [2025-04-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839201', 'tblTempVendorCDR_20' ) start [2025-04-05 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839201', 'tblTempVendorCDR_20' ) end [2025-04-05 09:16:18] Production.INFO: ProcessCDR(1,14839201,1,1,2) [2025-04-05 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839201', 'tblTempUsageDetail_20' ) start [2025-04-05 09:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839201', 'tblTempUsageDetail_20' ) end [2025-04-05 09:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:16:21] Production.INFO: ==16564== Releasing lock... [2025-04-05 09:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:17:06 [end_date_ymd] => 2025-04-05 09:17:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:17:06' and `end` < '2025-04-05 09: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-04-05 09:17:18] Production.INFO: count ==370 [2025-04-05 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:17:06 - End Time 2025-04-05 09:17:06 [2025-04-05 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839206', 'tblTempUsageDetail_20' ) start [2025-04-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839206', 'tblTempUsageDetail_20' ) end [2025-04-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839206', 'tblTempVendorCDR_20' ) start [2025-04-05 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839206', 'tblTempVendorCDR_20' ) end [2025-04-05 09:17:18] Production.INFO: ProcessCDR(1,14839206,1,1,2) [2025-04-05 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839206', 'tblTempUsageDetail_20' ) start [2025-04-05 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839206', 'tblTempUsageDetail_20' ) end [2025-04-05 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:17:22] Production.INFO: ==16636== Releasing lock... [2025-04-05 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-05 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:18:05 [end_date_ymd] => 2025-04-05 09:18:05 [RateCDR] => 1 ) [2025-04-05 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:18:05' and `end` < '2025-04-05 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:18:18] Production.INFO: count ==365 [2025-04-05 09:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:18:05 - End Time 2025-04-05 09:18:05 [2025-04-05 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839211', 'tblTempUsageDetail_20' ) start [2025-04-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839211', 'tblTempUsageDetail_20' ) end [2025-04-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839211', 'tblTempVendorCDR_20' ) start [2025-04-05 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839211', 'tblTempVendorCDR_20' ) end [2025-04-05 09:18:18] Production.INFO: ProcessCDR(1,14839211,1,1,2) [2025-04-05 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839211', 'tblTempUsageDetail_20' ) start [2025-04-05 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839211', 'tblTempUsageDetail_20' ) end [2025-04-05 09:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:18:21] Production.INFO: ==16717== Releasing lock... [2025-04-05 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:19:06 [end_date_ymd] => 2025-04-05 09:19:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:19:06' and `end` < '2025-04-05 09: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-04-05 09:19:19] Production.INFO: count ==371 [2025-04-05 09:19:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:19:06 - End Time 2025-04-05 09:19:06 [2025-04-05 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839216', 'tblTempUsageDetail_20' ) start [2025-04-05 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839216', 'tblTempUsageDetail_20' ) end [2025-04-05 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839216', 'tblTempVendorCDR_20' ) start [2025-04-05 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839216', 'tblTempVendorCDR_20' ) end [2025-04-05 09:19:19] Production.INFO: ProcessCDR(1,14839216,1,1,2) [2025-04-05 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839216', 'tblTempUsageDetail_20' ) start [2025-04-05 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839216', 'tblTempUsageDetail_20' ) end [2025-04-05 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:19:22] Production.INFO: ==16790== Releasing lock... [2025-04-05 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:20:05 [end_date_ymd] => 2025-04-05 09:20:05 [RateCDR] => 1 ) [2025-04-05 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:20:05' and `end` < '2025-04-05 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:20:18] Production.INFO: count ==381 [2025-04-05 09:20:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:20:05 - End Time 2025-04-05 09:20:05 [2025-04-05 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839222', 'tblTempUsageDetail_20' ) start [2025-04-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839222', 'tblTempUsageDetail_20' ) end [2025-04-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839222', 'tblTempVendorCDR_20' ) start [2025-04-05 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839222', 'tblTempVendorCDR_20' ) end [2025-04-05 09:20:18] Production.INFO: ProcessCDR(1,14839222,1,1,2) [2025-04-05 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839222', 'tblTempUsageDetail_20' ) start [2025-04-05 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839222', 'tblTempUsageDetail_20' ) end [2025-04-05 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:20:21] Production.INFO: ==16865== Releasing lock... [2025-04-05 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:21:05 [end_date_ymd] => 2025-04-05 09:21:05 [RateCDR] => 1 ) [2025-04-05 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:21:05' and `end` < '2025-04-05 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:21:18] Production.INFO: count ==400 [2025-04-05 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:21:05 - End Time 2025-04-05 09:21:05 [2025-04-05 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839227', 'tblTempUsageDetail_20' ) start [2025-04-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839227', 'tblTempUsageDetail_20' ) end [2025-04-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839227', 'tblTempVendorCDR_20' ) start [2025-04-05 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839227', 'tblTempVendorCDR_20' ) end [2025-04-05 09:21:18] Production.INFO: ProcessCDR(1,14839227,1,1,2) [2025-04-05 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839227', 'tblTempUsageDetail_20' ) start [2025-04-05 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839227', 'tblTempUsageDetail_20' ) end [2025-04-05 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:21:23] Production.INFO: ==16939== Releasing lock... [2025-04-05 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:21:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:22:06 [end_date_ymd] => 2025-04-05 09:22:06 [RateCDR] => 1 ) [2025-04-05 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:22:06' and `end` < '2025-04-05 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:22:18] Production.INFO: count ==400 [2025-04-05 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:22:06 - End Time 2025-04-05 09:22:06 [2025-04-05 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839232', 'tblTempUsageDetail_20' ) start [2025-04-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839232', 'tblTempUsageDetail_20' ) end [2025-04-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839232', 'tblTempVendorCDR_20' ) start [2025-04-05 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839232', 'tblTempVendorCDR_20' ) end [2025-04-05 09:22:19] Production.INFO: ProcessCDR(1,14839232,1,1,2) [2025-04-05 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839232', 'tblTempUsageDetail_20' ) start [2025-04-05 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839232', 'tblTempUsageDetail_20' ) end [2025-04-05 09:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:22:22] Production.INFO: ==17012== Releasing lock... [2025-04-05 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:23:05 [end_date_ymd] => 2025-04-05 09:23:05 [RateCDR] => 1 ) [2025-04-05 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:23:05' and `end` < '2025-04-05 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:23:18] Production.INFO: count ==401 [2025-04-05 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:23:05 - End Time 2025-04-05 09:23:05 [2025-04-05 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839237', 'tblTempUsageDetail_20' ) start [2025-04-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839237', 'tblTempUsageDetail_20' ) end [2025-04-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839237', 'tblTempVendorCDR_20' ) start [2025-04-05 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839237', 'tblTempVendorCDR_20' ) end [2025-04-05 09:23:18] Production.INFO: ProcessCDR(1,14839237,1,1,2) [2025-04-05 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839237', 'tblTempUsageDetail_20' ) start [2025-04-05 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839237', 'tblTempUsageDetail_20' ) end [2025-04-05 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:23:23] Production.INFO: ==17085== Releasing lock... [2025-04-05 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:24:05 [end_date_ymd] => 2025-04-05 09:24:05 [RateCDR] => 1 ) [2025-04-05 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:24:05' and `end` < '2025-04-05 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:24:18] Production.INFO: count ==403 [2025-04-05 09:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:24:05 - End Time 2025-04-05 09:24:05 [2025-04-05 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839242', 'tblTempUsageDetail_20' ) start [2025-04-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839242', 'tblTempUsageDetail_20' ) end [2025-04-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839242', 'tblTempVendorCDR_20' ) start [2025-04-05 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839242', 'tblTempVendorCDR_20' ) end [2025-04-05 09:24:18] Production.INFO: ProcessCDR(1,14839242,1,1,2) [2025-04-05 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839242', 'tblTempUsageDetail_20' ) start [2025-04-05 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839242', 'tblTempUsageDetail_20' ) end [2025-04-05 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:24:22] Production.INFO: ==17162== Releasing lock... [2025-04-05 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:25:05 [end_date_ymd] => 2025-04-05 09:25:05 [RateCDR] => 1 ) [2025-04-05 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:25:05' and `end` < '2025-04-05 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:25:17] Production.INFO: count ==407 [2025-04-05 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:25:05 - End Time 2025-04-05 09:25:05 [2025-04-05 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839247', 'tblTempUsageDetail_20' ) start [2025-04-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839247', 'tblTempUsageDetail_20' ) end [2025-04-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839247', 'tblTempVendorCDR_20' ) start [2025-04-05 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839247', 'tblTempVendorCDR_20' ) end [2025-04-05 09:25:18] Production.INFO: ProcessCDR(1,14839247,1,1,2) [2025-04-05 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839247', 'tblTempUsageDetail_20' ) start [2025-04-05 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839247', 'tblTempUsageDetail_20' ) end [2025-04-05 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:25:22] Production.INFO: ==17234== Releasing lock... [2025-04-05 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:25:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:26:05 [end_date_ymd] => 2025-04-05 09:26:05 [RateCDR] => 1 ) [2025-04-05 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:26:05' and `end` < '2025-04-05 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:26:18] Production.INFO: count ==413 [2025-04-05 09:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:26:05 - End Time 2025-04-05 09:26:05 [2025-04-05 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839252', 'tblTempUsageDetail_20' ) start [2025-04-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839252', 'tblTempUsageDetail_20' ) end [2025-04-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839252', 'tblTempVendorCDR_20' ) start [2025-04-05 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839252', 'tblTempVendorCDR_20' ) end [2025-04-05 09:26:18] Production.INFO: ProcessCDR(1,14839252,1,1,2) [2025-04-05 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839252', 'tblTempUsageDetail_20' ) start [2025-04-05 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839252', 'tblTempUsageDetail_20' ) end [2025-04-05 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:26:23] Production.INFO: ==17305== Releasing lock... [2025-04-05 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:26:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:27:04 [end_date_ymd] => 2025-04-05 09:27:04 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:27:04' and `end` < '2025-04-05 09: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-04-05 09:27:17] Production.INFO: count ==416 [2025-04-05 09:27:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:27:04 - End Time 2025-04-05 09:27:04 [2025-04-05 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839257', 'tblTempUsageDetail_20' ) start [2025-04-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839257', 'tblTempUsageDetail_20' ) end [2025-04-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839257', 'tblTempVendorCDR_20' ) start [2025-04-05 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839257', 'tblTempVendorCDR_20' ) end [2025-04-05 09:27:17] Production.INFO: ProcessCDR(1,14839257,1,1,2) [2025-04-05 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839257', 'tblTempUsageDetail_20' ) start [2025-04-05 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839257', 'tblTempUsageDetail_20' ) end [2025-04-05 09:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:27:20] Production.INFO: ==17381== Releasing lock... [2025-04-05 09:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:28:05 [end_date_ymd] => 2025-04-05 09:28:05 [RateCDR] => 1 ) [2025-04-05 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:28:05' and `end` < '2025-04-05 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:28:17] Production.INFO: count ==416 [2025-04-05 09:28:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:28:05 - End Time 2025-04-05 09:28:05 [2025-04-05 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839262', 'tblTempUsageDetail_20' ) start [2025-04-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839262', 'tblTempUsageDetail_20' ) end [2025-04-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839262', 'tblTempVendorCDR_20' ) start [2025-04-05 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839262', 'tblTempVendorCDR_20' ) end [2025-04-05 09:28:18] Production.INFO: ProcessCDR(1,14839262,1,1,2) [2025-04-05 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839262', 'tblTempUsageDetail_20' ) start [2025-04-05 09:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839262', 'tblTempUsageDetail_20' ) end [2025-04-05 09:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:28:21] Production.INFO: ==17461== Releasing lock... [2025-04-05 09:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:28:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-05 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:29:06 [end_date_ymd] => 2025-04-05 09:29:06 [RateCDR] => 1 ) [2025-04-05 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:29:06' and `end` < '2025-04-05 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:29:19] Production.INFO: count ==422 [2025-04-05 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:29:06 - End Time 2025-04-05 09:29:06 [2025-04-05 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839267', 'tblTempUsageDetail_20' ) start [2025-04-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839267', 'tblTempUsageDetail_20' ) end [2025-04-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839267', 'tblTempVendorCDR_20' ) start [2025-04-05 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839267', 'tblTempVendorCDR_20' ) end [2025-04-05 09:29:19] Production.INFO: ProcessCDR(1,14839267,1,1,2) [2025-04-05 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839267', 'tblTempUsageDetail_20' ) start [2025-04-05 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839267', 'tblTempUsageDetail_20' ) end [2025-04-05 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:29:22] Production.INFO: ==17538== Releasing lock... [2025-04-05 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:30:06 [end_date_ymd] => 2025-04-05 09:30:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:30:06' and `end` < '2025-04-05 09: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-04-05 09:30:19] Production.INFO: count ==430 [2025-04-05 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:30:06 - End Time 2025-04-05 09:30:06 [2025-04-05 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839273', 'tblTempUsageDetail_20' ) start [2025-04-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839273', 'tblTempUsageDetail_20' ) end [2025-04-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839273', 'tblTempVendorCDR_20' ) start [2025-04-05 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839273', 'tblTempVendorCDR_20' ) end [2025-04-05 09:30:19] Production.INFO: ProcessCDR(1,14839273,1,1,2) [2025-04-05 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839273', 'tblTempUsageDetail_20' ) start [2025-04-05 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839273', 'tblTempUsageDetail_20' ) end [2025-04-05 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:30:22] Production.INFO: ==17655== Releasing lock... [2025-04-05 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-05 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:31:05 [end_date_ymd] => 2025-04-05 09:31:05 [RateCDR] => 1 ) [2025-04-05 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:31:05' and `end` < '2025-04-05 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:31:18] Production.INFO: count ==470 [2025-04-05 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:31:05 - End Time 2025-04-05 09:31:05 [2025-04-05 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839278', 'tblTempUsageDetail_20' ) start [2025-04-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839278', 'tblTempUsageDetail_20' ) end [2025-04-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839278', 'tblTempVendorCDR_20' ) start [2025-04-05 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839278', 'tblTempVendorCDR_20' ) end [2025-04-05 09:31:18] Production.INFO: ProcessCDR(1,14839278,1,1,2) [2025-04-05 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839278', 'tblTempUsageDetail_20' ) start [2025-04-05 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839278', 'tblTempUsageDetail_20' ) end [2025-04-05 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:31:23] Production.INFO: ==17732== Releasing lock... [2025-04-05 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:31:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:32:05 [end_date_ymd] => 2025-04-05 09:32:05 [RateCDR] => 1 ) [2025-04-05 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:32:05' and `end` < '2025-04-05 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:32:17] Production.INFO: count ==479 [2025-04-05 09:32:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:32:05 - End Time 2025-04-05 09:32:05 [2025-04-05 09:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839283', 'tblTempUsageDetail_20' ) start [2025-04-05 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839283', 'tblTempUsageDetail_20' ) end [2025-04-05 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839283', 'tblTempVendorCDR_20' ) start [2025-04-05 09:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839283', 'tblTempVendorCDR_20' ) end [2025-04-05 09:32:17] Production.INFO: ProcessCDR(1,14839283,1,1,2) [2025-04-05 09:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839283', 'tblTempUsageDetail_20' ) start [2025-04-05 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839283', 'tblTempUsageDetail_20' ) end [2025-04-05 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:32:21] Production.INFO: ==17807== Releasing lock... [2025-04-05 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:33:05 [end_date_ymd] => 2025-04-05 09:33:05 [RateCDR] => 1 ) [2025-04-05 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:33:05' and `end` < '2025-04-05 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:33:18] Production.INFO: count ==480 [2025-04-05 09:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:33:05 - End Time 2025-04-05 09:33:05 [2025-04-05 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839288', 'tblTempUsageDetail_20' ) start [2025-04-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839288', 'tblTempUsageDetail_20' ) end [2025-04-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839288', 'tblTempVendorCDR_20' ) start [2025-04-05 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839288', 'tblTempVendorCDR_20' ) end [2025-04-05 09:33:18] Production.INFO: ProcessCDR(1,14839288,1,1,2) [2025-04-05 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839288', 'tblTempUsageDetail_20' ) start [2025-04-05 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839288', 'tblTempUsageDetail_20' ) end [2025-04-05 09:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:33:21] Production.INFO: ==17883== Releasing lock... [2025-04-05 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-05 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:34:05 [end_date_ymd] => 2025-04-05 09:34:05 [RateCDR] => 1 ) [2025-04-05 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:34:05' and `end` < '2025-04-05 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:34:17] Production.INFO: count ==482 [2025-04-05 09:34:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:34:05 - End Time 2025-04-05 09:34:05 [2025-04-05 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839293', 'tblTempUsageDetail_20' ) start [2025-04-05 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839293', 'tblTempUsageDetail_20' ) end [2025-04-05 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839293', 'tblTempVendorCDR_20' ) start [2025-04-05 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839293', 'tblTempVendorCDR_20' ) end [2025-04-05 09:34:17] Production.INFO: ProcessCDR(1,14839293,1,1,2) [2025-04-05 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839293', 'tblTempUsageDetail_20' ) start [2025-04-05 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839293', 'tblTempUsageDetail_20' ) end [2025-04-05 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:34:22] Production.INFO: ==17967== Releasing lock... [2025-04-05 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:35:05 [end_date_ymd] => 2025-04-05 09:35:05 [RateCDR] => 1 ) [2025-04-05 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:35:05' and `end` < '2025-04-05 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:35:17] Production.INFO: count ==482 [2025-04-05 09:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:35:05 - End Time 2025-04-05 09:35:05 [2025-04-05 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839298', 'tblTempUsageDetail_20' ) start [2025-04-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839298', 'tblTempUsageDetail_20' ) end [2025-04-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839298', 'tblTempVendorCDR_20' ) start [2025-04-05 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839298', 'tblTempVendorCDR_20' ) end [2025-04-05 09:35:18] Production.INFO: ProcessCDR(1,14839298,1,1,2) [2025-04-05 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839298', 'tblTempUsageDetail_20' ) start [2025-04-05 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839298', 'tblTempUsageDetail_20' ) end [2025-04-05 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:35:21] Production.INFO: ==18042== Releasing lock... [2025-04-05 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:36:06 [end_date_ymd] => 2025-04-05 09:36:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:36:06' and `end` < '2025-04-05 09: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-04-05 09:36:19] Production.INFO: count ==482 [2025-04-05 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:36:06 - End Time 2025-04-05 09:36:06 [2025-04-05 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839303', 'tblTempUsageDetail_20' ) start [2025-04-05 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839303', 'tblTempUsageDetail_20' ) end [2025-04-05 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839303', 'tblTempVendorCDR_20' ) start [2025-04-05 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839303', 'tblTempVendorCDR_20' ) end [2025-04-05 09:36:19] Production.INFO: ProcessCDR(1,14839303,1,1,2) [2025-04-05 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839303', 'tblTempUsageDetail_20' ) start [2025-04-05 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839303', 'tblTempUsageDetail_20' ) end [2025-04-05 09:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:36:22] Production.INFO: ==18117== Releasing lock... [2025-04-05 09:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:37:04 [end_date_ymd] => 2025-04-05 09:37:04 [RateCDR] => 1 ) [2025-04-05 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:37:04' and `end` < '2025-04-05 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:37:17] Production.INFO: count ==494 [2025-04-05 09:37:17] Production.ERROR: pbx CDR StartTime 2025-04-05 06:37:04 - End Time 2025-04-05 09:37:04 [2025-04-05 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839308', 'tblTempUsageDetail_20' ) start [2025-04-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839308', 'tblTempUsageDetail_20' ) end [2025-04-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839308', 'tblTempVendorCDR_20' ) start [2025-04-05 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839308', 'tblTempVendorCDR_20' ) end [2025-04-05 09:37:17] Production.INFO: ProcessCDR(1,14839308,1,1,2) [2025-04-05 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839308', 'tblTempUsageDetail_20' ) start [2025-04-05 09:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839308', 'tblTempUsageDetail_20' ) end [2025-04-05 09:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:37:22] Production.INFO: ==18194== Releasing lock... [2025-04-05 09:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:37:22] Production.INFO: 32 MB #Memory Used# [2025-04-05 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:38:05 [end_date_ymd] => 2025-04-05 09:38:05 [RateCDR] => 1 ) [2025-04-05 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:38:05' and `end` < '2025-04-05 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:38:18] Production.INFO: count ==510 [2025-04-05 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:38:05 - End Time 2025-04-05 09:38:05 [2025-04-05 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839313', 'tblTempUsageDetail_20' ) start [2025-04-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839313', 'tblTempUsageDetail_20' ) end [2025-04-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839313', 'tblTempVendorCDR_20' ) start [2025-04-05 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839313', 'tblTempVendorCDR_20' ) end [2025-04-05 09:38:18] Production.INFO: ProcessCDR(1,14839313,1,1,2) [2025-04-05 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839313', 'tblTempUsageDetail_20' ) start [2025-04-05 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839313', 'tblTempUsageDetail_20' ) end [2025-04-05 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:38:23] Production.INFO: ==18269== Releasing lock... [2025-04-05 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:39:05 [end_date_ymd] => 2025-04-05 09:39:05 [RateCDR] => 1 ) [2025-04-05 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:39:05' and `end` < '2025-04-05 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:39:18] Production.INFO: count ==510 [2025-04-05 09:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:39:05 - End Time 2025-04-05 09:39:05 [2025-04-05 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839318', 'tblTempUsageDetail_20' ) start [2025-04-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839318', 'tblTempUsageDetail_20' ) end [2025-04-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839318', 'tblTempVendorCDR_20' ) start [2025-04-05 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839318', 'tblTempVendorCDR_20' ) end [2025-04-05 09:39:18] Production.INFO: ProcessCDR(1,14839318,1,1,2) [2025-04-05 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839318', 'tblTempUsageDetail_20' ) start [2025-04-05 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839318', 'tblTempUsageDetail_20' ) end [2025-04-05 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:39:21] Production.INFO: ==18345== Releasing lock... [2025-04-05 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:40:05 [end_date_ymd] => 2025-04-05 09:40:05 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:40:05' and `end` < '2025-04-05 09: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-04-05 09:40:18] Production.INFO: count ==523 [2025-04-05 09:40:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:40:05 - End Time 2025-04-05 09:40:05 [2025-04-05 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839323', 'tblTempUsageDetail_20' ) start [2025-04-05 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839323', 'tblTempUsageDetail_20' ) end [2025-04-05 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839323', 'tblTempVendorCDR_20' ) start [2025-04-05 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839323', 'tblTempVendorCDR_20' ) end [2025-04-05 09:40:18] Production.INFO: ProcessCDR(1,14839323,1,1,2) [2025-04-05 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839323', 'tblTempUsageDetail_20' ) start [2025-04-05 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839323', 'tblTempUsageDetail_20' ) end [2025-04-05 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:40:24] Production.INFO: ==18424== Releasing lock... [2025-04-05 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:40:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:41:05 [end_date_ymd] => 2025-04-05 09:41:05 [RateCDR] => 1 ) [2025-04-05 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:41:05' and `end` < '2025-04-05 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:41:18] Production.INFO: count ==536 [2025-04-05 09:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:41:05 - End Time 2025-04-05 09:41:05 [2025-04-05 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839329', 'tblTempUsageDetail_20' ) start [2025-04-05 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839329', 'tblTempUsageDetail_20' ) end [2025-04-05 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839329', 'tblTempVendorCDR_20' ) start [2025-04-05 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839329', 'tblTempVendorCDR_20' ) end [2025-04-05 09:41:18] Production.INFO: ProcessCDR(1,14839329,1,1,2) [2025-04-05 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839329', 'tblTempUsageDetail_20' ) start [2025-04-05 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839329', 'tblTempUsageDetail_20' ) end [2025-04-05 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:41:21] Production.INFO: ==18502== Releasing lock... [2025-04-05 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:41:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:42:05 [end_date_ymd] => 2025-04-05 09:42:05 [RateCDR] => 1 ) [2025-04-05 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:42:05' and `end` < '2025-04-05 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:42:18] Production.INFO: count ==540 [2025-04-05 09:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:42:05 - End Time 2025-04-05 09:42:05 [2025-04-05 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839334', 'tblTempUsageDetail_20' ) start [2025-04-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839334', 'tblTempUsageDetail_20' ) end [2025-04-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839334', 'tblTempVendorCDR_20' ) start [2025-04-05 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839334', 'tblTempVendorCDR_20' ) end [2025-04-05 09:42:18] Production.INFO: ProcessCDR(1,14839334,1,1,2) [2025-04-05 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839334', 'tblTempUsageDetail_20' ) start [2025-04-05 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839334', 'tblTempUsageDetail_20' ) end [2025-04-05 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:42:23] Production.INFO: ==18580== Releasing lock... [2025-04-05 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:43:05 [end_date_ymd] => 2025-04-05 09:43:05 [RateCDR] => 1 ) [2025-04-05 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:43:05' and `end` < '2025-04-05 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:43:18] Production.INFO: count ==541 [2025-04-05 09:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:43:05 - End Time 2025-04-05 09:43:05 [2025-04-05 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839339', 'tblTempUsageDetail_20' ) start [2025-04-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839339', 'tblTempUsageDetail_20' ) end [2025-04-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839339', 'tblTempVendorCDR_20' ) start [2025-04-05 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839339', 'tblTempVendorCDR_20' ) end [2025-04-05 09:43:18] Production.INFO: ProcessCDR(1,14839339,1,1,2) [2025-04-05 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839339', 'tblTempUsageDetail_20' ) start [2025-04-05 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839339', 'tblTempUsageDetail_20' ) end [2025-04-05 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:43:23] Production.INFO: ==18658== Releasing lock... [2025-04-05 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:44:05 [end_date_ymd] => 2025-04-05 09:44:05 [RateCDR] => 1 ) [2025-04-05 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:44:05' and `end` < '2025-04-05 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:44:18] Production.INFO: count ==544 [2025-04-05 09:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:44:05 - End Time 2025-04-05 09:44:05 [2025-04-05 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839344', 'tblTempUsageDetail_20' ) start [2025-04-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839344', 'tblTempUsageDetail_20' ) end [2025-04-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839344', 'tblTempVendorCDR_20' ) start [2025-04-05 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839344', 'tblTempVendorCDR_20' ) end [2025-04-05 09:44:18] Production.INFO: ProcessCDR(1,14839344,1,1,2) [2025-04-05 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839344', 'tblTempUsageDetail_20' ) start [2025-04-05 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839344', 'tblTempUsageDetail_20' ) end [2025-04-05 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:44:22] Production.INFO: ==18732== Releasing lock... [2025-04-05 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:45:06 [end_date_ymd] => 2025-04-05 09:45:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:45:06' and `end` < '2025-04-05 09: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-04-05 09:45:18] Production.INFO: count ==546 [2025-04-05 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:45:06 - End Time 2025-04-05 09:45:06 [2025-04-05 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839349', 'tblTempUsageDetail_20' ) start [2025-04-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839349', 'tblTempUsageDetail_20' ) end [2025-04-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839349', 'tblTempVendorCDR_20' ) start [2025-04-05 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839349', 'tblTempVendorCDR_20' ) end [2025-04-05 09:45:19] Production.INFO: ProcessCDR(1,14839349,1,1,2) [2025-04-05 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839349', 'tblTempUsageDetail_20' ) start [2025-04-05 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839349', 'tblTempUsageDetail_20' ) end [2025-04-05 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:45:22] Production.INFO: ==18813== Releasing lock... [2025-04-05 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:46:05 [end_date_ymd] => 2025-04-05 09:46:05 [RateCDR] => 1 ) [2025-04-05 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:46:05' and `end` < '2025-04-05 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:46:18] Production.INFO: count ==542 [2025-04-05 09:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:46:05 - End Time 2025-04-05 09:46:05 [2025-04-05 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839354', 'tblTempUsageDetail_20' ) start [2025-04-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839354', 'tblTempUsageDetail_20' ) end [2025-04-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839354', 'tblTempVendorCDR_20' ) start [2025-04-05 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839354', 'tblTempVendorCDR_20' ) end [2025-04-05 09:46:18] Production.INFO: ProcessCDR(1,14839354,1,1,2) [2025-04-05 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839354', 'tblTempUsageDetail_20' ) start [2025-04-05 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839354', 'tblTempUsageDetail_20' ) end [2025-04-05 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:46:22] Production.INFO: ==18925== Releasing lock... [2025-04-05 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:47:06 [end_date_ymd] => 2025-04-05 09:47:06 [RateCDR] => 1 ) [2025-04-05 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:47:06' and `end` < '2025-04-05 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:47:18] Production.INFO: count ==546 [2025-04-05 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:47:06 - End Time 2025-04-05 09:47:06 [2025-04-05 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839359', 'tblTempUsageDetail_20' ) start [2025-04-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839359', 'tblTempUsageDetail_20' ) end [2025-04-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839359', 'tblTempVendorCDR_20' ) start [2025-04-05 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839359', 'tblTempVendorCDR_20' ) end [2025-04-05 09:47:19] Production.INFO: ProcessCDR(1,14839359,1,1,2) [2025-04-05 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839359', 'tblTempUsageDetail_20' ) start [2025-04-05 09:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839359', 'tblTempUsageDetail_20' ) end [2025-04-05 09:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:47:22] Production.INFO: ==18997== Releasing lock... [2025-04-05 09:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:47:22] Production.INFO: 33 MB #Memory Used# [2025-04-05 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:48:05 [end_date_ymd] => 2025-04-05 09:48:05 [RateCDR] => 1 ) [2025-04-05 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:48:05' and `end` < '2025-04-05 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:48:18] Production.INFO: count ==548 [2025-04-05 09:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:48:05 - End Time 2025-04-05 09:48:05 [2025-04-05 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839364', 'tblTempUsageDetail_20' ) start [2025-04-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839364', 'tblTempUsageDetail_20' ) end [2025-04-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839364', 'tblTempVendorCDR_20' ) start [2025-04-05 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839364', 'tblTempVendorCDR_20' ) end [2025-04-05 09:48:18] Production.INFO: ProcessCDR(1,14839364,1,1,2) [2025-04-05 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839364', 'tblTempUsageDetail_20' ) start [2025-04-05 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839364', 'tblTempUsageDetail_20' ) end [2025-04-05 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:48:21] Production.INFO: ==19072== Releasing lock... [2025-04-05 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:48:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:49:05 [end_date_ymd] => 2025-04-05 09:49:05 [RateCDR] => 1 ) [2025-04-05 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:49:05' and `end` < '2025-04-05 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:49:18] Production.INFO: count ==551 [2025-04-05 09:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:49:05 - End Time 2025-04-05 09:49:05 [2025-04-05 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839369', 'tblTempUsageDetail_20' ) start [2025-04-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839369', 'tblTempUsageDetail_20' ) end [2025-04-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839369', 'tblTempVendorCDR_20' ) start [2025-04-05 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839369', 'tblTempVendorCDR_20' ) end [2025-04-05 09:49:18] Production.INFO: ProcessCDR(1,14839369,1,1,2) [2025-04-05 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839369', 'tblTempUsageDetail_20' ) start [2025-04-05 09:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839369', 'tblTempUsageDetail_20' ) end [2025-04-05 09:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:49:21] Production.INFO: ==19169== Releasing lock... [2025-04-05 09:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:49:21] Production.INFO: 33 MB #Memory Used# [2025-04-05 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:50:06 [end_date_ymd] => 2025-04-05 09:50:06 [RateCDR] => 1 ) [2025-04-05 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:50:06' and `end` < '2025-04-05 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:50:19] Production.INFO: count ==565 [2025-04-05 09:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:50:06 - End Time 2025-04-05 09:50:06 [2025-04-05 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839374', 'tblTempUsageDetail_20' ) start [2025-04-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839374', 'tblTempUsageDetail_20' ) end [2025-04-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839374', 'tblTempVendorCDR_20' ) start [2025-04-05 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839374', 'tblTempVendorCDR_20' ) end [2025-04-05 09:50:19] Production.INFO: ProcessCDR(1,14839374,1,1,2) [2025-04-05 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839374', 'tblTempUsageDetail_20' ) start [2025-04-05 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839374', 'tblTempUsageDetail_20' ) end [2025-04-05 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:50:23] Production.INFO: ==19273== Releasing lock... [2025-04-05 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:51:06 [end_date_ymd] => 2025-04-05 09:51:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:51:06' and `end` < '2025-04-05 09: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-04-05 09:51:18] Production.INFO: count ==565 [2025-04-05 09:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:51:06 - End Time 2025-04-05 09:51:06 [2025-04-05 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839380', 'tblTempUsageDetail_20' ) start [2025-04-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839380', 'tblTempUsageDetail_20' ) end [2025-04-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839380', 'tblTempVendorCDR_20' ) start [2025-04-05 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839380', 'tblTempVendorCDR_20' ) end [2025-04-05 09:51:19] Production.INFO: ProcessCDR(1,14839380,1,1,2) [2025-04-05 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839380', 'tblTempUsageDetail_20' ) start [2025-04-05 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839380', 'tblTempUsageDetail_20' ) end [2025-04-05 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:51:22] Production.INFO: ==19376== Releasing lock... [2025-04-05 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:51:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:52:05 [end_date_ymd] => 2025-04-05 09:52:05 [RateCDR] => 1 ) [2025-04-05 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:52:05' and `end` < '2025-04-05 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:52:18] Production.INFO: count ==565 [2025-04-05 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:52:05 - End Time 2025-04-05 09:52:05 [2025-04-05 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839385', 'tblTempUsageDetail_20' ) start [2025-04-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839385', 'tblTempUsageDetail_20' ) end [2025-04-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839385', 'tblTempVendorCDR_20' ) start [2025-04-05 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839385', 'tblTempVendorCDR_20' ) end [2025-04-05 09:52:18] Production.INFO: ProcessCDR(1,14839385,1,1,2) [2025-04-05 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839385', 'tblTempUsageDetail_20' ) start [2025-04-05 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839385', 'tblTempUsageDetail_20' ) end [2025-04-05 09:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:52:21] Production.INFO: ==19467== Releasing lock... [2025-04-05 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:53:05 [end_date_ymd] => 2025-04-05 09:53:05 [RateCDR] => 1 ) [2025-04-05 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:53:05' and `end` < '2025-04-05 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:53:18] Production.INFO: count ==578 [2025-04-05 09:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:53:05 - End Time 2025-04-05 09:53:05 [2025-04-05 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839390', 'tblTempUsageDetail_20' ) start [2025-04-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839390', 'tblTempUsageDetail_20' ) end [2025-04-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839390', 'tblTempVendorCDR_20' ) start [2025-04-05 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839390', 'tblTempVendorCDR_20' ) end [2025-04-05 09:53:18] Production.INFO: ProcessCDR(1,14839390,1,1,2) [2025-04-05 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839390', 'tblTempUsageDetail_20' ) start [2025-04-05 09:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839390', 'tblTempUsageDetail_20' ) end [2025-04-05 09:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:53:22] Production.INFO: ==19543== Releasing lock... [2025-04-05 09:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:54:05 [end_date_ymd] => 2025-04-05 09:54:05 [RateCDR] => 1 ) [2025-04-05 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:54:05' and `end` < '2025-04-05 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:54:18] Production.INFO: count ==585 [2025-04-05 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:54:05 - End Time 2025-04-05 09:54:05 [2025-04-05 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839395', 'tblTempUsageDetail_20' ) start [2025-04-05 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839395', 'tblTempUsageDetail_20' ) end [2025-04-05 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839395', 'tblTempVendorCDR_20' ) start [2025-04-05 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839395', 'tblTempVendorCDR_20' ) end [2025-04-05 09:54:18] Production.INFO: ProcessCDR(1,14839395,1,1,2) [2025-04-05 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839395', 'tblTempUsageDetail_20' ) start [2025-04-05 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839395', 'tblTempUsageDetail_20' ) end [2025-04-05 09:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:54:21] Production.INFO: ==19621== Releasing lock... [2025-04-05 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:54:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:55:05 [end_date_ymd] => 2025-04-05 09:55:05 [RateCDR] => 1 ) [2025-04-05 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:55:05' and `end` < '2025-04-05 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:55:18] Production.INFO: count ==586 [2025-04-05 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:55:05 - End Time 2025-04-05 09:55:05 [2025-04-05 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839400', 'tblTempUsageDetail_20' ) start [2025-04-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839400', 'tblTempUsageDetail_20' ) end [2025-04-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839400', 'tblTempVendorCDR_20' ) start [2025-04-05 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839400', 'tblTempVendorCDR_20' ) end [2025-04-05 09:55:18] Production.INFO: ProcessCDR(1,14839400,1,1,2) [2025-04-05 09:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839400', 'tblTempUsageDetail_20' ) start [2025-04-05 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839400', 'tblTempUsageDetail_20' ) end [2025-04-05 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:55:23] Production.INFO: ==19698== Releasing lock... [2025-04-05 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:56:05 [end_date_ymd] => 2025-04-05 09:56:05 [RateCDR] => 1 ) [2025-04-05 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:56:05' and `end` < '2025-04-05 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:56:18] Production.INFO: count ==586 [2025-04-05 09:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:56:05 - End Time 2025-04-05 09:56:05 [2025-04-05 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839405', 'tblTempUsageDetail_20' ) start [2025-04-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839405', 'tblTempUsageDetail_20' ) end [2025-04-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839405', 'tblTempVendorCDR_20' ) start [2025-04-05 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839405', 'tblTempVendorCDR_20' ) end [2025-04-05 09:56:18] Production.INFO: ProcessCDR(1,14839405,1,1,2) [2025-04-05 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839405', 'tblTempUsageDetail_20' ) start [2025-04-05 09:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839405', 'tblTempUsageDetail_20' ) end [2025-04-05 09:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:56:21] Production.INFO: ==19772== Releasing lock... [2025-04-05 09:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:57:05 [end_date_ymd] => 2025-04-05 09:57:05 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:57:05' and `end` < '2025-04-05 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:57:18] Production.INFO: count ==596 [2025-04-05 09:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:57:05 - End Time 2025-04-05 09:57:05 [2025-04-05 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839410', 'tblTempUsageDetail_20' ) start [2025-04-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839410', 'tblTempUsageDetail_20' ) end [2025-04-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839410', 'tblTempVendorCDR_20' ) start [2025-04-05 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839410', 'tblTempVendorCDR_20' ) end [2025-04-05 09:57:18] Production.INFO: ProcessCDR(1,14839410,1,1,2) [2025-04-05 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839410', 'tblTempUsageDetail_20' ) start [2025-04-05 09:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839410', 'tblTempUsageDetail_20' ) end [2025-04-05 09:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:57:22] Production.INFO: ==19852== Releasing lock... [2025-04-05 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:58:06 [end_date_ymd] => 2025-04-05 09:58:06 [RateCDR] => 1 ) [2025-04-05 09: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-04-05 06:58:06' and `end` < '2025-04-05 09: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-04-05 09:58:18] Production.INFO: count ==601 [2025-04-05 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 06:58:06 - End Time 2025-04-05 09:58:06 [2025-04-05 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839415', 'tblTempUsageDetail_20' ) start [2025-04-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839415', 'tblTempUsageDetail_20' ) end [2025-04-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839415', 'tblTempVendorCDR_20' ) start [2025-04-05 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839415', 'tblTempVendorCDR_20' ) end [2025-04-05 09:58:19] Production.INFO: ProcessCDR(1,14839415,1,1,2) [2025-04-05 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839415', 'tblTempUsageDetail_20' ) start [2025-04-05 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839415', 'tblTempUsageDetail_20' ) end [2025-04-05 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:58:24] Production.INFO: ==19927== Releasing lock... [2025-04-05 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 06:59:05 [end_date_ymd] => 2025-04-05 09:59:05 [RateCDR] => 1 ) [2025-04-05 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 06:59:05' and `end` < '2025-04-05 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 09:59:18] Production.INFO: count ==601 [2025-04-05 09:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 06:59:05 - End Time 2025-04-05 09:59:05 [2025-04-05 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839420', 'tblTempUsageDetail_20' ) start [2025-04-05 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839420', 'tblTempUsageDetail_20' ) end [2025-04-05 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839420', 'tblTempVendorCDR_20' ) start [2025-04-05 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839420', 'tblTempVendorCDR_20' ) end [2025-04-05 09:59:18] Production.INFO: ProcessCDR(1,14839420,1,1,2) [2025-04-05 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839420', 'tblTempUsageDetail_20' ) start [2025-04-05 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839420', 'tblTempUsageDetail_20' ) end [2025-04-05 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 09:59:22] Production.INFO: ==20004== Releasing lock... [2025-04-05 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 09:59:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:00:06 [end_date_ymd] => 2025-04-05 10:00:06 [RateCDR] => 1 ) [2025-04-05 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:00:06' and `end` < '2025-04-05 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:00:19] Production.INFO: count ==595 [2025-04-05 10:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:00:06 - End Time 2025-04-05 10:00:06 [2025-04-05 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839426', 'tblTempUsageDetail_20' ) start [2025-04-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839426', 'tblTempUsageDetail_20' ) end [2025-04-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839426', 'tblTempVendorCDR_20' ) start [2025-04-05 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839426', 'tblTempVendorCDR_20' ) end [2025-04-05 10:00:19] Production.INFO: ProcessCDR(1,14839426,1,1,2) [2025-04-05 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839426', 'tblTempUsageDetail_20' ) start [2025-04-05 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839426', 'tblTempUsageDetail_20' ) end [2025-04-05 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:00:24] Production.INFO: ==20084== Releasing lock... [2025-04-05 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:00:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:01:05 [end_date_ymd] => 2025-04-05 10:01:05 [RateCDR] => 1 ) [2025-04-05 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:01:05' and `end` < '2025-04-05 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:01:17] Production.INFO: count ==590 [2025-04-05 10:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:01:05 - End Time 2025-04-05 10:01:05 [2025-04-05 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839431', 'tblTempUsageDetail_20' ) start [2025-04-05 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839431', 'tblTempUsageDetail_20' ) end [2025-04-05 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839431', 'tblTempVendorCDR_20' ) start [2025-04-05 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839431', 'tblTempVendorCDR_20' ) end [2025-04-05 10:01:18] Production.INFO: ProcessCDR(1,14839431,1,1,2) [2025-04-05 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839431', 'tblTempUsageDetail_20' ) start [2025-04-05 10:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839431', 'tblTempUsageDetail_20' ) end [2025-04-05 10:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:01:22] Production.INFO: ==20209== Releasing lock... [2025-04-05 10:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:02:06 [end_date_ymd] => 2025-04-05 10:02:06 [RateCDR] => 1 ) [2025-04-05 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:02:06' and `end` < '2025-04-05 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:02:19] Production.INFO: count ==581 [2025-04-05 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:02:06 - End Time 2025-04-05 10:02:06 [2025-04-05 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839436', 'tblTempUsageDetail_20' ) start [2025-04-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839436', 'tblTempUsageDetail_20' ) end [2025-04-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839436', 'tblTempVendorCDR_20' ) start [2025-04-05 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839436', 'tblTempVendorCDR_20' ) end [2025-04-05 10:02:19] Production.INFO: ProcessCDR(1,14839436,1,1,2) [2025-04-05 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839436', 'tblTempUsageDetail_20' ) start [2025-04-05 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839436', 'tblTempUsageDetail_20' ) end [2025-04-05 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:02:24] Production.INFO: ==20284== Releasing lock... [2025-04-05 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:02:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:03:05 [end_date_ymd] => 2025-04-05 10:03:05 [RateCDR] => 1 ) [2025-04-05 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:03:05' and `end` < '2025-04-05 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:03:18] Production.INFO: count ==590 [2025-04-05 10:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:03:05 - End Time 2025-04-05 10:03:05 [2025-04-05 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839441', 'tblTempUsageDetail_20' ) start [2025-04-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839441', 'tblTempUsageDetail_20' ) end [2025-04-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839441', 'tblTempVendorCDR_20' ) start [2025-04-05 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839441', 'tblTempVendorCDR_20' ) end [2025-04-05 10:03:18] Production.INFO: ProcessCDR(1,14839441,1,1,2) [2025-04-05 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839441', 'tblTempUsageDetail_20' ) start [2025-04-05 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839441', 'tblTempUsageDetail_20' ) end [2025-04-05 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:03:23] Production.INFO: ==20358== Releasing lock... [2025-04-05 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:03:23] Production.INFO: 33 MB #Memory Used# [2025-04-05 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:04:06 [end_date_ymd] => 2025-04-05 10:04:06 [RateCDR] => 1 ) [2025-04-05 10:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:04:06' and `end` < '2025-04-05 10:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:04:19] Production.INFO: count ==594 [2025-04-05 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:04:06 - End Time 2025-04-05 10:04:06 [2025-04-05 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839446', 'tblTempUsageDetail_20' ) start [2025-04-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839446', 'tblTempUsageDetail_20' ) end [2025-04-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839446', 'tblTempVendorCDR_20' ) start [2025-04-05 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839446', 'tblTempVendorCDR_20' ) end [2025-04-05 10:04:19] Production.INFO: ProcessCDR(1,14839446,1,1,2) [2025-04-05 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839446', 'tblTempUsageDetail_20' ) start [2025-04-05 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839446', 'tblTempUsageDetail_20' ) end [2025-04-05 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:04:24] Production.INFO: ==20435== Releasing lock... [2025-04-05 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:04:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:05:05 [end_date_ymd] => 2025-04-05 10:05:05 [RateCDR] => 1 ) [2025-04-05 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:05:05' and `end` < '2025-04-05 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:05:18] Production.INFO: count ==597 [2025-04-05 10:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:05:05 - End Time 2025-04-05 10:05:05 [2025-04-05 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839451', 'tblTempUsageDetail_20' ) start [2025-04-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839451', 'tblTempUsageDetail_20' ) end [2025-04-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839451', 'tblTempVendorCDR_20' ) start [2025-04-05 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839451', 'tblTempVendorCDR_20' ) end [2025-04-05 10:05:18] Production.INFO: ProcessCDR(1,14839451,1,1,2) [2025-04-05 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839451', 'tblTempUsageDetail_20' ) start [2025-04-05 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839451', 'tblTempUsageDetail_20' ) end [2025-04-05 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:05:23] Production.INFO: ==20510== Releasing lock... [2025-04-05 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:05:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-05 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:06:05 [end_date_ymd] => 2025-04-05 10:06:05 [RateCDR] => 1 ) [2025-04-05 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:06:05' and `end` < '2025-04-05 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:06:18] Production.INFO: count ==599 [2025-04-05 10:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:06:05 - End Time 2025-04-05 10:06:05 [2025-04-05 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839456', 'tblTempUsageDetail_20' ) start [2025-04-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839456', 'tblTempUsageDetail_20' ) end [2025-04-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839456', 'tblTempVendorCDR_20' ) start [2025-04-05 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839456', 'tblTempVendorCDR_20' ) end [2025-04-05 10:06:18] Production.INFO: ProcessCDR(1,14839456,1,1,2) [2025-04-05 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839456', 'tblTempUsageDetail_20' ) start [2025-04-05 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839456', 'tblTempUsageDetail_20' ) end [2025-04-05 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:06:24] Production.INFO: ==20586== Releasing lock... [2025-04-05 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:06:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-05 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:07:05 [end_date_ymd] => 2025-04-05 10:07:05 [RateCDR] => 1 ) [2025-04-05 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:07:05' and `end` < '2025-04-05 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:07:18] Production.INFO: count ==608 [2025-04-05 10:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:07:05 - End Time 2025-04-05 10:07:05 [2025-04-05 10:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839461', 'tblTempUsageDetail_20' ) start [2025-04-05 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839461', 'tblTempUsageDetail_20' ) end [2025-04-05 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839461', 'tblTempVendorCDR_20' ) start [2025-04-05 10:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839461', 'tblTempVendorCDR_20' ) end [2025-04-05 10:07:18] Production.INFO: ProcessCDR(1,14839461,1,1,2) [2025-04-05 10:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839461', 'tblTempUsageDetail_20' ) start [2025-04-05 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839461', 'tblTempUsageDetail_20' ) end [2025-04-05 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:07:23] Production.INFO: ==20658== Releasing lock... [2025-04-05 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:07:23] Production.INFO: 33 MB #Memory Used# [2025-04-05 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:08:06 [end_date_ymd] => 2025-04-05 10:08:06 [RateCDR] => 1 ) [2025-04-05 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:08:06' and `end` < '2025-04-05 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:08:18] Production.INFO: count ==610 [2025-04-05 10:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:08:06 - End Time 2025-04-05 10:08:06 [2025-04-05 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839466', 'tblTempUsageDetail_20' ) start [2025-04-05 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839466', 'tblTempUsageDetail_20' ) end [2025-04-05 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839466', 'tblTempVendorCDR_20' ) start [2025-04-05 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839466', 'tblTempVendorCDR_20' ) end [2025-04-05 10:08:19] Production.INFO: ProcessCDR(1,14839466,1,1,2) [2025-04-05 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839466', 'tblTempUsageDetail_20' ) start [2025-04-05 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839466', 'tblTempUsageDetail_20' ) end [2025-04-05 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:08:23] Production.INFO: ==20737== Releasing lock... [2025-04-05 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:08:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:09:05 [end_date_ymd] => 2025-04-05 10:09:05 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:09:05' and `end` < '2025-04-05 10: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-04-05 10:09:18] Production.INFO: count ==622 [2025-04-05 10:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:09:05 - End Time 2025-04-05 10:09:05 [2025-04-05 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839471', 'tblTempUsageDetail_20' ) start [2025-04-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839471', 'tblTempUsageDetail_20' ) end [2025-04-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839471', 'tblTempVendorCDR_20' ) start [2025-04-05 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839471', 'tblTempVendorCDR_20' ) end [2025-04-05 10:09:18] Production.INFO: ProcessCDR(1,14839471,1,1,2) [2025-04-05 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839471', 'tblTempUsageDetail_20' ) start [2025-04-05 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839471', 'tblTempUsageDetail_20' ) end [2025-04-05 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:09:23] Production.INFO: ==20815== Releasing lock... [2025-04-05 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:09:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:10:06 [end_date_ymd] => 2025-04-05 10:10:06 [RateCDR] => 1 ) [2025-04-05 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:10:06' and `end` < '2025-04-05 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:10:19] Production.INFO: count ==642 [2025-04-05 10:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:10:06 - End Time 2025-04-05 10:10:06 [2025-04-05 10:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839476', 'tblTempUsageDetail_20' ) start [2025-04-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839476', 'tblTempUsageDetail_20' ) end [2025-04-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839476', 'tblTempVendorCDR_20' ) start [2025-04-05 10:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839476', 'tblTempVendorCDR_20' ) end [2025-04-05 10:10:19] Production.INFO: ProcessCDR(1,14839476,1,1,2) [2025-04-05 10:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839476', 'tblTempUsageDetail_20' ) start [2025-04-05 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839476', 'tblTempUsageDetail_20' ) end [2025-04-05 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:10:24] Production.INFO: ==20891== Releasing lock... [2025-04-05 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:10:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:11:05 [end_date_ymd] => 2025-04-05 10:11:05 [RateCDR] => 1 ) [2025-04-05 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:11:05' and `end` < '2025-04-05 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:11:17] Production.INFO: count ==683 [2025-04-05 10:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:11:05 - End Time 2025-04-05 10:11:05 [2025-04-05 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839482', 'tblTempUsageDetail_20' ) start [2025-04-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839482', 'tblTempUsageDetail_20' ) end [2025-04-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839482', 'tblTempVendorCDR_20' ) start [2025-04-05 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839482', 'tblTempVendorCDR_20' ) end [2025-04-05 10:11:18] Production.INFO: ProcessCDR(1,14839482,1,1,2) [2025-04-05 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839482', 'tblTempUsageDetail_20' ) start [2025-04-05 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839482', 'tblTempUsageDetail_20' ) end [2025-04-05 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:11:21] Production.INFO: ==20970== Releasing lock... [2025-04-05 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:12:05 [end_date_ymd] => 2025-04-05 10:12:05 [RateCDR] => 1 ) [2025-04-05 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:12:05' and `end` < '2025-04-05 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:12:18] Production.INFO: count ==687 [2025-04-05 10:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:12:05 - End Time 2025-04-05 10:12:05 [2025-04-05 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839487', 'tblTempUsageDetail_20' ) start [2025-04-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839487', 'tblTempUsageDetail_20' ) end [2025-04-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839487', 'tblTempVendorCDR_20' ) start [2025-04-05 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839487', 'tblTempVendorCDR_20' ) end [2025-04-05 10:12:18] Production.INFO: ProcessCDR(1,14839487,1,1,2) [2025-04-05 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839487', 'tblTempUsageDetail_20' ) start [2025-04-05 10:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839487', 'tblTempUsageDetail_20' ) end [2025-04-05 10:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:12:22] Production.INFO: ==21047== Releasing lock... [2025-04-05 10:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:12:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:13:05 [end_date_ymd] => 2025-04-05 10:13:05 [RateCDR] => 1 ) [2025-04-05 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:13:05' and `end` < '2025-04-05 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:13:18] Production.INFO: count ==688 [2025-04-05 10:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:13:05 - End Time 2025-04-05 10:13:05 [2025-04-05 10:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839492', 'tblTempUsageDetail_20' ) start [2025-04-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839492', 'tblTempUsageDetail_20' ) end [2025-04-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839492', 'tblTempVendorCDR_20' ) start [2025-04-05 10:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839492', 'tblTempVendorCDR_20' ) end [2025-04-05 10:13:18] Production.INFO: ProcessCDR(1,14839492,1,1,2) [2025-04-05 10:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839492', 'tblTempUsageDetail_20' ) start [2025-04-05 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839492', 'tblTempUsageDetail_20' ) end [2025-04-05 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:13:23] Production.INFO: ==21130== Releasing lock... [2025-04-05 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:13:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:14:05 [end_date_ymd] => 2025-04-05 10:14:05 [RateCDR] => 1 ) [2025-04-05 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:14:05' and `end` < '2025-04-05 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:14:18] Production.INFO: count ==688 [2025-04-05 10:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:14:05 - End Time 2025-04-05 10:14:05 [2025-04-05 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839497', 'tblTempUsageDetail_20' ) start [2025-04-05 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839497', 'tblTempUsageDetail_20' ) end [2025-04-05 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839497', 'tblTempVendorCDR_20' ) start [2025-04-05 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839497', 'tblTempVendorCDR_20' ) end [2025-04-05 10:14:18] Production.INFO: ProcessCDR(1,14839497,1,1,2) [2025-04-05 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839497', 'tblTempUsageDetail_20' ) start [2025-04-05 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839497', 'tblTempUsageDetail_20' ) end [2025-04-05 10:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:14:21] Production.INFO: ==21209== Releasing lock... [2025-04-05 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:14:21] Production.INFO: 33 MB #Memory Used# [2025-04-05 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:15:05 [end_date_ymd] => 2025-04-05 10:15:05 [RateCDR] => 1 ) [2025-04-05 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:15:05' and `end` < '2025-04-05 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:15:18] Production.INFO: count ==687 [2025-04-05 10:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:15:05 - End Time 2025-04-05 10:15:05 [2025-04-05 10:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839502', 'tblTempUsageDetail_20' ) start [2025-04-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839502', 'tblTempUsageDetail_20' ) end [2025-04-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839502', 'tblTempVendorCDR_20' ) start [2025-04-05 10:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839502', 'tblTempVendorCDR_20' ) end [2025-04-05 10:15:18] Production.INFO: ProcessCDR(1,14839502,1,1,2) [2025-04-05 10:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839502', 'tblTempUsageDetail_20' ) start [2025-04-05 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839502', 'tblTempUsageDetail_20' ) end [2025-04-05 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:15:21] Production.INFO: ==21286== Releasing lock... [2025-04-05 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:16:05 [end_date_ymd] => 2025-04-05 10:16:05 [RateCDR] => 1 ) [2025-04-05 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:16:05' and `end` < '2025-04-05 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:16:18] Production.INFO: count ==691 [2025-04-05 10:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:16:05 - End Time 2025-04-05 10:16:05 [2025-04-05 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839507', 'tblTempUsageDetail_20' ) start [2025-04-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839507', 'tblTempUsageDetail_20' ) end [2025-04-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839507', 'tblTempVendorCDR_20' ) start [2025-04-05 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839507', 'tblTempVendorCDR_20' ) end [2025-04-05 10:16:18] Production.INFO: ProcessCDR(1,14839507,1,1,2) [2025-04-05 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839507', 'tblTempUsageDetail_20' ) start [2025-04-05 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839507', 'tblTempUsageDetail_20' ) end [2025-04-05 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:16:23] Production.INFO: ==21360== Releasing lock... [2025-04-05 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:16:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:17:05 [end_date_ymd] => 2025-04-05 10:17:05 [RateCDR] => 1 ) [2025-04-05 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:17:05' and `end` < '2025-04-05 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:17:17] Production.INFO: count ==691 [2025-04-05 10:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:17:05 - End Time 2025-04-05 10:17:05 [2025-04-05 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839512', 'tblTempUsageDetail_20' ) start [2025-04-05 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839512', 'tblTempUsageDetail_20' ) end [2025-04-05 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839512', 'tblTempVendorCDR_20' ) start [2025-04-05 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839512', 'tblTempVendorCDR_20' ) end [2025-04-05 10:17:18] Production.INFO: ProcessCDR(1,14839512,1,1,2) [2025-04-05 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839512', 'tblTempUsageDetail_20' ) start [2025-04-05 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839512', 'tblTempUsageDetail_20' ) end [2025-04-05 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:17:21] Production.INFO: ==21474== Releasing lock... [2025-04-05 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:18:05 [end_date_ymd] => 2025-04-05 10:18:05 [RateCDR] => 1 ) [2025-04-05 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:18:05' and `end` < '2025-04-05 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:18:18] Production.INFO: count ==692 [2025-04-05 10:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:18:05 - End Time 2025-04-05 10:18:05 [2025-04-05 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839517', 'tblTempUsageDetail_20' ) start [2025-04-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839517', 'tblTempUsageDetail_20' ) end [2025-04-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839517', 'tblTempVendorCDR_20' ) start [2025-04-05 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839517', 'tblTempVendorCDR_20' ) end [2025-04-05 10:18:18] Production.INFO: ProcessCDR(1,14839517,1,1,2) [2025-04-05 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839517', 'tblTempUsageDetail_20' ) start [2025-04-05 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839517', 'tblTempUsageDetail_20' ) end [2025-04-05 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:18:23] Production.INFO: ==21553== Releasing lock... [2025-04-05 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:18:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:19:06 [end_date_ymd] => 2025-04-05 10:19:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:19:06' and `end` < '2025-04-05 10: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-04-05 10:19:19] Production.INFO: count ==693 [2025-04-05 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:19:06 - End Time 2025-04-05 10:19:06 [2025-04-05 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839522', 'tblTempUsageDetail_20' ) start [2025-04-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839522', 'tblTempUsageDetail_20' ) end [2025-04-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839522', 'tblTempVendorCDR_20' ) start [2025-04-05 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839522', 'tblTempVendorCDR_20' ) end [2025-04-05 10:19:19] Production.INFO: ProcessCDR(1,14839522,1,1,2) [2025-04-05 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839522', 'tblTempUsageDetail_20' ) start [2025-04-05 10:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839522', 'tblTempUsageDetail_20' ) end [2025-04-05 10:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:19:22] Production.INFO: ==21626== Releasing lock... [2025-04-05 10:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:19:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:20:06 [end_date_ymd] => 2025-04-05 10:20:06 [RateCDR] => 1 ) [2025-04-05 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:20:06' and `end` < '2025-04-05 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:20:19] Production.INFO: count ==704 [2025-04-05 10:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:20:06 - End Time 2025-04-05 10:20:06 [2025-04-05 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839528', 'tblTempUsageDetail_20' ) start [2025-04-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839528', 'tblTempUsageDetail_20' ) end [2025-04-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839528', 'tblTempVendorCDR_20' ) start [2025-04-05 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839528', 'tblTempVendorCDR_20' ) end [2025-04-05 10:20:19] Production.INFO: ProcessCDR(1,14839528,1,1,2) [2025-04-05 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839528', 'tblTempUsageDetail_20' ) start [2025-04-05 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839528', 'tblTempUsageDetail_20' ) end [2025-04-05 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:20:24] Production.INFO: ==21702== Releasing lock... [2025-04-05 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:20:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:21:06 [end_date_ymd] => 2025-04-05 10:21:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:21:06' and `end` < '2025-04-05 10: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-04-05 10:21:19] Production.INFO: count ==724 [2025-04-05 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:21:06 - End Time 2025-04-05 10:21:06 [2025-04-05 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839533', 'tblTempUsageDetail_20' ) start [2025-04-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839533', 'tblTempUsageDetail_20' ) end [2025-04-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839533', 'tblTempVendorCDR_20' ) start [2025-04-05 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839533', 'tblTempVendorCDR_20' ) end [2025-04-05 10:21:19] Production.INFO: ProcessCDR(1,14839533,1,1,2) [2025-04-05 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839533', 'tblTempUsageDetail_20' ) start [2025-04-05 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839533', 'tblTempUsageDetail_20' ) end [2025-04-05 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:21:22] Production.INFO: ==21782== Releasing lock... [2025-04-05 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:21:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:22:05 [end_date_ymd] => 2025-04-05 10:22:05 [RateCDR] => 1 ) [2025-04-05 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:22:05' and `end` < '2025-04-05 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:22:18] Production.INFO: count ==725 [2025-04-05 10:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:22:05 - End Time 2025-04-05 10:22:05 [2025-04-05 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839538', 'tblTempUsageDetail_20' ) start [2025-04-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839538', 'tblTempUsageDetail_20' ) end [2025-04-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839538', 'tblTempVendorCDR_20' ) start [2025-04-05 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839538', 'tblTempVendorCDR_20' ) end [2025-04-05 10:22:18] Production.INFO: ProcessCDR(1,14839538,1,1,2) [2025-04-05 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839538', 'tblTempUsageDetail_20' ) start [2025-04-05 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839538', 'tblTempUsageDetail_20' ) end [2025-04-05 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:22:23] Production.INFO: ==21859== Releasing lock... [2025-04-05 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:22:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:23:06 [end_date_ymd] => 2025-04-05 10:23:06 [RateCDR] => 1 ) [2025-04-05 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:23:06' and `end` < '2025-04-05 10:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:23:19] Production.INFO: count ==725 [2025-04-05 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:23:06 - End Time 2025-04-05 10:23:06 [2025-04-05 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839543', 'tblTempUsageDetail_20' ) start [2025-04-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839543', 'tblTempUsageDetail_20' ) end [2025-04-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839543', 'tblTempVendorCDR_20' ) start [2025-04-05 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839543', 'tblTempVendorCDR_20' ) end [2025-04-05 10:23:19] Production.INFO: ProcessCDR(1,14839543,1,1,2) [2025-04-05 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839543', 'tblTempUsageDetail_20' ) start [2025-04-05 10:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839543', 'tblTempUsageDetail_20' ) end [2025-04-05 10:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:23:22] Production.INFO: ==21935== Releasing lock... [2025-04-05 10:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:23:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-05 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:24:05 [end_date_ymd] => 2025-04-05 10:24:05 [RateCDR] => 1 ) [2025-04-05 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:24:05' and `end` < '2025-04-05 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:24:18] Production.INFO: count ==726 [2025-04-05 10:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:24:05 - End Time 2025-04-05 10:24:05 [2025-04-05 10:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839548', 'tblTempUsageDetail_20' ) start [2025-04-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839548', 'tblTempUsageDetail_20' ) end [2025-04-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839548', 'tblTempVendorCDR_20' ) start [2025-04-05 10:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839548', 'tblTempVendorCDR_20' ) end [2025-04-05 10:24:18] Production.INFO: ProcessCDR(1,14839548,1,1,2) [2025-04-05 10:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839548', 'tblTempUsageDetail_20' ) start [2025-04-05 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839548', 'tblTempUsageDetail_20' ) end [2025-04-05 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:24:23] Production.INFO: ==22006== Releasing lock... [2025-04-05 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:24:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:25:05 [end_date_ymd] => 2025-04-05 10:25:05 [RateCDR] => 1 ) [2025-04-05 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:25:05' and `end` < '2025-04-05 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:25:18] Production.INFO: count ==726 [2025-04-05 10:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:25:05 - End Time 2025-04-05 10:25:05 [2025-04-05 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839553', 'tblTempUsageDetail_20' ) start [2025-04-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839553', 'tblTempUsageDetail_20' ) end [2025-04-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839553', 'tblTempVendorCDR_20' ) start [2025-04-05 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839553', 'tblTempVendorCDR_20' ) end [2025-04-05 10:25:18] Production.INFO: ProcessCDR(1,14839553,1,1,2) [2025-04-05 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839553', 'tblTempUsageDetail_20' ) start [2025-04-05 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839553', 'tblTempUsageDetail_20' ) end [2025-04-05 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:25:21] Production.INFO: ==22077== Releasing lock... [2025-04-05 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:25:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:26:05 [end_date_ymd] => 2025-04-05 10:26:05 [RateCDR] => 1 ) [2025-04-05 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:26:05' and `end` < '2025-04-05 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:26:18] Production.INFO: count ==726 [2025-04-05 10:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:26:05 - End Time 2025-04-05 10:26:05 [2025-04-05 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839558', 'tblTempUsageDetail_20' ) start [2025-04-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839558', 'tblTempUsageDetail_20' ) end [2025-04-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839558', 'tblTempVendorCDR_20' ) start [2025-04-05 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839558', 'tblTempVendorCDR_20' ) end [2025-04-05 10:26:18] Production.INFO: ProcessCDR(1,14839558,1,1,2) [2025-04-05 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839558', 'tblTempUsageDetail_20' ) start [2025-04-05 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839558', 'tblTempUsageDetail_20' ) end [2025-04-05 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:26:21] Production.INFO: ==22153== Releasing lock... [2025-04-05 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:27:05 [end_date_ymd] => 2025-04-05 10:27:05 [RateCDR] => 1 ) [2025-04-05 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:27:05' and `end` < '2025-04-05 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:27:18] Production.INFO: count ==726 [2025-04-05 10:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:27:05 - End Time 2025-04-05 10:27:05 [2025-04-05 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839563', 'tblTempUsageDetail_20' ) start [2025-04-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839563', 'tblTempUsageDetail_20' ) end [2025-04-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839563', 'tblTempVendorCDR_20' ) start [2025-04-05 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839563', 'tblTempVendorCDR_20' ) end [2025-04-05 10:27:18] Production.INFO: ProcessCDR(1,14839563,1,1,2) [2025-04-05 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839563', 'tblTempUsageDetail_20' ) start [2025-04-05 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839563', 'tblTempUsageDetail_20' ) end [2025-04-05 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:27:21] Production.INFO: ==22226== Releasing lock... [2025-04-05 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:28:05 [end_date_ymd] => 2025-04-05 10:28:05 [RateCDR] => 1 ) [2025-04-05 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:28:05' and `end` < '2025-04-05 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:28:18] Production.INFO: count ==727 [2025-04-05 10:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:28:05 - End Time 2025-04-05 10:28:05 [2025-04-05 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839568', 'tblTempUsageDetail_20' ) start [2025-04-05 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839568', 'tblTempUsageDetail_20' ) end [2025-04-05 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839568', 'tblTempVendorCDR_20' ) start [2025-04-05 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839568', 'tblTempVendorCDR_20' ) end [2025-04-05 10:28:18] Production.INFO: ProcessCDR(1,14839568,1,1,2) [2025-04-05 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839568', 'tblTempUsageDetail_20' ) start [2025-04-05 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839568', 'tblTempUsageDetail_20' ) end [2025-04-05 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:28:21] Production.INFO: ==22300== Releasing lock... [2025-04-05 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:28:21] Production.INFO: 34 MB #Memory Used# [2025-04-05 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:29:05 [end_date_ymd] => 2025-04-05 10:29:05 [RateCDR] => 1 ) [2025-04-05 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:29:05' and `end` < '2025-04-05 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:29:18] Production.INFO: count ==729 [2025-04-05 10:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:29:05 - End Time 2025-04-05 10:29:05 [2025-04-05 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839573', 'tblTempUsageDetail_20' ) start [2025-04-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839573', 'tblTempUsageDetail_20' ) end [2025-04-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839573', 'tblTempVendorCDR_20' ) start [2025-04-05 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839573', 'tblTempVendorCDR_20' ) end [2025-04-05 10:29:18] Production.INFO: ProcessCDR(1,14839573,1,1,2) [2025-04-05 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839573', 'tblTempUsageDetail_20' ) start [2025-04-05 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839573', 'tblTempUsageDetail_20' ) end [2025-04-05 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:29:23] Production.INFO: ==22374== Releasing lock... [2025-04-05 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:29:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:30:06 [end_date_ymd] => 2025-04-05 10:30:06 [RateCDR] => 1 ) [2025-04-05 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:30:06' and `end` < '2025-04-05 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:30:19] Production.INFO: count ==743 [2025-04-05 10:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:30:06 - End Time 2025-04-05 10:30:06 [2025-04-05 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839579', 'tblTempUsageDetail_20' ) start [2025-04-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839579', 'tblTempUsageDetail_20' ) end [2025-04-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839579', 'tblTempVendorCDR_20' ) start [2025-04-05 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839579', 'tblTempVendorCDR_20' ) end [2025-04-05 10:30:19] Production.INFO: ProcessCDR(1,14839579,1,1,2) [2025-04-05 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839579', 'tblTempUsageDetail_20' ) start [2025-04-05 10:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839579', 'tblTempUsageDetail_20' ) end [2025-04-05 10:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:30:24] Production.INFO: ==22449== Releasing lock... [2025-04-05 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:30:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-05 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:31:05 [end_date_ymd] => 2025-04-05 10:31:05 [RateCDR] => 1 ) [2025-04-05 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:31:05' and `end` < '2025-04-05 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:31:18] Production.INFO: count ==758 [2025-04-05 10:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:31:05 - End Time 2025-04-05 10:31:05 [2025-04-05 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839584', 'tblTempUsageDetail_20' ) start [2025-04-05 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839584', 'tblTempUsageDetail_20' ) end [2025-04-05 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839584', 'tblTempVendorCDR_20' ) start [2025-04-05 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839584', 'tblTempVendorCDR_20' ) end [2025-04-05 10:31:18] Production.INFO: ProcessCDR(1,14839584,1,1,2) [2025-04-05 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839584', 'tblTempUsageDetail_20' ) start [2025-04-05 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839584', 'tblTempUsageDetail_20' ) end [2025-04-05 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:31:22] Production.INFO: ==22526== Releasing lock... [2025-04-05 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:31:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:32:05 [end_date_ymd] => 2025-04-05 10:32:05 [RateCDR] => 1 ) [2025-04-05 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:32:05' and `end` < '2025-04-05 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:32:18] Production.INFO: count ==770 [2025-04-05 10:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:32:05 - End Time 2025-04-05 10:32:05 [2025-04-05 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839589', 'tblTempUsageDetail_20' ) start [2025-04-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839589', 'tblTempUsageDetail_20' ) end [2025-04-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839589', 'tblTempVendorCDR_20' ) start [2025-04-05 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839589', 'tblTempVendorCDR_20' ) end [2025-04-05 10:32:19] Production.INFO: ProcessCDR(1,14839589,1,1,2) [2025-04-05 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839589', 'tblTempUsageDetail_20' ) start [2025-04-05 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839589', 'tblTempUsageDetail_20' ) end [2025-04-05 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:32:22] Production.INFO: ==22643== Releasing lock... [2025-04-05 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:32:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:33:05 [end_date_ymd] => 2025-04-05 10:33:05 [RateCDR] => 1 ) [2025-04-05 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:33:05' and `end` < '2025-04-05 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:33:18] Production.INFO: count ==777 [2025-04-05 10:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:33:05 - End Time 2025-04-05 10:33:05 [2025-04-05 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839594', 'tblTempUsageDetail_20' ) start [2025-04-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839594', 'tblTempUsageDetail_20' ) end [2025-04-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839594', 'tblTempVendorCDR_20' ) start [2025-04-05 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839594', 'tblTempVendorCDR_20' ) end [2025-04-05 10:33:18] Production.INFO: ProcessCDR(1,14839594,1,1,2) [2025-04-05 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839594', 'tblTempUsageDetail_20' ) start [2025-04-05 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839594', 'tblTempUsageDetail_20' ) end [2025-04-05 10:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:33:23] Production.INFO: ==22715== Releasing lock... [2025-04-05 10:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:33:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:34:06 [end_date_ymd] => 2025-04-05 10:34:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:34:06' and `end` < '2025-04-05 10: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-04-05 10:34:19] Production.INFO: count ==779 [2025-04-05 10:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:34:06 - End Time 2025-04-05 10:34:06 [2025-04-05 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839599', 'tblTempUsageDetail_20' ) start [2025-04-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839599', 'tblTempUsageDetail_20' ) end [2025-04-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839599', 'tblTempVendorCDR_20' ) start [2025-04-05 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839599', 'tblTempVendorCDR_20' ) end [2025-04-05 10:34:19] Production.INFO: ProcessCDR(1,14839599,1,1,2) [2025-04-05 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839599', 'tblTempUsageDetail_20' ) start [2025-04-05 10:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839599', 'tblTempUsageDetail_20' ) end [2025-04-05 10:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:34:22] Production.INFO: ==22792== Releasing lock... [2025-04-05 10:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:34:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:35:05 [end_date_ymd] => 2025-04-05 10:35:05 [RateCDR] => 1 ) [2025-04-05 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:35:05' and `end` < '2025-04-05 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:35:18] Production.INFO: count ==779 [2025-04-05 10:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:35:05 - End Time 2025-04-05 10:35:05 [2025-04-05 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839604', 'tblTempUsageDetail_20' ) start [2025-04-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839604', 'tblTempUsageDetail_20' ) end [2025-04-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839604', 'tblTempVendorCDR_20' ) start [2025-04-05 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839604', 'tblTempVendorCDR_20' ) end [2025-04-05 10:35:18] Production.INFO: ProcessCDR(1,14839604,1,1,2) [2025-04-05 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839604', 'tblTempUsageDetail_20' ) start [2025-04-05 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839604', 'tblTempUsageDetail_20' ) end [2025-04-05 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:35:22] Production.INFO: ==22865== Releasing lock... [2025-04-05 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:36:06 [end_date_ymd] => 2025-04-05 10:36:06 [RateCDR] => 1 ) [2025-04-05 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:36:06' and `end` < '2025-04-05 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:36:19] Production.INFO: count ==779 [2025-04-05 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:36:06 - End Time 2025-04-05 10:36:06 [2025-04-05 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839609', 'tblTempUsageDetail_20' ) start [2025-04-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839609', 'tblTempUsageDetail_20' ) end [2025-04-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839609', 'tblTempVendorCDR_20' ) start [2025-04-05 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839609', 'tblTempVendorCDR_20' ) end [2025-04-05 10:36:19] Production.INFO: ProcessCDR(1,14839609,1,1,2) [2025-04-05 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839609', 'tblTempUsageDetail_20' ) start [2025-04-05 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839609', 'tblTempUsageDetail_20' ) end [2025-04-05 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:36:22] Production.INFO: ==22937== Releasing lock... [2025-04-05 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-05 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:37:05 [end_date_ymd] => 2025-04-05 10:37:05 [RateCDR] => 1 ) [2025-04-05 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:37:05' and `end` < '2025-04-05 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:37:17] Production.INFO: count ==782 [2025-04-05 10:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:37:05 - End Time 2025-04-05 10:37:05 [2025-04-05 10:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839614', 'tblTempUsageDetail_20' ) start [2025-04-05 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839614', 'tblTempUsageDetail_20' ) end [2025-04-05 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839614', 'tblTempVendorCDR_20' ) start [2025-04-05 10:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839614', 'tblTempVendorCDR_20' ) end [2025-04-05 10:37:18] Production.INFO: ProcessCDR(1,14839614,1,1,2) [2025-04-05 10:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839614', 'tblTempUsageDetail_20' ) start [2025-04-05 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839614', 'tblTempUsageDetail_20' ) end [2025-04-05 10:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:37:22] Production.INFO: ==23008== Releasing lock... [2025-04-05 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:37:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:38:05 [end_date_ymd] => 2025-04-05 10:38:05 [RateCDR] => 1 ) [2025-04-05 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:38:05' and `end` < '2025-04-05 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:38:18] Production.INFO: count ==797 [2025-04-05 10:38:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:38:05 - End Time 2025-04-05 10:38:05 [2025-04-05 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839619', 'tblTempUsageDetail_20' ) start [2025-04-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839619', 'tblTempUsageDetail_20' ) end [2025-04-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839619', 'tblTempVendorCDR_20' ) start [2025-04-05 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839619', 'tblTempVendorCDR_20' ) end [2025-04-05 10:38:18] Production.INFO: ProcessCDR(1,14839619,1,1,2) [2025-04-05 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839619', 'tblTempUsageDetail_20' ) start [2025-04-05 10:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839619', 'tblTempUsageDetail_20' ) end [2025-04-05 10:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:38:23] Production.INFO: ==23085== Releasing lock... [2025-04-05 10:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:38:23] Production.INFO: 34 MB #Memory Used# [2025-04-05 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:39:04 [end_date_ymd] => 2025-04-05 10:39:04 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:39:04' and `end` < '2025-04-05 10: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-04-05 10:39:17] Production.INFO: count ==798 [2025-04-05 10:39:17] Production.ERROR: pbx CDR StartTime 2025-04-05 07:39:04 - End Time 2025-04-05 10:39:04 [2025-04-05 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839624', 'tblTempUsageDetail_20' ) start [2025-04-05 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839624', 'tblTempUsageDetail_20' ) end [2025-04-05 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839624', 'tblTempVendorCDR_20' ) start [2025-04-05 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839624', 'tblTempVendorCDR_20' ) end [2025-04-05 10:39:17] Production.INFO: ProcessCDR(1,14839624,1,1,2) [2025-04-05 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839624', 'tblTempUsageDetail_20' ) start [2025-04-05 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839624', 'tblTempUsageDetail_20' ) end [2025-04-05 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:39:22] Production.INFO: ==23157== Releasing lock... [2025-04-05 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:39:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:40:06 [end_date_ymd] => 2025-04-05 10:40:06 [RateCDR] => 1 ) [2025-04-05 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:40:06' and `end` < '2025-04-05 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:40:19] Production.INFO: count ==800 [2025-04-05 10:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:40:06 - End Time 2025-04-05 10:40:06 [2025-04-05 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839630', 'tblTempUsageDetail_20' ) start [2025-04-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839630', 'tblTempUsageDetail_20' ) end [2025-04-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839630', 'tblTempVendorCDR_20' ) start [2025-04-05 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839630', 'tblTempVendorCDR_20' ) end [2025-04-05 10:40:19] Production.INFO: ProcessCDR(1,14839630,1,1,2) [2025-04-05 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839630', 'tblTempUsageDetail_20' ) start [2025-04-05 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839630', 'tblTempUsageDetail_20' ) end [2025-04-05 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:40:24] Production.INFO: ==23229== Releasing lock... [2025-04-05 10:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:40:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:41:06 [end_date_ymd] => 2025-04-05 10:41:06 [RateCDR] => 1 ) [2025-04-05 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:41:06' and `end` < '2025-04-05 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:41:18] Production.INFO: count ==821 [2025-04-05 10:41:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:41:06 - End Time 2025-04-05 10:41:06 [2025-04-05 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839635', 'tblTempUsageDetail_20' ) start [2025-04-05 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839635', 'tblTempUsageDetail_20' ) end [2025-04-05 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839635', 'tblTempVendorCDR_20' ) start [2025-04-05 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839635', 'tblTempVendorCDR_20' ) end [2025-04-05 10:41:19] Production.INFO: ProcessCDR(1,14839635,1,1,2) [2025-04-05 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839635', 'tblTempUsageDetail_20' ) start [2025-04-05 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839635', 'tblTempUsageDetail_20' ) end [2025-04-05 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:41:24] Production.INFO: ==23309== Releasing lock... [2025-04-05 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:41:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:42:06 [end_date_ymd] => 2025-04-05 10:42:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:42:06' and `end` < '2025-04-05 10: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-04-05 10:42:18] Production.INFO: count ==823 [2025-04-05 10:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:42:06 - End Time 2025-04-05 10:42:06 [2025-04-05 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839640', 'tblTempUsageDetail_20' ) start [2025-04-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839640', 'tblTempUsageDetail_20' ) end [2025-04-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839640', 'tblTempVendorCDR_20' ) start [2025-04-05 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839640', 'tblTempVendorCDR_20' ) end [2025-04-05 10:42:19] Production.INFO: ProcessCDR(1,14839640,1,1,2) [2025-04-05 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839640', 'tblTempUsageDetail_20' ) start [2025-04-05 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839640', 'tblTempUsageDetail_20' ) end [2025-04-05 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:42:24] Production.INFO: ==23380== Releasing lock... [2025-04-05 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:42:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:43:06 [end_date_ymd] => 2025-04-05 10:43:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:43:06' and `end` < '2025-04-05 10: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-04-05 10:43:19] Production.INFO: count ==825 [2025-04-05 10:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:43:06 - End Time 2025-04-05 10:43:06 [2025-04-05 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839645', 'tblTempUsageDetail_20' ) start [2025-04-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839645', 'tblTempUsageDetail_20' ) end [2025-04-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839645', 'tblTempVendorCDR_20' ) start [2025-04-05 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839645', 'tblTempVendorCDR_20' ) end [2025-04-05 10:43:19] Production.INFO: ProcessCDR(1,14839645,1,1,2) [2025-04-05 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839645', 'tblTempUsageDetail_20' ) start [2025-04-05 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839645', 'tblTempUsageDetail_20' ) end [2025-04-05 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:43:24] Production.INFO: ==23453== Releasing lock... [2025-04-05 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:43:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:44:05 [end_date_ymd] => 2025-04-05 10:44:05 [RateCDR] => 1 ) [2025-04-05 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:44:05' and `end` < '2025-04-05 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:44:18] Production.INFO: count ==826 [2025-04-05 10:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:44:05 - End Time 2025-04-05 10:44:05 [2025-04-05 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839650', 'tblTempUsageDetail_20' ) start [2025-04-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839650', 'tblTempUsageDetail_20' ) end [2025-04-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839650', 'tblTempVendorCDR_20' ) start [2025-04-05 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839650', 'tblTempVendorCDR_20' ) end [2025-04-05 10:44:18] Production.INFO: ProcessCDR(1,14839650,1,1,2) [2025-04-05 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839650', 'tblTempUsageDetail_20' ) start [2025-04-05 10:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839650', 'tblTempUsageDetail_20' ) end [2025-04-05 10:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:44:23] Production.INFO: ==23525== Releasing lock... [2025-04-05 10:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:44:23] Production.INFO: 35 MB #Memory Used# [2025-04-05 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:45:05 [end_date_ymd] => 2025-04-05 10:45:05 [RateCDR] => 1 ) [2025-04-05 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:45:05' and `end` < '2025-04-05 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:45:18] Production.INFO: count ==827 [2025-04-05 10:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:45:05 - End Time 2025-04-05 10:45:05 [2025-04-05 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839655', 'tblTempUsageDetail_20' ) start [2025-04-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839655', 'tblTempUsageDetail_20' ) end [2025-04-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839655', 'tblTempVendorCDR_20' ) start [2025-04-05 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839655', 'tblTempVendorCDR_20' ) end [2025-04-05 10:45:18] Production.INFO: ProcessCDR(1,14839655,1,1,2) [2025-04-05 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839655', 'tblTempUsageDetail_20' ) start [2025-04-05 10:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839655', 'tblTempUsageDetail_20' ) end [2025-04-05 10:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:45:23] Production.INFO: ==23597== Releasing lock... [2025-04-05 10:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:45:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:46:05 [end_date_ymd] => 2025-04-05 10:46:05 [RateCDR] => 1 ) [2025-04-05 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:46:05' and `end` < '2025-04-05 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:46:18] Production.INFO: count ==830 [2025-04-05 10:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:46:05 - End Time 2025-04-05 10:46:05 [2025-04-05 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839660', 'tblTempUsageDetail_20' ) start [2025-04-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839660', 'tblTempUsageDetail_20' ) end [2025-04-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839660', 'tblTempVendorCDR_20' ) start [2025-04-05 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839660', 'tblTempVendorCDR_20' ) end [2025-04-05 10:46:18] Production.INFO: ProcessCDR(1,14839660,1,1,2) [2025-04-05 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839660', 'tblTempUsageDetail_20' ) start [2025-04-05 10:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839660', 'tblTempUsageDetail_20' ) end [2025-04-05 10:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:46:23] Production.INFO: ==23672== Releasing lock... [2025-04-05 10:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:47:05 [end_date_ymd] => 2025-04-05 10:47:05 [RateCDR] => 1 ) [2025-04-05 10:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:47:05' and `end` < '2025-04-05 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:47:18] Production.INFO: count ==834 [2025-04-05 10:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:47:05 - End Time 2025-04-05 10:47:05 [2025-04-05 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839665', 'tblTempUsageDetail_20' ) start [2025-04-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839665', 'tblTempUsageDetail_20' ) end [2025-04-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839665', 'tblTempVendorCDR_20' ) start [2025-04-05 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839665', 'tblTempVendorCDR_20' ) end [2025-04-05 10:47:19] Production.INFO: ProcessCDR(1,14839665,1,1,2) [2025-04-05 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839665', 'tblTempUsageDetail_20' ) start [2025-04-05 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839665', 'tblTempUsageDetail_20' ) end [2025-04-05 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:47:24] Production.INFO: ==23744== Releasing lock... [2025-04-05 10:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:47:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-05 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:48:05 [end_date_ymd] => 2025-04-05 10:48:05 [RateCDR] => 1 ) [2025-04-05 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:48:05' and `end` < '2025-04-05 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:48:17] Production.INFO: count ==836 [2025-04-05 10:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:48:05 - End Time 2025-04-05 10:48:05 [2025-04-05 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839670', 'tblTempUsageDetail_20' ) start [2025-04-05 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839670', 'tblTempUsageDetail_20' ) end [2025-04-05 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839670', 'tblTempVendorCDR_20' ) start [2025-04-05 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839670', 'tblTempVendorCDR_20' ) end [2025-04-05 10:48:18] Production.INFO: ProcessCDR(1,14839670,1,1,2) [2025-04-05 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839670', 'tblTempUsageDetail_20' ) start [2025-04-05 10:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839670', 'tblTempUsageDetail_20' ) end [2025-04-05 10:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:48:22] Production.INFO: ==23864== Releasing lock... [2025-04-05 10:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:48:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:49:05 [end_date_ymd] => 2025-04-05 10:49:05 [RateCDR] => 1 ) [2025-04-05 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:49:05' and `end` < '2025-04-05 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:49:18] Production.INFO: count ==839 [2025-04-05 10:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:49:05 - End Time 2025-04-05 10:49:05 [2025-04-05 10:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839675', 'tblTempUsageDetail_20' ) start [2025-04-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839675', 'tblTempUsageDetail_20' ) end [2025-04-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839675', 'tblTempVendorCDR_20' ) start [2025-04-05 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839675', 'tblTempVendorCDR_20' ) end [2025-04-05 10:49:19] Production.INFO: ProcessCDR(1,14839675,1,1,2) [2025-04-05 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839675', 'tblTempUsageDetail_20' ) start [2025-04-05 10:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839675', 'tblTempUsageDetail_20' ) end [2025-04-05 10:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:49:23] Production.INFO: ==23937== Releasing lock... [2025-04-05 10:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:49:23] Production.INFO: 35 MB #Memory Used# [2025-04-05 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:50:05 [end_date_ymd] => 2025-04-05 10:50:05 [RateCDR] => 1 ) [2025-04-05 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:50:05' and `end` < '2025-04-05 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:50:18] Production.INFO: count ==849 [2025-04-05 10:50:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:50:05 - End Time 2025-04-05 10:50:05 [2025-04-05 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839681', 'tblTempUsageDetail_20' ) start [2025-04-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839681', 'tblTempUsageDetail_20' ) end [2025-04-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839681', 'tblTempVendorCDR_20' ) start [2025-04-05 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839681', 'tblTempVendorCDR_20' ) end [2025-04-05 10:50:18] Production.INFO: ProcessCDR(1,14839681,1,1,2) [2025-04-05 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839681', 'tblTempUsageDetail_20' ) start [2025-04-05 10:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839681', 'tblTempUsageDetail_20' ) end [2025-04-05 10:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:50:23] Production.INFO: ==24010== Releasing lock... [2025-04-05 10:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:50:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:51:05 [end_date_ymd] => 2025-04-05 10:51:05 [RateCDR] => 1 ) [2025-04-05 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:51:05' and `end` < '2025-04-05 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:51:18] Production.INFO: count ==878 [2025-04-05 10:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:51:05 - End Time 2025-04-05 10:51:05 [2025-04-05 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839686', 'tblTempUsageDetail_20' ) start [2025-04-05 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839686', 'tblTempUsageDetail_20' ) end [2025-04-05 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839686', 'tblTempVendorCDR_20' ) start [2025-04-05 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839686', 'tblTempVendorCDR_20' ) end [2025-04-05 10:51:18] Production.INFO: ProcessCDR(1,14839686,1,1,2) [2025-04-05 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839686', 'tblTempUsageDetail_20' ) start [2025-04-05 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839686', 'tblTempUsageDetail_20' ) end [2025-04-05 10:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:51:23] Production.INFO: ==24096== Releasing lock... [2025-04-05 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:51:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-05 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:52:06 [end_date_ymd] => 2025-04-05 10:52:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:52:06' and `end` < '2025-04-05 10: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-04-05 10:52:19] Production.INFO: count ==882 [2025-04-05 10:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:52:06 - End Time 2025-04-05 10:52:06 [2025-04-05 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839691', 'tblTempUsageDetail_20' ) start [2025-04-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839691', 'tblTempUsageDetail_20' ) end [2025-04-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839691', 'tblTempVendorCDR_20' ) start [2025-04-05 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839691', 'tblTempVendorCDR_20' ) end [2025-04-05 10:52:19] Production.INFO: ProcessCDR(1,14839691,1,1,2) [2025-04-05 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839691', 'tblTempUsageDetail_20' ) start [2025-04-05 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839691', 'tblTempUsageDetail_20' ) end [2025-04-05 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:52:24] Production.INFO: ==24178== Releasing lock... [2025-04-05 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:52:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:53:05 [end_date_ymd] => 2025-04-05 10:53:05 [RateCDR] => 1 ) [2025-04-05 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:53:05' and `end` < '2025-04-05 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:53:18] Production.INFO: count ==892 [2025-04-05 10:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:53:05 - End Time 2025-04-05 10:53:05 [2025-04-05 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839696', 'tblTempUsageDetail_20' ) start [2025-04-05 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839696', 'tblTempUsageDetail_20' ) end [2025-04-05 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839696', 'tblTempVendorCDR_20' ) start [2025-04-05 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839696', 'tblTempVendorCDR_20' ) end [2025-04-05 10:53:18] Production.INFO: ProcessCDR(1,14839696,1,1,2) [2025-04-05 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839696', 'tblTempUsageDetail_20' ) start [2025-04-05 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839696', 'tblTempUsageDetail_20' ) end [2025-04-05 10:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:53:22] Production.INFO: ==24255== Releasing lock... [2025-04-05 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:53:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:54:05 [end_date_ymd] => 2025-04-05 10:54:05 [RateCDR] => 1 ) [2025-04-05 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:54:05' and `end` < '2025-04-05 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:54:18] Production.INFO: count ==899 [2025-04-05 10:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:54:05 - End Time 2025-04-05 10:54:05 [2025-04-05 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839701', 'tblTempUsageDetail_20' ) start [2025-04-05 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839701', 'tblTempUsageDetail_20' ) end [2025-04-05 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839701', 'tblTempVendorCDR_20' ) start [2025-04-05 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839701', 'tblTempVendorCDR_20' ) end [2025-04-05 10:54:18] Production.INFO: ProcessCDR(1,14839701,1,1,2) [2025-04-05 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839701', 'tblTempUsageDetail_20' ) start [2025-04-05 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839701', 'tblTempUsageDetail_20' ) end [2025-04-05 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:54:23] Production.INFO: ==24329== Releasing lock... [2025-04-05 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:54:23] Production.INFO: 35 MB #Memory Used# [2025-04-05 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:55:04 [end_date_ymd] => 2025-04-05 10:55:04 [RateCDR] => 1 ) [2025-04-05 10:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:55:04' and `end` < '2025-04-05 10:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:55:17] Production.INFO: count ==912 [2025-04-05 10:55:17] Production.ERROR: pbx CDR StartTime 2025-04-05 07:55:04 - End Time 2025-04-05 10:55:04 [2025-04-05 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839706', 'tblTempUsageDetail_20' ) start [2025-04-05 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839706', 'tblTempUsageDetail_20' ) end [2025-04-05 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839706', 'tblTempVendorCDR_20' ) start [2025-04-05 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839706', 'tblTempVendorCDR_20' ) end [2025-04-05 10:55:17] Production.INFO: ProcessCDR(1,14839706,1,1,2) [2025-04-05 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839706', 'tblTempUsageDetail_20' ) start [2025-04-05 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839706', 'tblTempUsageDetail_20' ) end [2025-04-05 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:55:22] Production.INFO: ==24402== Releasing lock... [2025-04-05 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:56:05 [end_date_ymd] => 2025-04-05 10:56:05 [RateCDR] => 1 ) [2025-04-05 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:56:05' and `end` < '2025-04-05 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:56:18] Production.INFO: count ==917 [2025-04-05 10:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 07:56:05 - End Time 2025-04-05 10:56:05 [2025-04-05 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839711', 'tblTempUsageDetail_20' ) start [2025-04-05 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839711', 'tblTempUsageDetail_20' ) end [2025-04-05 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839711', 'tblTempVendorCDR_20' ) start [2025-04-05 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839711', 'tblTempVendorCDR_20' ) end [2025-04-05 10:56:18] Production.INFO: ProcessCDR(1,14839711,1,1,2) [2025-04-05 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839711', 'tblTempUsageDetail_20' ) start [2025-04-05 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839711', 'tblTempUsageDetail_20' ) end [2025-04-05 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:56:23] Production.INFO: ==24476== Releasing lock... [2025-04-05 10:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:56:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-05 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:57:05 [end_date_ymd] => 2025-04-05 10:57:05 [RateCDR] => 1 ) [2025-04-05 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:57:05' and `end` < '2025-04-05 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:57:18] Production.INFO: count ==921 [2025-04-05 10:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:57:05 - End Time 2025-04-05 10:57:05 [2025-04-05 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839716', 'tblTempUsageDetail_20' ) start [2025-04-05 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839716', 'tblTempUsageDetail_20' ) end [2025-04-05 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839716', 'tblTempVendorCDR_20' ) start [2025-04-05 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839716', 'tblTempVendorCDR_20' ) end [2025-04-05 10:57:19] Production.INFO: ProcessCDR(1,14839716,1,1,2) [2025-04-05 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839716', 'tblTempUsageDetail_20' ) start [2025-04-05 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839716', 'tblTempUsageDetail_20' ) end [2025-04-05 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:57:24] Production.INFO: ==24546== Releasing lock... [2025-04-05 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:57:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-05 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:58:05 [end_date_ymd] => 2025-04-05 10:58:05 [RateCDR] => 1 ) [2025-04-05 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 07:58:05' and `end` < '2025-04-05 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 10:58:18] Production.INFO: count ==921 [2025-04-05 10:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:58:05 - End Time 2025-04-05 10:58:05 [2025-04-05 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839721', 'tblTempUsageDetail_20' ) start [2025-04-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839721', 'tblTempUsageDetail_20' ) end [2025-04-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839721', 'tblTempVendorCDR_20' ) start [2025-04-05 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839721', 'tblTempVendorCDR_20' ) end [2025-04-05 10:58:19] Production.INFO: ProcessCDR(1,14839721,1,1,2) [2025-04-05 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839721', 'tblTempUsageDetail_20' ) start [2025-04-05 10:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839721', 'tblTempUsageDetail_20' ) end [2025-04-05 10:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:58:23] Production.INFO: ==24619== Releasing lock... [2025-04-05 10:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:58:23] Production.INFO: 35 MB #Memory Used# [2025-04-05 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 07:59:06 [end_date_ymd] => 2025-04-05 10:59:06 [RateCDR] => 1 ) [2025-04-05 10: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-04-05 07:59:06' and `end` < '2025-04-05 10: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-04-05 10:59:18] Production.INFO: count ==927 [2025-04-05 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-05 07:59:06 - End Time 2025-04-05 10:59:06 [2025-04-05 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839726', 'tblTempUsageDetail_20' ) start [2025-04-05 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839726', 'tblTempUsageDetail_20' ) end [2025-04-05 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839726', 'tblTempVendorCDR_20' ) start [2025-04-05 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839726', 'tblTempVendorCDR_20' ) end [2025-04-05 10:59:19] Production.INFO: ProcessCDR(1,14839726,1,1,2) [2025-04-05 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839726', 'tblTempUsageDetail_20' ) start [2025-04-05 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839726', 'tblTempUsageDetail_20' ) end [2025-04-05 10:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 10:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 10:59:24] Production.INFO: ==24693== Releasing lock... [2025-04-05 10:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 10:59:24] Production.INFO: 35 MB #Memory Used# [2025-04-05 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:00:06 [end_date_ymd] => 2025-04-05 11:00:06 [RateCDR] => 1 ) [2025-04-05 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:00:06' and `end` < '2025-04-05 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:00:19] Production.INFO: count ==942 [2025-04-05 11:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:00:06 - End Time 2025-04-05 11:00:06 [2025-04-05 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839732', 'tblTempUsageDetail_20' ) start [2025-04-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839732', 'tblTempUsageDetail_20' ) end [2025-04-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839732', 'tblTempVendorCDR_20' ) start [2025-04-05 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839732', 'tblTempVendorCDR_20' ) end [2025-04-05 11:00:19] Production.INFO: ProcessCDR(1,14839732,1,1,2) [2025-04-05 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839732', 'tblTempUsageDetail_20' ) start [2025-04-05 11:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839732', 'tblTempUsageDetail_20' ) end [2025-04-05 11:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:00:24] Production.INFO: ==24769== Releasing lock... [2025-04-05 11:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:00:24] Production.INFO: 35 MB #Memory Used# [2025-04-05 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:01:05 [end_date_ymd] => 2025-04-05 11:01:05 [RateCDR] => 1 ) [2025-04-05 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:01:05' and `end` < '2025-04-05 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:01:18] Production.INFO: count ==977 [2025-04-05 11:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:01:05 - End Time 2025-04-05 11:01:05 [2025-04-05 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839737', 'tblTempUsageDetail_20' ) start [2025-04-05 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839737', 'tblTempUsageDetail_20' ) end [2025-04-05 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839737', 'tblTempVendorCDR_20' ) start [2025-04-05 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839737', 'tblTempVendorCDR_20' ) end [2025-04-05 11:01:19] Production.INFO: ProcessCDR(1,14839737,1,1,2) [2025-04-05 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839737', 'tblTempUsageDetail_20' ) start [2025-04-05 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839737', 'tblTempUsageDetail_20' ) end [2025-04-05 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:01:23] Production.INFO: ==24942== Releasing lock... [2025-04-05 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:02:05 [end_date_ymd] => 2025-04-05 11:02:05 [RateCDR] => 1 ) [2025-04-05 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:02:05' and `end` < '2025-04-05 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:02:18] Production.INFO: count ==995 [2025-04-05 11:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:02:05 - End Time 2025-04-05 11:02:05 [2025-04-05 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839742', 'tblTempUsageDetail_20' ) start [2025-04-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839742', 'tblTempUsageDetail_20' ) end [2025-04-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839742', 'tblTempVendorCDR_20' ) start [2025-04-05 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839742', 'tblTempVendorCDR_20' ) end [2025-04-05 11:02:19] Production.INFO: ProcessCDR(1,14839742,1,1,2) [2025-04-05 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839742', 'tblTempUsageDetail_20' ) start [2025-04-05 11:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839742', 'tblTempUsageDetail_20' ) end [2025-04-05 11:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:02:24] Production.INFO: ==25014== Releasing lock... [2025-04-05 11:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:02:24] Production.INFO: 36 MB #Memory Used# [2025-04-05 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:03:05 [end_date_ymd] => 2025-04-05 11:03:05 [RateCDR] => 1 ) [2025-04-05 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:03:05' and `end` < '2025-04-05 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:03:18] Production.INFO: count ==987 [2025-04-05 11:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:03:05 - End Time 2025-04-05 11:03:05 [2025-04-05 11:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839747', 'tblTempUsageDetail_20' ) start [2025-04-05 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839747', 'tblTempUsageDetail_20' ) end [2025-04-05 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839747', 'tblTempVendorCDR_20' ) start [2025-04-05 11:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839747', 'tblTempVendorCDR_20' ) end [2025-04-05 11:03:18] Production.INFO: ProcessCDR(1,14839747,1,1,2) [2025-04-05 11:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839747', 'tblTempUsageDetail_20' ) start [2025-04-05 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839747', 'tblTempUsageDetail_20' ) end [2025-04-05 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:03:24] Production.INFO: ==25128== Releasing lock... [2025-04-05 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:03:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-05 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:04:05 [end_date_ymd] => 2025-04-05 11:04:05 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:04:05' and `end` < '2025-04-05 11: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-04-05 11:04:18] Production.INFO: count ==998 [2025-04-05 11:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:04:05 - End Time 2025-04-05 11:04:05 [2025-04-05 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839752', 'tblTempUsageDetail_20' ) start [2025-04-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839752', 'tblTempUsageDetail_20' ) end [2025-04-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839752', 'tblTempVendorCDR_20' ) start [2025-04-05 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839752', 'tblTempVendorCDR_20' ) end [2025-04-05 11:04:19] Production.INFO: ProcessCDR(1,14839752,1,1,2) [2025-04-05 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839752', 'tblTempUsageDetail_20' ) start [2025-04-05 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839752', 'tblTempUsageDetail_20' ) end [2025-04-05 11:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:04:24] Production.INFO: ==25201== Releasing lock... [2025-04-05 11:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:04:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:05:05 [end_date_ymd] => 2025-04-05 11:05:05 [RateCDR] => 1 ) [2025-04-05 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:05:05' and `end` < '2025-04-05 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:05:18] Production.INFO: count ==996 [2025-04-05 11:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:05:05 - End Time 2025-04-05 11:05:05 [2025-04-05 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839757', 'tblTempUsageDetail_20' ) start [2025-04-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839757', 'tblTempUsageDetail_20' ) end [2025-04-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839757', 'tblTempVendorCDR_20' ) start [2025-04-05 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839757', 'tblTempVendorCDR_20' ) end [2025-04-05 11:05:19] Production.INFO: ProcessCDR(1,14839757,1,1,2) [2025-04-05 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839757', 'tblTempUsageDetail_20' ) start [2025-04-05 11:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839757', 'tblTempUsageDetail_20' ) end [2025-04-05 11:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:05:24] Production.INFO: ==25349== Releasing lock... [2025-04-05 11:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:05:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:06:05 [end_date_ymd] => 2025-04-05 11:06:05 [RateCDR] => 1 ) [2025-04-05 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:06:05' and `end` < '2025-04-05 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:06:18] Production.INFO: count ==1006 [2025-04-05 11:06:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:06:05 - End Time 2025-04-05 11:06:05 [2025-04-05 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839762', 'tblTempUsageDetail_20' ) start [2025-04-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839762', 'tblTempUsageDetail_20' ) end [2025-04-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839762', 'tblTempVendorCDR_20' ) start [2025-04-05 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839762', 'tblTempVendorCDR_20' ) end [2025-04-05 11:06:18] Production.INFO: ProcessCDR(1,14839762,1,1,2) [2025-04-05 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839762', 'tblTempUsageDetail_20' ) start [2025-04-05 11:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839762', 'tblTempUsageDetail_20' ) end [2025-04-05 11:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:06:23] Production.INFO: ==25421== Releasing lock... [2025-04-05 11:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:06:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:07:06 [end_date_ymd] => 2025-04-05 11:07:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:07:06' and `end` < '2025-04-05 11: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-04-05 11:07:18] Production.INFO: count ==1021 [2025-04-05 11:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:07:06 - End Time 2025-04-05 11:07:06 [2025-04-05 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839767', 'tblTempUsageDetail_20' ) start [2025-04-05 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839767', 'tblTempUsageDetail_20' ) end [2025-04-05 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839767', 'tblTempVendorCDR_20' ) start [2025-04-05 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839767', 'tblTempVendorCDR_20' ) end [2025-04-05 11:07:19] Production.INFO: ProcessCDR(1,14839767,1,1,2) [2025-04-05 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839767', 'tblTempUsageDetail_20' ) start [2025-04-05 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839767', 'tblTempUsageDetail_20' ) end [2025-04-05 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:07:24] Production.INFO: ==25491== Releasing lock... [2025-04-05 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:07:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:08:05 [end_date_ymd] => 2025-04-05 11:08:05 [RateCDR] => 1 ) [2025-04-05 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:08:05' and `end` < '2025-04-05 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:08:18] Production.INFO: count ==1022 [2025-04-05 11:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:08:05 - End Time 2025-04-05 11:08:05 [2025-04-05 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839772', 'tblTempUsageDetail_20' ) start [2025-04-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839772', 'tblTempUsageDetail_20' ) end [2025-04-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839772', 'tblTempVendorCDR_20' ) start [2025-04-05 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839772', 'tblTempVendorCDR_20' ) end [2025-04-05 11:08:18] Production.INFO: ProcessCDR(1,14839772,1,1,2) [2025-04-05 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839772', 'tblTempUsageDetail_20' ) start [2025-04-05 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839772', 'tblTempUsageDetail_20' ) end [2025-04-05 11:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:08:21] Production.INFO: ==25642== Releasing lock... [2025-04-05 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:08:21] Production.INFO: 36 MB #Memory Used# [2025-04-05 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:09:06 [end_date_ymd] => 2025-04-05 11:09:06 [RateCDR] => 1 ) [2025-04-05 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:09:06' and `end` < '2025-04-05 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:09:19] Production.INFO: count ==1023 [2025-04-05 11:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:09:06 - End Time 2025-04-05 11:09:06 [2025-04-05 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839777', 'tblTempUsageDetail_20' ) start [2025-04-05 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839777', 'tblTempUsageDetail_20' ) end [2025-04-05 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839777', 'tblTempVendorCDR_20' ) start [2025-04-05 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839777', 'tblTempVendorCDR_20' ) end [2025-04-05 11:09:19] Production.INFO: ProcessCDR(1,14839777,1,1,2) [2025-04-05 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839777', 'tblTempUsageDetail_20' ) start [2025-04-05 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839777', 'tblTempUsageDetail_20' ) end [2025-04-05 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:09:24] Production.INFO: ==25717== Releasing lock... [2025-04-05 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:09:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:10:06 [end_date_ymd] => 2025-04-05 11:10:06 [RateCDR] => 1 ) [2025-04-05 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:10:06' and `end` < '2025-04-05 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:10:19] Production.INFO: count ==1038 [2025-04-05 11:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 08:10:06 - End Time 2025-04-05 11:10:06 [2025-04-05 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839783', 'tblTempUsageDetail_20' ) start [2025-04-05 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839783', 'tblTempUsageDetail_20' ) end [2025-04-05 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839783', 'tblTempVendorCDR_20' ) start [2025-04-05 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839783', 'tblTempVendorCDR_20' ) end [2025-04-05 11:10:20] Production.INFO: ProcessCDR(1,14839783,1,1,2) [2025-04-05 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839783', 'tblTempUsageDetail_20' ) start [2025-04-05 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839783', 'tblTempUsageDetail_20' ) end [2025-04-05 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:10:25] Production.INFO: ==25789== Releasing lock... [2025-04-05 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-04-05 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:11:05 [end_date_ymd] => 2025-04-05 11:11:05 [RateCDR] => 1 ) [2025-04-05 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:11:05' and `end` < '2025-04-05 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:11:18] Production.INFO: count ==1085 [2025-04-05 11:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:11:05 - End Time 2025-04-05 11:11:05 [2025-04-05 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839788', 'tblTempUsageDetail_20' ) start [2025-04-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839788', 'tblTempUsageDetail_20' ) end [2025-04-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839788', 'tblTempVendorCDR_20' ) start [2025-04-05 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839788', 'tblTempVendorCDR_20' ) end [2025-04-05 11:11:19] Production.INFO: ProcessCDR(1,14839788,1,1,2) [2025-04-05 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839788', 'tblTempUsageDetail_20' ) start [2025-04-05 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839788', 'tblTempUsageDetail_20' ) end [2025-04-05 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:11:23] Production.INFO: ==25871== Releasing lock... [2025-04-05 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:12:05 [end_date_ymd] => 2025-04-05 11:12:05 [RateCDR] => 1 ) [2025-04-05 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:12:05' and `end` < '2025-04-05 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:12:18] Production.INFO: count ==1093 [2025-04-05 11:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:12:05 - End Time 2025-04-05 11:12:05 [2025-04-05 11:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839793', 'tblTempUsageDetail_20' ) start [2025-04-05 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839793', 'tblTempUsageDetail_20' ) end [2025-04-05 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839793', 'tblTempVendorCDR_20' ) start [2025-04-05 11:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839793', 'tblTempVendorCDR_20' ) end [2025-04-05 11:12:18] Production.INFO: ProcessCDR(1,14839793,1,1,2) [2025-04-05 11:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839793', 'tblTempUsageDetail_20' ) start [2025-04-05 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839793', 'tblTempUsageDetail_20' ) end [2025-04-05 11:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:12:24] Production.INFO: ==26025== Releasing lock... [2025-04-05 11:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:12:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:13:05 [end_date_ymd] => 2025-04-05 11:13:05 [RateCDR] => 1 ) [2025-04-05 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:13:05' and `end` < '2025-04-05 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:13:17] Production.INFO: count ==1106 [2025-04-05 11:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:13:05 - End Time 2025-04-05 11:13:05 [2025-04-05 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839798', 'tblTempUsageDetail_20' ) start [2025-04-05 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839798', 'tblTempUsageDetail_20' ) end [2025-04-05 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839798', 'tblTempVendorCDR_20' ) start [2025-04-05 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839798', 'tblTempVendorCDR_20' ) end [2025-04-05 11:13:18] Production.INFO: ProcessCDR(1,14839798,1,1,2) [2025-04-05 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839798', 'tblTempUsageDetail_20' ) start [2025-04-05 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839798', 'tblTempUsageDetail_20' ) end [2025-04-05 11:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:13:21] Production.INFO: ==26104== Releasing lock... [2025-04-05 11:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:13:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:14:06 [end_date_ymd] => 2025-04-05 11:14:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:14:06' and `end` < '2025-04-05 11: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-04-05 11:14:18] Production.INFO: count ==1115 [2025-04-05 11:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:14:06 - End Time 2025-04-05 11:14:06 [2025-04-05 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839803', 'tblTempUsageDetail_20' ) start [2025-04-05 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839803', 'tblTempUsageDetail_20' ) end [2025-04-05 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839803', 'tblTempVendorCDR_20' ) start [2025-04-05 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839803', 'tblTempVendorCDR_20' ) end [2025-04-05 11:14:19] Production.INFO: ProcessCDR(1,14839803,1,1,2) [2025-04-05 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839803', 'tblTempUsageDetail_20' ) start [2025-04-05 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839803', 'tblTempUsageDetail_20' ) end [2025-04-05 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:14:22] Production.INFO: ==26175== Releasing lock... [2025-04-05 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:15:05 [end_date_ymd] => 2025-04-05 11:15:05 [RateCDR] => 1 ) [2025-04-05 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:15:05' and `end` < '2025-04-05 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:15:18] Production.INFO: count ==1115 [2025-04-05 11:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:15:05 - End Time 2025-04-05 11:15:05 [2025-04-05 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839808', 'tblTempUsageDetail_20' ) start [2025-04-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839808', 'tblTempUsageDetail_20' ) end [2025-04-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839808', 'tblTempVendorCDR_20' ) start [2025-04-05 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839808', 'tblTempVendorCDR_20' ) end [2025-04-05 11:15:18] Production.INFO: ProcessCDR(1,14839808,1,1,2) [2025-04-05 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839808', 'tblTempUsageDetail_20' ) start [2025-04-05 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839808', 'tblTempUsageDetail_20' ) end [2025-04-05 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:15:22] Production.INFO: ==26324== Releasing lock... [2025-04-05 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:15:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:16:06 [end_date_ymd] => 2025-04-05 11:16:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:16:06' and `end` < '2025-04-05 11: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-04-05 11:16:18] Production.INFO: count ==1116 [2025-04-05 11:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:16:06 - End Time 2025-04-05 11:16:06 [2025-04-05 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839813', 'tblTempUsageDetail_20' ) start [2025-04-05 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839813', 'tblTempUsageDetail_20' ) end [2025-04-05 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839813', 'tblTempVendorCDR_20' ) start [2025-04-05 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839813', 'tblTempVendorCDR_20' ) end [2025-04-05 11:16:19] Production.INFO: ProcessCDR(1,14839813,1,1,2) [2025-04-05 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839813', 'tblTempUsageDetail_20' ) start [2025-04-05 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839813', 'tblTempUsageDetail_20' ) end [2025-04-05 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:16:24] Production.INFO: ==26399== Releasing lock... [2025-04-05 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:16:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:17:05 [end_date_ymd] => 2025-04-05 11:17:05 [RateCDR] => 1 ) [2025-04-05 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:17:05' and `end` < '2025-04-05 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:17:18] Production.INFO: count ==1121 [2025-04-05 11:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:17:05 - End Time 2025-04-05 11:17:05 [2025-04-05 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839818', 'tblTempUsageDetail_20' ) start [2025-04-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839818', 'tblTempUsageDetail_20' ) end [2025-04-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839818', 'tblTempVendorCDR_20' ) start [2025-04-05 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839818', 'tblTempVendorCDR_20' ) end [2025-04-05 11:17:18] Production.INFO: ProcessCDR(1,14839818,1,1,2) [2025-04-05 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839818', 'tblTempUsageDetail_20' ) start [2025-04-05 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839818', 'tblTempUsageDetail_20' ) end [2025-04-05 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:17:22] Production.INFO: ==26471== Releasing lock... [2025-04-05 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:18:05 [end_date_ymd] => 2025-04-05 11:18:05 [RateCDR] => 1 ) [2025-04-05 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:18:05' and `end` < '2025-04-05 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:18:18] Production.INFO: count ==1121 [2025-04-05 11:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:18:05 - End Time 2025-04-05 11:18:05 [2025-04-05 11:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839823', 'tblTempUsageDetail_20' ) start [2025-04-05 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839823', 'tblTempUsageDetail_20' ) end [2025-04-05 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839823', 'tblTempVendorCDR_20' ) start [2025-04-05 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839823', 'tblTempVendorCDR_20' ) end [2025-04-05 11:18:18] Production.INFO: ProcessCDR(1,14839823,1,1,2) [2025-04-05 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839823', 'tblTempUsageDetail_20' ) start [2025-04-05 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839823', 'tblTempUsageDetail_20' ) end [2025-04-05 11:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:18:21] Production.INFO: ==26585== Releasing lock... [2025-04-05 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:18:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:19:04 [end_date_ymd] => 2025-04-05 11:19:04 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:19:04' and `end` < '2025-04-05 11: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-04-05 11:19:17] Production.INFO: count ==1129 [2025-04-05 11:19:17] Production.ERROR: pbx CDR StartTime 2025-04-05 08:19:04 - End Time 2025-04-05 11:19:04 [2025-04-05 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839828', 'tblTempUsageDetail_20' ) start [2025-04-05 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839828', 'tblTempUsageDetail_20' ) end [2025-04-05 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839828', 'tblTempVendorCDR_20' ) start [2025-04-05 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839828', 'tblTempVendorCDR_20' ) end [2025-04-05 11:19:18] Production.INFO: ProcessCDR(1,14839828,1,1,2) [2025-04-05 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839828', 'tblTempUsageDetail_20' ) start [2025-04-05 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839828', 'tblTempUsageDetail_20' ) end [2025-04-05 11:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:19:21] Production.INFO: ==26657== Releasing lock... [2025-04-05 11:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:19:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:20:06 [end_date_ymd] => 2025-04-05 11:20:06 [RateCDR] => 1 ) [2025-04-05 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:20:06' and `end` < '2025-04-05 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:20:19] Production.INFO: count ==1141 [2025-04-05 11:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:20:06 - End Time 2025-04-05 11:20:06 [2025-04-05 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839834', 'tblTempUsageDetail_20' ) start [2025-04-05 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839834', 'tblTempUsageDetail_20' ) end [2025-04-05 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839834', 'tblTempVendorCDR_20' ) start [2025-04-05 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839834', 'tblTempVendorCDR_20' ) end [2025-04-05 11:20:19] Production.INFO: ProcessCDR(1,14839834,1,1,2) [2025-04-05 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839834', 'tblTempUsageDetail_20' ) start [2025-04-05 11:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839834', 'tblTempUsageDetail_20' ) end [2025-04-05 11:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:20:22] Production.INFO: ==26736== Releasing lock... [2025-04-05 11:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:20:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-05 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:21:05 [end_date_ymd] => 2025-04-05 11:21:05 [RateCDR] => 1 ) [2025-04-05 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:21:05' and `end` < '2025-04-05 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:21:18] Production.INFO: count ==1157 [2025-04-05 11:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:21:05 - End Time 2025-04-05 11:21:05 [2025-04-05 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839839', 'tblTempUsageDetail_20' ) start [2025-04-05 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839839', 'tblTempUsageDetail_20' ) end [2025-04-05 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839839', 'tblTempVendorCDR_20' ) start [2025-04-05 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839839', 'tblTempVendorCDR_20' ) end [2025-04-05 11:21:19] Production.INFO: ProcessCDR(1,14839839,1,1,2) [2025-04-05 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839839', 'tblTempUsageDetail_20' ) start [2025-04-05 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839839', 'tblTempUsageDetail_20' ) end [2025-04-05 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:21:22] Production.INFO: ==26812== Releasing lock... [2025-04-05 11:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:21:22] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:22:06 [end_date_ymd] => 2025-04-05 11:22:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:22:06' and `end` < '2025-04-05 11: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-04-05 11:22:19] Production.INFO: count ==1157 [2025-04-05 11:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:22:06 - End Time 2025-04-05 11:22:06 [2025-04-05 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839844', 'tblTempUsageDetail_20' ) start [2025-04-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839844', 'tblTempUsageDetail_20' ) end [2025-04-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839844', 'tblTempVendorCDR_20' ) start [2025-04-05 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839844', 'tblTempVendorCDR_20' ) end [2025-04-05 11:22:19] Production.INFO: ProcessCDR(1,14839844,1,1,2) [2025-04-05 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839844', 'tblTempUsageDetail_20' ) start [2025-04-05 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839844', 'tblTempUsageDetail_20' ) end [2025-04-05 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:22:22] Production.INFO: ==26885== Releasing lock... [2025-04-05 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:22:22] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:23:05 [end_date_ymd] => 2025-04-05 11:23:05 [RateCDR] => 1 ) [2025-04-05 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:23:05' and `end` < '2025-04-05 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:23:18] Production.INFO: count ==1134 [2025-04-05 11:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:23:05 - End Time 2025-04-05 11:23:05 [2025-04-05 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839849', 'tblTempUsageDetail_20' ) start [2025-04-05 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839849', 'tblTempUsageDetail_20' ) end [2025-04-05 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839849', 'tblTempVendorCDR_20' ) start [2025-04-05 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839849', 'tblTempVendorCDR_20' ) end [2025-04-05 11:23:18] Production.INFO: ProcessCDR(1,14839849,1,1,2) [2025-04-05 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839849', 'tblTempUsageDetail_20' ) start [2025-04-05 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839849', 'tblTempUsageDetail_20' ) end [2025-04-05 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:23:23] Production.INFO: ==26961== Releasing lock... [2025-04-05 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:23:23] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:24:05 [end_date_ymd] => 2025-04-05 11:24:05 [RateCDR] => 1 ) [2025-04-05 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:24:05' and `end` < '2025-04-05 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:24:18] Production.INFO: count ==1123 [2025-04-05 11:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:24:05 - End Time 2025-04-05 11:24:05 [2025-04-05 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839854', 'tblTempUsageDetail_20' ) start [2025-04-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839854', 'tblTempUsageDetail_20' ) end [2025-04-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839854', 'tblTempVendorCDR_20' ) start [2025-04-05 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839854', 'tblTempVendorCDR_20' ) end [2025-04-05 11:24:18] Production.INFO: ProcessCDR(1,14839854,1,1,2) [2025-04-05 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839854', 'tblTempUsageDetail_20' ) start [2025-04-05 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839854', 'tblTempUsageDetail_20' ) end [2025-04-05 11:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:24:21] Production.INFO: ==27035== Releasing lock... [2025-04-05 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:24:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:25:05 [end_date_ymd] => 2025-04-05 11:25:05 [RateCDR] => 1 ) [2025-04-05 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:25:05' and `end` < '2025-04-05 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:25:18] Production.INFO: count ==1114 [2025-04-05 11:25:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:25:05 - End Time 2025-04-05 11:25:05 [2025-04-05 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839859', 'tblTempUsageDetail_20' ) start [2025-04-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839859', 'tblTempUsageDetail_20' ) end [2025-04-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839859', 'tblTempVendorCDR_20' ) start [2025-04-05 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839859', 'tblTempVendorCDR_20' ) end [2025-04-05 11:25:18] Production.INFO: ProcessCDR(1,14839859,1,1,2) [2025-04-05 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839859', 'tblTempUsageDetail_20' ) start [2025-04-05 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839859', 'tblTempUsageDetail_20' ) end [2025-04-05 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:25:21] Production.INFO: ==27109== Releasing lock... [2025-04-05 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:25:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:26:04 [end_date_ymd] => 2025-04-05 11:26:04 [RateCDR] => 1 ) [2025-04-05 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:26:04' and `end` < '2025-04-05 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:26:17] Production.INFO: count ==1116 [2025-04-05 11:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:26:04 - End Time 2025-04-05 11:26:04 [2025-04-05 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839864', 'tblTempUsageDetail_20' ) start [2025-04-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839864', 'tblTempUsageDetail_20' ) end [2025-04-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839864', 'tblTempVendorCDR_20' ) start [2025-04-05 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839864', 'tblTempVendorCDR_20' ) end [2025-04-05 11:26:18] Production.INFO: ProcessCDR(1,14839864,1,1,2) [2025-04-05 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839864', 'tblTempUsageDetail_20' ) start [2025-04-05 11:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839864', 'tblTempUsageDetail_20' ) end [2025-04-05 11:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:26:23] Production.INFO: ==27184== Releasing lock... [2025-04-05 11:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:26:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:27:05 [end_date_ymd] => 2025-04-05 11:27:05 [RateCDR] => 1 ) [2025-04-05 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:27:05' and `end` < '2025-04-05 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:27:18] Production.INFO: count ==1118 [2025-04-05 11:27:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:27:05 - End Time 2025-04-05 11:27:05 [2025-04-05 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839869', 'tblTempUsageDetail_20' ) start [2025-04-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839869', 'tblTempUsageDetail_20' ) end [2025-04-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839869', 'tblTempVendorCDR_20' ) start [2025-04-05 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839869', 'tblTempVendorCDR_20' ) end [2025-04-05 11:27:18] Production.INFO: ProcessCDR(1,14839869,1,1,2) [2025-04-05 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839869', 'tblTempUsageDetail_20' ) start [2025-04-05 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839869', 'tblTempUsageDetail_20' ) end [2025-04-05 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:27:23] Production.INFO: ==27258== Releasing lock... [2025-04-05 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:27:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:28:05 [end_date_ymd] => 2025-04-05 11:28:05 [RateCDR] => 1 ) [2025-04-05 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:28:05' and `end` < '2025-04-05 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:28:18] Production.INFO: count ==1119 [2025-04-05 11:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:28:05 - End Time 2025-04-05 11:28:05 [2025-04-05 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839874', 'tblTempUsageDetail_20' ) start [2025-04-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839874', 'tblTempUsageDetail_20' ) end [2025-04-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839874', 'tblTempVendorCDR_20' ) start [2025-04-05 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839874', 'tblTempVendorCDR_20' ) end [2025-04-05 11:28:19] Production.INFO: ProcessCDR(1,14839874,1,1,2) [2025-04-05 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839874', 'tblTempUsageDetail_20' ) start [2025-04-05 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839874', 'tblTempUsageDetail_20' ) end [2025-04-05 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:28:24] Production.INFO: ==27334== Releasing lock... [2025-04-05 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:28:24] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:29:05 [end_date_ymd] => 2025-04-05 11:29:05 [RateCDR] => 1 ) [2025-04-05 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:29:05' and `end` < '2025-04-05 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:29:18] Production.INFO: count ==1121 [2025-04-05 11:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:29:05 - End Time 2025-04-05 11:29:05 [2025-04-05 11:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839879', 'tblTempUsageDetail_20' ) start [2025-04-05 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839879', 'tblTempUsageDetail_20' ) end [2025-04-05 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839879', 'tblTempVendorCDR_20' ) start [2025-04-05 11:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839879', 'tblTempVendorCDR_20' ) end [2025-04-05 11:29:18] Production.INFO: ProcessCDR(1,14839879,1,1,2) [2025-04-05 11:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839879', 'tblTempUsageDetail_20' ) start [2025-04-05 11:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839879', 'tblTempUsageDetail_20' ) end [2025-04-05 11:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:29:22] Production.INFO: ==27410== Releasing lock... [2025-04-05 11:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:29:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-05 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:30:06 [end_date_ymd] => 2025-04-05 11:30:06 [RateCDR] => 1 ) [2025-04-05 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:30:06' and `end` < '2025-04-05 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:30:19] Production.INFO: count ==1129 [2025-04-05 11:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:30:06 - End Time 2025-04-05 11:30:06 [2025-04-05 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839885', 'tblTempUsageDetail_20' ) start [2025-04-05 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839885', 'tblTempUsageDetail_20' ) end [2025-04-05 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839885', 'tblTempVendorCDR_20' ) start [2025-04-05 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839885', 'tblTempVendorCDR_20' ) end [2025-04-05 11:30:19] Production.INFO: ProcessCDR(1,14839885,1,1,2) [2025-04-05 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839885', 'tblTempUsageDetail_20' ) start [2025-04-05 11:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839885', 'tblTempUsageDetail_20' ) end [2025-04-05 11:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:30:24] Production.INFO: ==27492== Releasing lock... [2025-04-05 11:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:30:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:31:05 [end_date_ymd] => 2025-04-05 11:31:05 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:31:05' and `end` < '2025-04-05 11: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-04-05 11:31:18] Production.INFO: count ==1155 [2025-04-05 11:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:31:05 - End Time 2025-04-05 11:31:05 [2025-04-05 11:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839890', 'tblTempUsageDetail_20' ) start [2025-04-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839890', 'tblTempUsageDetail_20' ) end [2025-04-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839890', 'tblTempVendorCDR_20' ) start [2025-04-05 11:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839890', 'tblTempVendorCDR_20' ) end [2025-04-05 11:31:18] Production.INFO: ProcessCDR(1,14839890,1,1,2) [2025-04-05 11:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839890', 'tblTempUsageDetail_20' ) start [2025-04-05 11:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839890', 'tblTempUsageDetail_20' ) end [2025-04-05 11:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:31:21] Production.INFO: ==27570== Releasing lock... [2025-04-05 11:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:31:21] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:32:06 [end_date_ymd] => 2025-04-05 11:32:06 [RateCDR] => 1 ) [2025-04-05 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:32:06' and `end` < '2025-04-05 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:32:18] Production.INFO: count ==1164 [2025-04-05 11:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:32:06 - End Time 2025-04-05 11:32:06 [2025-04-05 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839895', 'tblTempUsageDetail_20' ) start [2025-04-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839895', 'tblTempUsageDetail_20' ) end [2025-04-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839895', 'tblTempVendorCDR_20' ) start [2025-04-05 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839895', 'tblTempVendorCDR_20' ) end [2025-04-05 11:32:19] Production.INFO: ProcessCDR(1,14839895,1,1,2) [2025-04-05 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839895', 'tblTempUsageDetail_20' ) start [2025-04-05 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839895', 'tblTempUsageDetail_20' ) end [2025-04-05 11:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:32:24] Production.INFO: ==27641== Releasing lock... [2025-04-05 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:32:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-05 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:33:05 [end_date_ymd] => 2025-04-05 11:33:05 [RateCDR] => 1 ) [2025-04-05 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:33:05' and `end` < '2025-04-05 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:33:18] Production.INFO: count ==1166 [2025-04-05 11:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:33:05 - End Time 2025-04-05 11:33:05 [2025-04-05 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839900', 'tblTempUsageDetail_20' ) start [2025-04-05 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839900', 'tblTempUsageDetail_20' ) end [2025-04-05 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839900', 'tblTempVendorCDR_20' ) start [2025-04-05 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839900', 'tblTempVendorCDR_20' ) end [2025-04-05 11:33:18] Production.INFO: ProcessCDR(1,14839900,1,1,2) [2025-04-05 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839900', 'tblTempUsageDetail_20' ) start [2025-04-05 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839900', 'tblTempUsageDetail_20' ) end [2025-04-05 11:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:33:23] Production.INFO: ==27715== Releasing lock... [2025-04-05 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:33:23] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:34:06 [end_date_ymd] => 2025-04-05 11:34:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:34:06' and `end` < '2025-04-05 11: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-04-05 11:34:18] Production.INFO: count ==1181 [2025-04-05 11:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:34:06 - End Time 2025-04-05 11:34:06 [2025-04-05 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839905', 'tblTempUsageDetail_20' ) start [2025-04-05 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839905', 'tblTempUsageDetail_20' ) end [2025-04-05 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839905', 'tblTempVendorCDR_20' ) start [2025-04-05 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839905', 'tblTempVendorCDR_20' ) end [2025-04-05 11:34:19] Production.INFO: ProcessCDR(1,14839905,1,1,2) [2025-04-05 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839905', 'tblTempUsageDetail_20' ) start [2025-04-05 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839905', 'tblTempUsageDetail_20' ) end [2025-04-05 11:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:34:22] Production.INFO: ==27831== Releasing lock... [2025-04-05 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:34:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-05 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:35:05 [end_date_ymd] => 2025-04-05 11:35:05 [RateCDR] => 1 ) [2025-04-05 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:35:05' and `end` < '2025-04-05 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:35:18] Production.INFO: count ==1179 [2025-04-05 11:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:35:05 - End Time 2025-04-05 11:35:05 [2025-04-05 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839910', 'tblTempUsageDetail_20' ) start [2025-04-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839910', 'tblTempUsageDetail_20' ) end [2025-04-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839910', 'tblTempVendorCDR_20' ) start [2025-04-05 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839910', 'tblTempVendorCDR_20' ) end [2025-04-05 11:35:18] Production.INFO: ProcessCDR(1,14839910,1,1,2) [2025-04-05 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839910', 'tblTempUsageDetail_20' ) start [2025-04-05 11:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839910', 'tblTempUsageDetail_20' ) end [2025-04-05 11:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:35:23] Production.INFO: ==27904== Releasing lock... [2025-04-05 11:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:35:23] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:36:05 [end_date_ymd] => 2025-04-05 11:36:05 [RateCDR] => 1 ) [2025-04-05 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:36:05' and `end` < '2025-04-05 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:36:18] Production.INFO: count ==1181 [2025-04-05 11:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:36:05 - End Time 2025-04-05 11:36:05 [2025-04-05 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839915', 'tblTempUsageDetail_20' ) start [2025-04-05 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839915', 'tblTempUsageDetail_20' ) end [2025-04-05 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839915', 'tblTempVendorCDR_20' ) start [2025-04-05 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839915', 'tblTempVendorCDR_20' ) end [2025-04-05 11:36:18] Production.INFO: ProcessCDR(1,14839915,1,1,2) [2025-04-05 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839915', 'tblTempUsageDetail_20' ) start [2025-04-05 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839915', 'tblTempUsageDetail_20' ) end [2025-04-05 11:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:36:23] Production.INFO: ==27977== Releasing lock... [2025-04-05 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:36:23] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:37:05 [end_date_ymd] => 2025-04-05 11:37:05 [RateCDR] => 1 ) [2025-04-05 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:37:05' and `end` < '2025-04-05 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:37:18] Production.INFO: count ==1181 [2025-04-05 11:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:37:05 - End Time 2025-04-05 11:37:05 [2025-04-05 11:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839920', 'tblTempUsageDetail_20' ) start [2025-04-05 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839920', 'tblTempUsageDetail_20' ) end [2025-04-05 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839920', 'tblTempVendorCDR_20' ) start [2025-04-05 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839920', 'tblTempVendorCDR_20' ) end [2025-04-05 11:37:18] Production.INFO: ProcessCDR(1,14839920,1,1,2) [2025-04-05 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839920', 'tblTempUsageDetail_20' ) start [2025-04-05 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839920', 'tblTempUsageDetail_20' ) end [2025-04-05 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:37:21] Production.INFO: ==28053== Releasing lock... [2025-04-05 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:37:21] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:38:06 [end_date_ymd] => 2025-04-05 11:38:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:38:06' and `end` < '2025-04-05 11: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-04-05 11:38:18] Production.INFO: count ==1176 [2025-04-05 11:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:38:06 - End Time 2025-04-05 11:38:06 [2025-04-05 11:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839925', 'tblTempUsageDetail_20' ) start [2025-04-05 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839925', 'tblTempUsageDetail_20' ) end [2025-04-05 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839925', 'tblTempVendorCDR_20' ) start [2025-04-05 11:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839925', 'tblTempVendorCDR_20' ) end [2025-04-05 11:38:19] Production.INFO: ProcessCDR(1,14839925,1,1,2) [2025-04-05 11:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839925', 'tblTempUsageDetail_20' ) start [2025-04-05 11:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839925', 'tblTempUsageDetail_20' ) end [2025-04-05 11:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:38:22] Production.INFO: ==28129== Releasing lock... [2025-04-05 11:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:38:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-05 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:39:06 [end_date_ymd] => 2025-04-05 11:39:06 [RateCDR] => 1 ) [2025-04-05 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:39:06' and `end` < '2025-04-05 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:39:19] Production.INFO: count ==1184 [2025-04-05 11:39:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:39:06 - End Time 2025-04-05 11:39:06 [2025-04-05 11:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839930', 'tblTempUsageDetail_20' ) start [2025-04-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839930', 'tblTempUsageDetail_20' ) end [2025-04-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839930', 'tblTempVendorCDR_20' ) start [2025-04-05 11:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839930', 'tblTempVendorCDR_20' ) end [2025-04-05 11:39:19] Production.INFO: ProcessCDR(1,14839930,1,1,2) [2025-04-05 11:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839930', 'tblTempUsageDetail_20' ) start [2025-04-05 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839930', 'tblTempUsageDetail_20' ) end [2025-04-05 11:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:39:24] Production.INFO: ==28203== Releasing lock... [2025-04-05 11:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:39:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-05 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:40:05 [end_date_ymd] => 2025-04-05 11:40:05 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:40:05' and `end` < '2025-04-05 11: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-04-05 11:40:18] Production.INFO: count ==1197 [2025-04-05 11:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:40:05 - End Time 2025-04-05 11:40:05 [2025-04-05 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839935', 'tblTempUsageDetail_20' ) start [2025-04-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839935', 'tblTempUsageDetail_20' ) end [2025-04-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839935', 'tblTempVendorCDR_20' ) start [2025-04-05 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839935', 'tblTempVendorCDR_20' ) end [2025-04-05 11:40:19] Production.INFO: ProcessCDR(1,14839935,1,1,2) [2025-04-05 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839935', 'tblTempUsageDetail_20' ) start [2025-04-05 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839935', 'tblTempUsageDetail_20' ) end [2025-04-05 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:40:23] Production.INFO: ==28278== Releasing lock... [2025-04-05 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:40:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-05 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:41:05 [end_date_ymd] => 2025-04-05 11:41:05 [RateCDR] => 1 ) [2025-04-05 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:41:05' and `end` < '2025-04-05 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:41:18] Production.INFO: count ==1235 [2025-04-05 11:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:41:05 - End Time 2025-04-05 11:41:05 [2025-04-05 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839941', 'tblTempUsageDetail_20' ) start [2025-04-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839941', 'tblTempUsageDetail_20' ) end [2025-04-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839941', 'tblTempVendorCDR_20' ) start [2025-04-05 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839941', 'tblTempVendorCDR_20' ) end [2025-04-05 11:41:18] Production.INFO: ProcessCDR(1,14839941,1,1,2) [2025-04-05 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839941', 'tblTempUsageDetail_20' ) start [2025-04-05 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839941', 'tblTempUsageDetail_20' ) end [2025-04-05 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:41:23] Production.INFO: ==28359== Releasing lock... [2025-04-05 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:41:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-05 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:42:05 [end_date_ymd] => 2025-04-05 11:42:05 [RateCDR] => 1 ) [2025-04-05 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:42:05' and `end` < '2025-04-05 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:42:18] Production.INFO: count ==1235 [2025-04-05 11:42:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:42:05 - End Time 2025-04-05 11:42:05 [2025-04-05 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839946', 'tblTempUsageDetail_20' ) start [2025-04-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839946', 'tblTempUsageDetail_20' ) end [2025-04-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839946', 'tblTempVendorCDR_20' ) start [2025-04-05 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839946', 'tblTempVendorCDR_20' ) end [2025-04-05 11:42:18] Production.INFO: ProcessCDR(1,14839946,1,1,2) [2025-04-05 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839946', 'tblTempUsageDetail_20' ) start [2025-04-05 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839946', 'tblTempUsageDetail_20' ) end [2025-04-05 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:42:22] Production.INFO: ==28430== Releasing lock... [2025-04-05 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-05 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:43:06 [end_date_ymd] => 2025-04-05 11:43:06 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:43:06' and `end` < '2025-04-05 11: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-04-05 11:43:19] Production.INFO: count ==1238 [2025-04-05 11:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:43:06 - End Time 2025-04-05 11:43:06 [2025-04-05 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839951', 'tblTempUsageDetail_20' ) start [2025-04-05 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839951', 'tblTempUsageDetail_20' ) end [2025-04-05 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839951', 'tblTempVendorCDR_20' ) start [2025-04-05 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839951', 'tblTempVendorCDR_20' ) end [2025-04-05 11:43:19] Production.INFO: ProcessCDR(1,14839951,1,1,2) [2025-04-05 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839951', 'tblTempUsageDetail_20' ) start [2025-04-05 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839951', 'tblTempUsageDetail_20' ) end [2025-04-05 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:43:24] Production.INFO: ==28505== Releasing lock... [2025-04-05 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:43:24] Production.INFO: 37 MB #Memory Used# [2025-04-05 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:44:05 [end_date_ymd] => 2025-04-05 11:44:05 [RateCDR] => 1 ) [2025-04-05 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:44:05' and `end` < '2025-04-05 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:44:18] Production.INFO: count ==1244 [2025-04-05 11:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:44:05 - End Time 2025-04-05 11:44:05 [2025-04-05 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839956', 'tblTempUsageDetail_20' ) start [2025-04-05 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839956', 'tblTempUsageDetail_20' ) end [2025-04-05 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839956', 'tblTempVendorCDR_20' ) start [2025-04-05 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839956', 'tblTempVendorCDR_20' ) end [2025-04-05 11:44:18] Production.INFO: ProcessCDR(1,14839956,1,1,2) [2025-04-05 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839956', 'tblTempUsageDetail_20' ) start [2025-04-05 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839956', 'tblTempUsageDetail_20' ) end [2025-04-05 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:44:23] Production.INFO: ==28577== Releasing lock... [2025-04-05 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:44:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-05 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:45:05 [end_date_ymd] => 2025-04-05 11:45:05 [RateCDR] => 1 ) [2025-04-05 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:45:05' and `end` < '2025-04-05 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:45:18] Production.INFO: count ==1246 [2025-04-05 11:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:45:05 - End Time 2025-04-05 11:45:05 [2025-04-05 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839961', 'tblTempUsageDetail_20' ) start [2025-04-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839961', 'tblTempUsageDetail_20' ) end [2025-04-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839961', 'tblTempVendorCDR_20' ) start [2025-04-05 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839961', 'tblTempVendorCDR_20' ) end [2025-04-05 11:45:19] Production.INFO: ProcessCDR(1,14839961,1,1,2) [2025-04-05 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839961', 'tblTempUsageDetail_20' ) start [2025-04-05 11:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839961', 'tblTempUsageDetail_20' ) end [2025-04-05 11:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:45:23] Production.INFO: ==28655== Releasing lock... [2025-04-05 11:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:45:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-05 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:46:05 [end_date_ymd] => 2025-04-05 11:46:05 [RateCDR] => 1 ) [2025-04-05 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:46:05' and `end` < '2025-04-05 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:46:17] Production.INFO: count ==1252 [2025-04-05 11:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:46:05 - End Time 2025-04-05 11:46:05 [2025-04-05 11:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839966', 'tblTempUsageDetail_20' ) start [2025-04-05 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839966', 'tblTempUsageDetail_20' ) end [2025-04-05 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839966', 'tblTempVendorCDR_20' ) start [2025-04-05 11:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839966', 'tblTempVendorCDR_20' ) end [2025-04-05 11:46:18] Production.INFO: ProcessCDR(1,14839966,1,1,2) [2025-04-05 11:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839966', 'tblTempUsageDetail_20' ) start [2025-04-05 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839966', 'tblTempUsageDetail_20' ) end [2025-04-05 11:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:46:21] Production.INFO: ==28733== Releasing lock... [2025-04-05 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:46:21] Production.INFO: 37.5 MB #Memory Used# [2025-04-05 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:47:05 [end_date_ymd] => 2025-04-05 11:47:05 [RateCDR] => 1 ) [2025-04-05 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:47:05' and `end` < '2025-04-05 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:47:18] Production.INFO: count ==1255 [2025-04-05 11:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:47:05 - End Time 2025-04-05 11:47:05 [2025-04-05 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839971', 'tblTempUsageDetail_20' ) start [2025-04-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839971', 'tblTempUsageDetail_20' ) end [2025-04-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839971', 'tblTempVendorCDR_20' ) start [2025-04-05 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839971', 'tblTempVendorCDR_20' ) end [2025-04-05 11:47:18] Production.INFO: ProcessCDR(1,14839971,1,1,2) [2025-04-05 11:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839971', 'tblTempUsageDetail_20' ) start [2025-04-05 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839971', 'tblTempUsageDetail_20' ) end [2025-04-05 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:47:23] Production.INFO: ==28813== Releasing lock... [2025-04-05 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:47:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-05 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:48:05 [end_date_ymd] => 2025-04-05 11:48:05 [RateCDR] => 1 ) [2025-04-05 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:48:05' and `end` < '2025-04-05 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:48:17] Production.INFO: count ==1258 [2025-04-05 11:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:48:05 - End Time 2025-04-05 11:48:05 [2025-04-05 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839976', 'tblTempUsageDetail_20' ) start [2025-04-05 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839976', 'tblTempUsageDetail_20' ) end [2025-04-05 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839976', 'tblTempVendorCDR_20' ) start [2025-04-05 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839976', 'tblTempVendorCDR_20' ) end [2025-04-05 11:48:18] Production.INFO: ProcessCDR(1,14839976,1,1,2) [2025-04-05 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839976', 'tblTempUsageDetail_20' ) start [2025-04-05 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839976', 'tblTempUsageDetail_20' ) end [2025-04-05 11:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:48:23] Production.INFO: ==28886== Releasing lock... [2025-04-05 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:48:23] Production.INFO: 38 MB #Memory Used# [2025-04-05 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:49:05 [end_date_ymd] => 2025-04-05 11:49:05 [RateCDR] => 1 ) [2025-04-05 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:49:05' and `end` < '2025-04-05 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:49:18] Production.INFO: count ==1274 [2025-04-05 11:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:49:05 - End Time 2025-04-05 11:49:05 [2025-04-05 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839981', 'tblTempUsageDetail_20' ) start [2025-04-05 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839981', 'tblTempUsageDetail_20' ) end [2025-04-05 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839981', 'tblTempVendorCDR_20' ) start [2025-04-05 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839981', 'tblTempVendorCDR_20' ) end [2025-04-05 11:49:19] Production.INFO: ProcessCDR(1,14839981,1,1,2) [2025-04-05 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839981', 'tblTempUsageDetail_20' ) start [2025-04-05 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839981', 'tblTempUsageDetail_20' ) end [2025-04-05 11:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:49:23] Production.INFO: ==29020== Releasing lock... [2025-04-05 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:49:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-05 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:50:07 [end_date_ymd] => 2025-04-05 11:50:07 [RateCDR] => 1 ) [2025-04-05 11: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-04-05 08:50:07' and `end` < '2025-04-05 11: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-04-05 11:50:19] Production.INFO: count ==1297 [2025-04-05 11:50:20] Production.ERROR: pbx CDR StartTime 2025-04-05 08:50:07 - End Time 2025-04-05 11:50:07 [2025-04-05 11:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839987', 'tblTempUsageDetail_20' ) start [2025-04-05 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839987', 'tblTempUsageDetail_20' ) end [2025-04-05 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839987', 'tblTempVendorCDR_20' ) start [2025-04-05 11:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839987', 'tblTempVendorCDR_20' ) end [2025-04-05 11:50:20] Production.INFO: ProcessCDR(1,14839987,1,1,2) [2025-04-05 11:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839987', 'tblTempUsageDetail_20' ) start [2025-04-05 11:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839987', 'tblTempUsageDetail_20' ) end [2025-04-05 11:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:50:25] Production.INFO: ==29099== Releasing lock... [2025-04-05 11:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:50:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-05 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:51:05 [end_date_ymd] => 2025-04-05 11:51:05 [RateCDR] => 1 ) [2025-04-05 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:51:05' and `end` < '2025-04-05 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:51:18] Production.INFO: count ==1345 [2025-04-05 11:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:51:05 - End Time 2025-04-05 11:51:05 [2025-04-05 11:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839992', 'tblTempUsageDetail_20' ) start [2025-04-05 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839992', 'tblTempUsageDetail_20' ) end [2025-04-05 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839992', 'tblTempVendorCDR_20' ) start [2025-04-05 11:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839992', 'tblTempVendorCDR_20' ) end [2025-04-05 11:51:19] Production.INFO: ProcessCDR(1,14839992,1,1,2) [2025-04-05 11:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839992', 'tblTempUsageDetail_20' ) start [2025-04-05 11:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839992', 'tblTempUsageDetail_20' ) end [2025-04-05 11:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:51:24] Production.INFO: ==29180== Releasing lock... [2025-04-05 11:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:51:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:52:05 [end_date_ymd] => 2025-04-05 11:52:05 [RateCDR] => 1 ) [2025-04-05 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:52:05' and `end` < '2025-04-05 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:52:18] Production.INFO: count ==1344 [2025-04-05 11:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:52:05 - End Time 2025-04-05 11:52:05 [2025-04-05 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839997', 'tblTempUsageDetail_20' ) start [2025-04-05 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14839997', 'tblTempUsageDetail_20' ) end [2025-04-05 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839997', 'tblTempVendorCDR_20' ) start [2025-04-05 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14839997', 'tblTempVendorCDR_20' ) end [2025-04-05 11:52:18] Production.INFO: ProcessCDR(1,14839997,1,1,2) [2025-04-05 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14839997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14839997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14839997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14839997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839997', 'tblTempUsageDetail_20' ) start [2025-04-05 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14839997', 'tblTempUsageDetail_20' ) end [2025-04-05 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:52:22] Production.INFO: ==29255== Releasing lock... [2025-04-05 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:53:05 [end_date_ymd] => 2025-04-05 11:53:05 [RateCDR] => 1 ) [2025-04-05 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:53:05' and `end` < '2025-04-05 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:53:18] Production.INFO: count ==1346 [2025-04-05 11:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:53:05 - End Time 2025-04-05 11:53:05 [2025-04-05 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840002', 'tblTempUsageDetail_20' ) start [2025-04-05 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840002', 'tblTempUsageDetail_20' ) end [2025-04-05 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840002', 'tblTempVendorCDR_20' ) start [2025-04-05 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840002', 'tblTempVendorCDR_20' ) end [2025-04-05 11:53:18] Production.INFO: ProcessCDR(1,14840002,1,1,2) [2025-04-05 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840002', 'tblTempUsageDetail_20' ) start [2025-04-05 11:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840002', 'tblTempUsageDetail_20' ) end [2025-04-05 11:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:53:23] Production.INFO: ==29331== Releasing lock... [2025-04-05 11:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:53:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:54:05 [end_date_ymd] => 2025-04-05 11:54:05 [RateCDR] => 1 ) [2025-04-05 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:54:05' and `end` < '2025-04-05 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:54:17] Production.INFO: count ==1351 [2025-04-05 11:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:54:05 - End Time 2025-04-05 11:54:05 [2025-04-05 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840007', 'tblTempUsageDetail_20' ) start [2025-04-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840007', 'tblTempUsageDetail_20' ) end [2025-04-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840007', 'tblTempVendorCDR_20' ) start [2025-04-05 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840007', 'tblTempVendorCDR_20' ) end [2025-04-05 11:54:18] Production.INFO: ProcessCDR(1,14840007,1,1,2) [2025-04-05 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840007', 'tblTempUsageDetail_20' ) start [2025-04-05 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840007', 'tblTempUsageDetail_20' ) end [2025-04-05 11:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:54:21] Production.INFO: ==29407== Releasing lock... [2025-04-05 11:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:54:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:55:05 [end_date_ymd] => 2025-04-05 11:55:05 [RateCDR] => 1 ) [2025-04-05 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:55:05' and `end` < '2025-04-05 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:55:18] Production.INFO: count ==1365 [2025-04-05 11:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:55:05 - End Time 2025-04-05 11:55:05 [2025-04-05 11:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840012', 'tblTempUsageDetail_20' ) start [2025-04-05 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840012', 'tblTempUsageDetail_20' ) end [2025-04-05 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840012', 'tblTempVendorCDR_20' ) start [2025-04-05 11:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840012', 'tblTempVendorCDR_20' ) end [2025-04-05 11:55:19] Production.INFO: ProcessCDR(1,14840012,1,1,2) [2025-04-05 11:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840012', 'tblTempUsageDetail_20' ) start [2025-04-05 11:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840012', 'tblTempUsageDetail_20' ) end [2025-04-05 11:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:55:24] Production.INFO: ==29479== Releasing lock... [2025-04-05 11:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:55:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:56:06 [end_date_ymd] => 2025-04-05 11:56:06 [RateCDR] => 1 ) [2025-04-05 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:56:06' and `end` < '2025-04-05 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:56:19] Production.INFO: count ==1369 [2025-04-05 11:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:56:06 - End Time 2025-04-05 11:56:06 [2025-04-05 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840017', 'tblTempUsageDetail_20' ) start [2025-04-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840017', 'tblTempUsageDetail_20' ) end [2025-04-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840017', 'tblTempVendorCDR_20' ) start [2025-04-05 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840017', 'tblTempVendorCDR_20' ) end [2025-04-05 11:56:19] Production.INFO: ProcessCDR(1,14840017,1,1,2) [2025-04-05 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840017', 'tblTempUsageDetail_20' ) start [2025-04-05 11:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840017', 'tblTempUsageDetail_20' ) end [2025-04-05 11:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:56:24] Production.INFO: ==29557== Releasing lock... [2025-04-05 11:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:56:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:57:05 [end_date_ymd] => 2025-04-05 11:57:05 [RateCDR] => 1 ) [2025-04-05 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:57:05' and `end` < '2025-04-05 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:57:18] Production.INFO: count ==1370 [2025-04-05 11:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:57:05 - End Time 2025-04-05 11:57:05 [2025-04-05 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840022', 'tblTempUsageDetail_20' ) start [2025-04-05 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840022', 'tblTempUsageDetail_20' ) end [2025-04-05 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840022', 'tblTempVendorCDR_20' ) start [2025-04-05 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840022', 'tblTempVendorCDR_20' ) end [2025-04-05 11:57:18] Production.INFO: ProcessCDR(1,14840022,1,1,2) [2025-04-05 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840022', 'tblTempUsageDetail_20' ) start [2025-04-05 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840022', 'tblTempUsageDetail_20' ) end [2025-04-05 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:57:22] Production.INFO: ==29630== Releasing lock... [2025-04-05 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:58:05 [end_date_ymd] => 2025-04-05 11:58:05 [RateCDR] => 1 ) [2025-04-05 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:58:05' and `end` < '2025-04-05 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:58:18] Production.INFO: count ==1363 [2025-04-05 11:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 08:58:05 - End Time 2025-04-05 11:58:05 [2025-04-05 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840027', 'tblTempUsageDetail_20' ) start [2025-04-05 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840027', 'tblTempUsageDetail_20' ) end [2025-04-05 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840027', 'tblTempVendorCDR_20' ) start [2025-04-05 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840027', 'tblTempVendorCDR_20' ) end [2025-04-05 11:58:19] Production.INFO: ProcessCDR(1,14840027,1,1,2) [2025-04-05 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840027', 'tblTempUsageDetail_20' ) start [2025-04-05 11:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840027', 'tblTempUsageDetail_20' ) end [2025-04-05 11:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:58:22] Production.INFO: ==29707== Releasing lock... [2025-04-05 11:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 08:59:06 [end_date_ymd] => 2025-04-05 11:59:06 [RateCDR] => 1 ) [2025-04-05 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 08:59:06' and `end` < '2025-04-05 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 11:59:18] Production.INFO: count ==1396 [2025-04-05 11:59:19] Production.ERROR: pbx CDR StartTime 2025-04-05 08:59:06 - End Time 2025-04-05 11:59:06 [2025-04-05 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840032', 'tblTempUsageDetail_20' ) start [2025-04-05 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840032', 'tblTempUsageDetail_20' ) end [2025-04-05 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840032', 'tblTempVendorCDR_20' ) start [2025-04-05 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840032', 'tblTempVendorCDR_20' ) end [2025-04-05 11:59:19] Production.INFO: ProcessCDR(1,14840032,1,1,2) [2025-04-05 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 11:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840032', 'tblTempUsageDetail_20' ) start [2025-04-05 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840032', 'tblTempUsageDetail_20' ) end [2025-04-05 11:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 11:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 11:59:24] Production.INFO: ==29782== Releasing lock... [2025-04-05 11:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 11:59:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:00:06 [end_date_ymd] => 2025-04-05 12:00:06 [RateCDR] => 1 ) [2025-04-05 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:00:06' and `end` < '2025-04-05 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:00:19] Production.INFO: count ==1395 [2025-04-05 12:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:00:06 - End Time 2025-04-05 12:00:06 [2025-04-05 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840038', 'tblTempUsageDetail_20' ) start [2025-04-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840038', 'tblTempUsageDetail_20' ) end [2025-04-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840038', 'tblTempVendorCDR_20' ) start [2025-04-05 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840038', 'tblTempVendorCDR_20' ) end [2025-04-05 12:00:19] Production.INFO: ProcessCDR(1,14840038,1,1,2) [2025-04-05 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840038', 'tblTempUsageDetail_20' ) start [2025-04-05 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840038', 'tblTempUsageDetail_20' ) end [2025-04-05 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:00:22] Production.INFO: ==29858== Releasing lock... [2025-04-05 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:00:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:01:06 [end_date_ymd] => 2025-04-05 12:01:06 [RateCDR] => 1 ) [2025-04-05 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:01:06' and `end` < '2025-04-05 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:01:18] Production.INFO: count ==1431 [2025-04-05 12:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:01:06 - End Time 2025-04-05 12:01:06 [2025-04-05 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840043', 'tblTempUsageDetail_20' ) start [2025-04-05 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840043', 'tblTempUsageDetail_20' ) end [2025-04-05 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840043', 'tblTempVendorCDR_20' ) start [2025-04-05 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840043', 'tblTempVendorCDR_20' ) end [2025-04-05 12:01:19] Production.INFO: ProcessCDR(1,14840043,1,1,2) [2025-04-05 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840043', 'tblTempUsageDetail_20' ) start [2025-04-05 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840043', 'tblTempUsageDetail_20' ) end [2025-04-05 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:01:25] Production.INFO: ==29944== Releasing lock... [2025-04-05 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:01:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:02:05 [end_date_ymd] => 2025-04-05 12:02:05 [RateCDR] => 1 ) [2025-04-05 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:02:05' and `end` < '2025-04-05 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:02:18] Production.INFO: count ==1427 [2025-04-05 12:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:02:05 - End Time 2025-04-05 12:02:05 [2025-04-05 12:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840048', 'tblTempUsageDetail_20' ) start [2025-04-05 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840048', 'tblTempUsageDetail_20' ) end [2025-04-05 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840048', 'tblTempVendorCDR_20' ) start [2025-04-05 12:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840048', 'tblTempVendorCDR_20' ) end [2025-04-05 12:02:19] Production.INFO: ProcessCDR(1,14840048,1,1,2) [2025-04-05 12:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840048', 'tblTempUsageDetail_20' ) start [2025-04-05 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840048', 'tblTempUsageDetail_20' ) end [2025-04-05 12:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:02:22] Production.INFO: ==30020== Releasing lock... [2025-04-05 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:02:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:03:06 [end_date_ymd] => 2025-04-05 12:03:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:03:06' and `end` < '2025-04-05 12: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-04-05 12:03:19] Production.INFO: count ==1427 [2025-04-05 12:03:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:03:06 - End Time 2025-04-05 12:03:06 [2025-04-05 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840050', 'tblTempUsageDetail_20' ) start [2025-04-05 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840050', 'tblTempUsageDetail_20' ) end [2025-04-05 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840050', 'tblTempVendorCDR_20' ) start [2025-04-05 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840050', 'tblTempVendorCDR_20' ) end [2025-04-05 12:03:19] Production.INFO: ProcessCDR(1,14840050,1,1,2) [2025-04-05 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840050', 'tblTempUsageDetail_20' ) start [2025-04-05 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840050', 'tblTempUsageDetail_20' ) end [2025-04-05 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:03:22] Production.INFO: ==30097== Releasing lock... [2025-04-05 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:03:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:04:06 [end_date_ymd] => 2025-04-05 12:04:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:04:06' and `end` < '2025-04-05 12: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-04-05 12:04:19] Production.INFO: count ==1418 [2025-04-05 12:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:04:06 - End Time 2025-04-05 12:04:06 [2025-04-05 12:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840058', 'tblTempUsageDetail_20' ) start [2025-04-05 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840058', 'tblTempUsageDetail_20' ) end [2025-04-05 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840058', 'tblTempVendorCDR_20' ) start [2025-04-05 12:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840058', 'tblTempVendorCDR_20' ) end [2025-04-05 12:04:19] Production.INFO: ProcessCDR(1,14840058,1,1,2) [2025-04-05 12:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840058', 'tblTempUsageDetail_20' ) start [2025-04-05 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840058', 'tblTempUsageDetail_20' ) end [2025-04-05 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:04:23] Production.INFO: ==30175== Releasing lock... [2025-04-05 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:04:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:05:06 [end_date_ymd] => 2025-04-05 12:05:06 [RateCDR] => 1 ) [2025-04-05 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:05:06' and `end` < '2025-04-05 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:05:19] Production.INFO: count ==1418 [2025-04-05 12:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:05:06 - End Time 2025-04-05 12:05:06 [2025-04-05 12:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840063', 'tblTempUsageDetail_20' ) start [2025-04-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840063', 'tblTempUsageDetail_20' ) end [2025-04-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840063', 'tblTempVendorCDR_20' ) start [2025-04-05 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840063', 'tblTempVendorCDR_20' ) end [2025-04-05 12:05:20] Production.INFO: ProcessCDR(1,14840063,1,1,2) [2025-04-05 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840063', 'tblTempUsageDetail_20' ) start [2025-04-05 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840063', 'tblTempUsageDetail_20' ) end [2025-04-05 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:05:25] Production.INFO: ==30293== Releasing lock... [2025-04-05 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:05:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:06:05 [end_date_ymd] => 2025-04-05 12:06:05 [RateCDR] => 1 ) [2025-04-05 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:06:05' and `end` < '2025-04-05 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:06:18] Production.INFO: count ==1418 [2025-04-05 12:06:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:06:05 - End Time 2025-04-05 12:06:05 [2025-04-05 12:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840068', 'tblTempUsageDetail_20' ) start [2025-04-05 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840068', 'tblTempUsageDetail_20' ) end [2025-04-05 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840068', 'tblTempVendorCDR_20' ) start [2025-04-05 12:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840068', 'tblTempVendorCDR_20' ) end [2025-04-05 12:06:19] Production.INFO: ProcessCDR(1,14840068,1,1,2) [2025-04-05 12:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840068', 'tblTempUsageDetail_20' ) start [2025-04-05 12:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840068', 'tblTempUsageDetail_20' ) end [2025-04-05 12:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:06:24] Production.INFO: ==30364== Releasing lock... [2025-04-05 12:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:06:24] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:07:05 [end_date_ymd] => 2025-04-05 12:07:05 [RateCDR] => 1 ) [2025-04-05 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:07:05' and `end` < '2025-04-05 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:07:18] Production.INFO: count ==1406 [2025-04-05 12:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:07:05 - End Time 2025-04-05 12:07:05 [2025-04-05 12:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840073', 'tblTempUsageDetail_20' ) start [2025-04-05 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840073', 'tblTempUsageDetail_20' ) end [2025-04-05 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840073', 'tblTempVendorCDR_20' ) start [2025-04-05 12:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840073', 'tblTempVendorCDR_20' ) end [2025-04-05 12:07:19] Production.INFO: ProcessCDR(1,14840073,1,1,2) [2025-04-05 12:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840073', 'tblTempUsageDetail_20' ) start [2025-04-05 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840073', 'tblTempUsageDetail_20' ) end [2025-04-05 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:07:24] Production.INFO: ==30439== Releasing lock... [2025-04-05 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:07:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:08:05 [end_date_ymd] => 2025-04-05 12:08:05 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:08:05' and `end` < '2025-04-05 12: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-04-05 12:08:18] Production.INFO: count ==1408 [2025-04-05 12:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:08:05 - End Time 2025-04-05 12:08:05 [2025-04-05 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840078', 'tblTempUsageDetail_20' ) start [2025-04-05 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840078', 'tblTempUsageDetail_20' ) end [2025-04-05 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840078', 'tblTempVendorCDR_20' ) start [2025-04-05 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840078', 'tblTempVendorCDR_20' ) end [2025-04-05 12:08:18] Production.INFO: ProcessCDR(1,14840078,1,1,2) [2025-04-05 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840078', 'tblTempUsageDetail_20' ) start [2025-04-05 12:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840078', 'tblTempUsageDetail_20' ) end [2025-04-05 12:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:08:23] Production.INFO: ==30516== Releasing lock... [2025-04-05 12:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:09:05 [end_date_ymd] => 2025-04-05 12:09:05 [RateCDR] => 1 ) [2025-04-05 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:09:05' and `end` < '2025-04-05 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:09:18] Production.INFO: count ==1407 [2025-04-05 12:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:09:05 - End Time 2025-04-05 12:09:05 [2025-04-05 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840083', 'tblTempUsageDetail_20' ) start [2025-04-05 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840083', 'tblTempUsageDetail_20' ) end [2025-04-05 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840083', 'tblTempVendorCDR_20' ) start [2025-04-05 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840083', 'tblTempVendorCDR_20' ) end [2025-04-05 12:09:19] Production.INFO: ProcessCDR(1,14840083,1,1,2) [2025-04-05 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840083', 'tblTempUsageDetail_20' ) start [2025-04-05 12:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840083', 'tblTempUsageDetail_20' ) end [2025-04-05 12:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:09:24] Production.INFO: ==30596== Releasing lock... [2025-04-05 12:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:09:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:10:05 [end_date_ymd] => 2025-04-05 12:10:05 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:10:05' and `end` < '2025-04-05 12: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-04-05 12:10:18] Production.INFO: count ==1407 [2025-04-05 12:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:10:05 - End Time 2025-04-05 12:10:05 [2025-04-05 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840088', 'tblTempUsageDetail_20' ) start [2025-04-05 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840088', 'tblTempUsageDetail_20' ) end [2025-04-05 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840088', 'tblTempVendorCDR_20' ) start [2025-04-05 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840088', 'tblTempVendorCDR_20' ) end [2025-04-05 12:10:19] Production.INFO: ProcessCDR(1,14840088,1,1,2) [2025-04-05 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840088', 'tblTempUsageDetail_20' ) start [2025-04-05 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840088', 'tblTempUsageDetail_20' ) end [2025-04-05 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:10:23] Production.INFO: ==30676== Releasing lock... [2025-04-05 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:10:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:11:05 [end_date_ymd] => 2025-04-05 12:11:05 [RateCDR] => 1 ) [2025-04-05 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:11:05' and `end` < '2025-04-05 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:11:18] Production.INFO: count ==1420 [2025-04-05 12:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:11:05 - End Time 2025-04-05 12:11:05 [2025-04-05 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840094', 'tblTempUsageDetail_20' ) start [2025-04-05 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840094', 'tblTempUsageDetail_20' ) end [2025-04-05 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840094', 'tblTempVendorCDR_20' ) start [2025-04-05 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840094', 'tblTempVendorCDR_20' ) end [2025-04-05 12:11:19] Production.INFO: ProcessCDR(1,14840094,1,1,2) [2025-04-05 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840094', 'tblTempUsageDetail_20' ) start [2025-04-05 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840094', 'tblTempUsageDetail_20' ) end [2025-04-05 12:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:11:22] Production.INFO: ==30760== Releasing lock... [2025-04-05 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:11:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:12:06 [end_date_ymd] => 2025-04-05 12:12:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:12:06' and `end` < '2025-04-05 12: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-04-05 12:12:19] Production.INFO: count ==1424 [2025-04-05 12:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:12:06 - End Time 2025-04-05 12:12:06 [2025-04-05 12:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840099', 'tblTempUsageDetail_20' ) start [2025-04-05 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840099', 'tblTempUsageDetail_20' ) end [2025-04-05 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840099', 'tblTempVendorCDR_20' ) start [2025-04-05 12:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840099', 'tblTempVendorCDR_20' ) end [2025-04-05 12:12:19] Production.INFO: ProcessCDR(1,14840099,1,1,2) [2025-04-05 12:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840099', 'tblTempUsageDetail_20' ) start [2025-04-05 12:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840099', 'tblTempUsageDetail_20' ) end [2025-04-05 12:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:12:23] Production.INFO: ==30835== Releasing lock... [2025-04-05 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:12:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:13:05 [end_date_ymd] => 2025-04-05 12:13:05 [RateCDR] => 1 ) [2025-04-05 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:13:05' and `end` < '2025-04-05 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:13:18] Production.INFO: count ==1420 [2025-04-05 12:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:13:05 - End Time 2025-04-05 12:13:05 [2025-04-05 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840104', 'tblTempUsageDetail_20' ) start [2025-04-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840104', 'tblTempUsageDetail_20' ) end [2025-04-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840104', 'tblTempVendorCDR_20' ) start [2025-04-05 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840104', 'tblTempVendorCDR_20' ) end [2025-04-05 12:13:18] Production.INFO: ProcessCDR(1,14840104,1,1,2) [2025-04-05 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840104', 'tblTempUsageDetail_20' ) start [2025-04-05 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840104', 'tblTempUsageDetail_20' ) end [2025-04-05 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:13:22] Production.INFO: ==30909== Releasing lock... [2025-04-05 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:13:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:14:05 [end_date_ymd] => 2025-04-05 12:14:05 [RateCDR] => 1 ) [2025-04-05 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:14:05' and `end` < '2025-04-05 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:14:18] Production.INFO: count ==1423 [2025-04-05 12:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:14:05 - End Time 2025-04-05 12:14:05 [2025-04-05 12:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840109', 'tblTempUsageDetail_20' ) start [2025-04-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840109', 'tblTempUsageDetail_20' ) end [2025-04-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840109', 'tblTempVendorCDR_20' ) start [2025-04-05 12:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840109', 'tblTempVendorCDR_20' ) end [2025-04-05 12:14:19] Production.INFO: ProcessCDR(1,14840109,1,1,2) [2025-04-05 12:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840109', 'tblTempUsageDetail_20' ) start [2025-04-05 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840109', 'tblTempUsageDetail_20' ) end [2025-04-05 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:14:22] Production.INFO: ==30999== Releasing lock... [2025-04-05 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:14:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:15:05 [end_date_ymd] => 2025-04-05 12:15:05 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:15:05' and `end` < '2025-04-05 12: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-04-05 12:15:18] Production.INFO: count ==1425 [2025-04-05 12:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:15:05 - End Time 2025-04-05 12:15:05 [2025-04-05 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840114', 'tblTempUsageDetail_20' ) start [2025-04-05 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840114', 'tblTempUsageDetail_20' ) end [2025-04-05 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840114', 'tblTempVendorCDR_20' ) start [2025-04-05 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840114', 'tblTempVendorCDR_20' ) end [2025-04-05 12:15:18] Production.INFO: ProcessCDR(1,14840114,1,1,2) [2025-04-05 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840114', 'tblTempUsageDetail_20' ) start [2025-04-05 12:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840114', 'tblTempUsageDetail_20' ) end [2025-04-05 12:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:15:24] Production.INFO: ==31086== Releasing lock... [2025-04-05 12:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:15:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:16:06 [end_date_ymd] => 2025-04-05 12:16:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:16:06' and `end` < '2025-04-05 12: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-04-05 12:16:19] Production.INFO: count ==1427 [2025-04-05 12:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:16:06 - End Time 2025-04-05 12:16:06 [2025-04-05 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840119', 'tblTempUsageDetail_20' ) start [2025-04-05 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840119', 'tblTempUsageDetail_20' ) end [2025-04-05 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840119', 'tblTempVendorCDR_20' ) start [2025-04-05 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840119', 'tblTempVendorCDR_20' ) end [2025-04-05 12:16:19] Production.INFO: ProcessCDR(1,14840119,1,1,2) [2025-04-05 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840119', 'tblTempUsageDetail_20' ) start [2025-04-05 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840119', 'tblTempUsageDetail_20' ) end [2025-04-05 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:16:24] Production.INFO: ==31168== Releasing lock... [2025-04-05 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:17:05 [end_date_ymd] => 2025-04-05 12:17:05 [RateCDR] => 1 ) [2025-04-05 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:17:05' and `end` < '2025-04-05 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:17:18] Production.INFO: count ==1431 [2025-04-05 12:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:17:05 - End Time 2025-04-05 12:17:05 [2025-04-05 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840124', 'tblTempUsageDetail_20' ) start [2025-04-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840124', 'tblTempUsageDetail_20' ) end [2025-04-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840124', 'tblTempVendorCDR_20' ) start [2025-04-05 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840124', 'tblTempVendorCDR_20' ) end [2025-04-05 12:17:18] Production.INFO: ProcessCDR(1,14840124,1,1,2) [2025-04-05 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840124', 'tblTempUsageDetail_20' ) start [2025-04-05 12:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840124', 'tblTempUsageDetail_20' ) end [2025-04-05 12:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:17:24] Production.INFO: ==31247== Releasing lock... [2025-04-05 12:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:17:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:18:05 [end_date_ymd] => 2025-04-05 12:18:05 [RateCDR] => 1 ) [2025-04-05 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:18:05' and `end` < '2025-04-05 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:18:18] Production.INFO: count ==1430 [2025-04-05 12:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:18:05 - End Time 2025-04-05 12:18:05 [2025-04-05 12:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840129', 'tblTempUsageDetail_20' ) start [2025-04-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840129', 'tblTempUsageDetail_20' ) end [2025-04-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840129', 'tblTempVendorCDR_20' ) start [2025-04-05 12:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840129', 'tblTempVendorCDR_20' ) end [2025-04-05 12:18:19] Production.INFO: ProcessCDR(1,14840129,1,1,2) [2025-04-05 12:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840129', 'tblTempUsageDetail_20' ) start [2025-04-05 12:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840129', 'tblTempUsageDetail_20' ) end [2025-04-05 12:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:18:22] Production.INFO: ==31334== Releasing lock... [2025-04-05 12:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:19:05 [end_date_ymd] => 2025-04-05 12:19:05 [RateCDR] => 1 ) [2025-04-05 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:19:05' and `end` < '2025-04-05 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:19:18] Production.INFO: count ==1430 [2025-04-05 12:19:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:19:05 - End Time 2025-04-05 12:19:05 [2025-04-05 12:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840134', 'tblTempUsageDetail_20' ) start [2025-04-05 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840134', 'tblTempUsageDetail_20' ) end [2025-04-05 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840134', 'tblTempVendorCDR_20' ) start [2025-04-05 12:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840134', 'tblTempVendorCDR_20' ) end [2025-04-05 12:19:19] Production.INFO: ProcessCDR(1,14840134,1,1,2) [2025-04-05 12:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840134', 'tblTempUsageDetail_20' ) start [2025-04-05 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840134', 'tblTempUsageDetail_20' ) end [2025-04-05 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:19:23] Production.INFO: ==31422== Releasing lock... [2025-04-05 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:19:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:20:06 [end_date_ymd] => 2025-04-05 12:20:06 [RateCDR] => 1 ) [2025-04-05 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:20:06' and `end` < '2025-04-05 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:20:19] Production.INFO: count ==1421 [2025-04-05 12:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 09:20:06 - End Time 2025-04-05 12:20:06 [2025-04-05 12:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840140', 'tblTempUsageDetail_20' ) start [2025-04-05 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840140', 'tblTempUsageDetail_20' ) end [2025-04-05 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840140', 'tblTempVendorCDR_20' ) start [2025-04-05 12:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840140', 'tblTempVendorCDR_20' ) end [2025-04-05 12:20:20] Production.INFO: ProcessCDR(1,14840140,1,1,2) [2025-04-05 12:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840140', 'tblTempUsageDetail_20' ) start [2025-04-05 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840140', 'tblTempUsageDetail_20' ) end [2025-04-05 12:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:20:23] Production.INFO: ==31536== Releasing lock... [2025-04-05 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:20:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:21:05 [end_date_ymd] => 2025-04-05 12:21:05 [RateCDR] => 1 ) [2025-04-05 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:21:05' and `end` < '2025-04-05 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:21:18] Production.INFO: count ==1423 [2025-04-05 12:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:21:05 - End Time 2025-04-05 12:21:05 [2025-04-05 12:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840145', 'tblTempUsageDetail_20' ) start [2025-04-05 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840145', 'tblTempUsageDetail_20' ) end [2025-04-05 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840145', 'tblTempVendorCDR_20' ) start [2025-04-05 12:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840145', 'tblTempVendorCDR_20' ) end [2025-04-05 12:21:19] Production.INFO: ProcessCDR(1,14840145,1,1,2) [2025-04-05 12:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840145', 'tblTempUsageDetail_20' ) start [2025-04-05 12:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840145', 'tblTempUsageDetail_20' ) end [2025-04-05 12:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:21:22] Production.INFO: ==31608== Releasing lock... [2025-04-05 12:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:21:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:22:05 [end_date_ymd] => 2025-04-05 12:22:05 [RateCDR] => 1 ) [2025-04-05 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:22:05' and `end` < '2025-04-05 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:22:18] Production.INFO: count ==1428 [2025-04-05 12:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:22:05 - End Time 2025-04-05 12:22:05 [2025-04-05 12:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840150', 'tblTempUsageDetail_20' ) start [2025-04-05 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840150', 'tblTempUsageDetail_20' ) end [2025-04-05 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840150', 'tblTempVendorCDR_20' ) start [2025-04-05 12:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840150', 'tblTempVendorCDR_20' ) end [2025-04-05 12:22:19] Production.INFO: ProcessCDR(1,14840150,1,1,2) [2025-04-05 12:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840150', 'tblTempUsageDetail_20' ) start [2025-04-05 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840150', 'tblTempUsageDetail_20' ) end [2025-04-05 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:22:22] Production.INFO: ==31681== Releasing lock... [2025-04-05 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:22:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:23:06 [end_date_ymd] => 2025-04-05 12:23:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:23:06' and `end` < '2025-04-05 12: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-04-05 12:23:18] Production.INFO: count ==1427 [2025-04-05 12:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:23:06 - End Time 2025-04-05 12:23:06 [2025-04-05 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840155', 'tblTempUsageDetail_20' ) start [2025-04-05 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840155', 'tblTempUsageDetail_20' ) end [2025-04-05 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840155', 'tblTempVendorCDR_20' ) start [2025-04-05 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840155', 'tblTempVendorCDR_20' ) end [2025-04-05 12:23:19] Production.INFO: ProcessCDR(1,14840155,1,1,2) [2025-04-05 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840155', 'tblTempUsageDetail_20' ) start [2025-04-05 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840155', 'tblTempUsageDetail_20' ) end [2025-04-05 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:23:22] Production.INFO: ==31754== Releasing lock... [2025-04-05 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:23:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:24:05 [end_date_ymd] => 2025-04-05 12:24:05 [RateCDR] => 1 ) [2025-04-05 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:24:05' and `end` < '2025-04-05 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:24:18] Production.INFO: count ==1425 [2025-04-05 12:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:24:05 - End Time 2025-04-05 12:24:05 [2025-04-05 12:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840160', 'tblTempUsageDetail_20' ) start [2025-04-05 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840160', 'tblTempUsageDetail_20' ) end [2025-04-05 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840160', 'tblTempVendorCDR_20' ) start [2025-04-05 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840160', 'tblTempVendorCDR_20' ) end [2025-04-05 12:24:19] Production.INFO: ProcessCDR(1,14840160,1,1,2) [2025-04-05 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840160', 'tblTempUsageDetail_20' ) start [2025-04-05 12:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840160', 'tblTempUsageDetail_20' ) end [2025-04-05 12:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:24:24] Production.INFO: ==31826== Releasing lock... [2025-04-05 12:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:24:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:25:06 [end_date_ymd] => 2025-04-05 12:25:06 [RateCDR] => 1 ) [2025-04-05 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:25:06' and `end` < '2025-04-05 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:25:18] Production.INFO: count ==1426 [2025-04-05 12:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:25:06 - End Time 2025-04-05 12:25:06 [2025-04-05 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840165', 'tblTempUsageDetail_20' ) start [2025-04-05 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840165', 'tblTempUsageDetail_20' ) end [2025-04-05 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840165', 'tblTempVendorCDR_20' ) start [2025-04-05 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840165', 'tblTempVendorCDR_20' ) end [2025-04-05 12:25:19] Production.INFO: ProcessCDR(1,14840165,1,1,2) [2025-04-05 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840165', 'tblTempUsageDetail_20' ) start [2025-04-05 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840165', 'tblTempUsageDetail_20' ) end [2025-04-05 12:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:25:22] Production.INFO: ==31900== Releasing lock... [2025-04-05 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:26:05 [end_date_ymd] => 2025-04-05 12:26:05 [RateCDR] => 1 ) [2025-04-05 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:26:05' and `end` < '2025-04-05 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:26:18] Production.INFO: count ==1423 [2025-04-05 12:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:26:05 - End Time 2025-04-05 12:26:05 [2025-04-05 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840170', 'tblTempUsageDetail_20' ) start [2025-04-05 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840170', 'tblTempUsageDetail_20' ) end [2025-04-05 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840170', 'tblTempVendorCDR_20' ) start [2025-04-05 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840170', 'tblTempVendorCDR_20' ) end [2025-04-05 12:26:18] Production.INFO: ProcessCDR(1,14840170,1,1,2) [2025-04-05 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840170', 'tblTempUsageDetail_20' ) start [2025-04-05 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840170', 'tblTempUsageDetail_20' ) end [2025-04-05 12:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:26:22] Production.INFO: ==31973== Releasing lock... [2025-04-05 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:27:05 [end_date_ymd] => 2025-04-05 12:27:05 [RateCDR] => 1 ) [2025-04-05 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:27:05' and `end` < '2025-04-05 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:27:18] Production.INFO: count ==1423 [2025-04-05 12:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:27:05 - End Time 2025-04-05 12:27:05 [2025-04-05 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840175', 'tblTempUsageDetail_20' ) start [2025-04-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840175', 'tblTempUsageDetail_20' ) end [2025-04-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840175', 'tblTempVendorCDR_20' ) start [2025-04-05 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840175', 'tblTempVendorCDR_20' ) end [2025-04-05 12:27:19] Production.INFO: ProcessCDR(1,14840175,1,1,2) [2025-04-05 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840175', 'tblTempUsageDetail_20' ) start [2025-04-05 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840175', 'tblTempUsageDetail_20' ) end [2025-04-05 12:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:27:22] Production.INFO: ==32050== Releasing lock... [2025-04-05 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:27:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:28:05 [end_date_ymd] => 2025-04-05 12:28:05 [RateCDR] => 1 ) [2025-04-05 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:28:05' and `end` < '2025-04-05 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:28:18] Production.INFO: count ==1423 [2025-04-05 12:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:28:05 - End Time 2025-04-05 12:28:05 [2025-04-05 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840180', 'tblTempUsageDetail_20' ) start [2025-04-05 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840180', 'tblTempUsageDetail_20' ) end [2025-04-05 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840180', 'tblTempVendorCDR_20' ) start [2025-04-05 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840180', 'tblTempVendorCDR_20' ) end [2025-04-05 12:28:19] Production.INFO: ProcessCDR(1,14840180,1,1,2) [2025-04-05 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840180', 'tblTempUsageDetail_20' ) start [2025-04-05 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840180', 'tblTempUsageDetail_20' ) end [2025-04-05 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:28:23] Production.INFO: ==32130== Releasing lock... [2025-04-05 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:29:05 [end_date_ymd] => 2025-04-05 12:29:05 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:29:05' and `end` < '2025-04-05 12: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-04-05 12:29:18] Production.INFO: count ==1411 [2025-04-05 12:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:29:05 - End Time 2025-04-05 12:29:05 [2025-04-05 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840185', 'tblTempUsageDetail_20' ) start [2025-04-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840185', 'tblTempUsageDetail_20' ) end [2025-04-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840185', 'tblTempVendorCDR_20' ) start [2025-04-05 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840185', 'tblTempVendorCDR_20' ) end [2025-04-05 12:29:18] Production.INFO: ProcessCDR(1,14840185,1,1,2) [2025-04-05 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840185', 'tblTempUsageDetail_20' ) start [2025-04-05 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840185', 'tblTempUsageDetail_20' ) end [2025-04-05 12:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:29:24] Production.INFO: ==32212== Releasing lock... [2025-04-05 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:30:06 [end_date_ymd] => 2025-04-05 12:30:06 [RateCDR] => 1 ) [2025-04-05 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:30:06' and `end` < '2025-04-05 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:30:19] Production.INFO: count ==1411 [2025-04-05 12:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:30:06 - End Time 2025-04-05 12:30:06 [2025-04-05 12:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840191', 'tblTempUsageDetail_20' ) start [2025-04-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840191', 'tblTempUsageDetail_20' ) end [2025-04-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840191', 'tblTempVendorCDR_20' ) start [2025-04-05 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840191', 'tblTempVendorCDR_20' ) end [2025-04-05 12:30:19] Production.INFO: ProcessCDR(1,14840191,1,1,2) [2025-04-05 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840191', 'tblTempUsageDetail_20' ) start [2025-04-05 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840191', 'tblTempUsageDetail_20' ) end [2025-04-05 12:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:30:23] Production.INFO: ==32289== Releasing lock... [2025-04-05 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:30:23] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:31:05 [end_date_ymd] => 2025-04-05 12:31:05 [RateCDR] => 1 ) [2025-04-05 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:31:05' and `end` < '2025-04-05 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:31:18] Production.INFO: count ==1394 [2025-04-05 12:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:31:05 - End Time 2025-04-05 12:31:05 [2025-04-05 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840196', 'tblTempUsageDetail_20' ) start [2025-04-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840196', 'tblTempUsageDetail_20' ) end [2025-04-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840196', 'tblTempVendorCDR_20' ) start [2025-04-05 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840196', 'tblTempVendorCDR_20' ) end [2025-04-05 12:31:18] Production.INFO: ProcessCDR(1,14840196,1,1,2) [2025-04-05 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840196', 'tblTempUsageDetail_20' ) start [2025-04-05 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840196', 'tblTempUsageDetail_20' ) end [2025-04-05 12:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:31:22] Production.INFO: ==32366== Releasing lock... [2025-04-05 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:31:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:32:06 [end_date_ymd] => 2025-04-05 12:32:06 [RateCDR] => 1 ) [2025-04-05 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:32:06' and `end` < '2025-04-05 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:32:19] Production.INFO: count ==1393 [2025-04-05 12:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:32:06 - End Time 2025-04-05 12:32:06 [2025-04-05 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840201', 'tblTempUsageDetail_20' ) start [2025-04-05 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840201', 'tblTempUsageDetail_20' ) end [2025-04-05 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840201', 'tblTempVendorCDR_20' ) start [2025-04-05 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840201', 'tblTempVendorCDR_20' ) end [2025-04-05 12:32:19] Production.INFO: ProcessCDR(1,14840201,1,1,2) [2025-04-05 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840201', 'tblTempUsageDetail_20' ) start [2025-04-05 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840201', 'tblTempUsageDetail_20' ) end [2025-04-05 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:32:23] Production.INFO: ==32443== Releasing lock... [2025-04-05 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:32:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-05 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:33:05 [end_date_ymd] => 2025-04-05 12:33:05 [RateCDR] => 1 ) [2025-04-05 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:33:05' and `end` < '2025-04-05 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:33:18] Production.INFO: count ==1398 [2025-04-05 12:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:33:05 - End Time 2025-04-05 12:33:05 [2025-04-05 12:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840206', 'tblTempUsageDetail_20' ) start [2025-04-05 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840206', 'tblTempUsageDetail_20' ) end [2025-04-05 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840206', 'tblTempVendorCDR_20' ) start [2025-04-05 12:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840206', 'tblTempVendorCDR_20' ) end [2025-04-05 12:33:19] Production.INFO: ProcessCDR(1,14840206,1,1,2) [2025-04-05 12:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840206', 'tblTempUsageDetail_20' ) start [2025-04-05 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840206', 'tblTempUsageDetail_20' ) end [2025-04-05 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:33:23] Production.INFO: ==32521== Releasing lock... [2025-04-05 12:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:33:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:34:06 [end_date_ymd] => 2025-04-05 12:34:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:34:06' and `end` < '2025-04-05 12: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-04-05 12:34:19] Production.INFO: count ==1403 [2025-04-05 12:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:34:06 - End Time 2025-04-05 12:34:06 [2025-04-05 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840211', 'tblTempUsageDetail_20' ) start [2025-04-05 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840211', 'tblTempUsageDetail_20' ) end [2025-04-05 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840211', 'tblTempVendorCDR_20' ) start [2025-04-05 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840211', 'tblTempVendorCDR_20' ) end [2025-04-05 12:34:19] Production.INFO: ProcessCDR(1,14840211,1,1,2) [2025-04-05 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840211', 'tblTempUsageDetail_20' ) start [2025-04-05 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840211', 'tblTempUsageDetail_20' ) end [2025-04-05 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:34:23] Production.INFO: ==32592== Releasing lock... [2025-04-05 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:34:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:35:05 [end_date_ymd] => 2025-04-05 12:35:05 [RateCDR] => 1 ) [2025-04-05 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:35:05' and `end` < '2025-04-05 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:35:18] Production.INFO: count ==1408 [2025-04-05 12:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:35:05 - End Time 2025-04-05 12:35:05 [2025-04-05 12:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840216', 'tblTempUsageDetail_20' ) start [2025-04-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840216', 'tblTempUsageDetail_20' ) end [2025-04-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840216', 'tblTempVendorCDR_20' ) start [2025-04-05 12:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840216', 'tblTempVendorCDR_20' ) end [2025-04-05 12:35:19] Production.INFO: ProcessCDR(1,14840216,1,1,2) [2025-04-05 12:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840216', 'tblTempUsageDetail_20' ) start [2025-04-05 12:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840216', 'tblTempUsageDetail_20' ) end [2025-04-05 12:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:35:24] Production.INFO: ==32665== Releasing lock... [2025-04-05 12:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:35:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:36:06 [end_date_ymd] => 2025-04-05 12:36:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:36:06' and `end` < '2025-04-05 12: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-04-05 12:36:19] Production.INFO: count ==1409 [2025-04-05 12:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:36:06 - End Time 2025-04-05 12:36:06 [2025-04-05 12:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840221', 'tblTempUsageDetail_20' ) start [2025-04-05 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840221', 'tblTempUsageDetail_20' ) end [2025-04-05 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840221', 'tblTempVendorCDR_20' ) start [2025-04-05 12:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840221', 'tblTempVendorCDR_20' ) end [2025-04-05 12:36:19] Production.INFO: ProcessCDR(1,14840221,1,1,2) [2025-04-05 12:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840221', 'tblTempUsageDetail_20' ) start [2025-04-05 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840221', 'tblTempUsageDetail_20' ) end [2025-04-05 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:36:25] Production.INFO: ==319== Releasing lock... [2025-04-05 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:36:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:37:05 [end_date_ymd] => 2025-04-05 12:37:05 [RateCDR] => 1 ) [2025-04-05 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:37:05' and `end` < '2025-04-05 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:37:18] Production.INFO: count ==1402 [2025-04-05 12:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:37:05 - End Time 2025-04-05 12:37:05 [2025-04-05 12:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840226', 'tblTempUsageDetail_20' ) start [2025-04-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840226', 'tblTempUsageDetail_20' ) end [2025-04-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840226', 'tblTempVendorCDR_20' ) start [2025-04-05 12:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840226', 'tblTempVendorCDR_20' ) end [2025-04-05 12:37:18] Production.INFO: ProcessCDR(1,14840226,1,1,2) [2025-04-05 12:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840226', 'tblTempUsageDetail_20' ) start [2025-04-05 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840226', 'tblTempUsageDetail_20' ) end [2025-04-05 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:37:22] Production.INFO: ==401== Releasing lock... [2025-04-05 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:38:06 [end_date_ymd] => 2025-04-05 12:38:06 [RateCDR] => 1 ) [2025-04-05 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:38:06' and `end` < '2025-04-05 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:38:18] Production.INFO: count ==1395 [2025-04-05 12:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:38:06 - End Time 2025-04-05 12:38:06 [2025-04-05 12:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840231', 'tblTempUsageDetail_20' ) start [2025-04-05 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840231', 'tblTempUsageDetail_20' ) end [2025-04-05 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840231', 'tblTempVendorCDR_20' ) start [2025-04-05 12:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840231', 'tblTempVendorCDR_20' ) end [2025-04-05 12:38:19] Production.INFO: ProcessCDR(1,14840231,1,1,2) [2025-04-05 12:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840231', 'tblTempUsageDetail_20' ) start [2025-04-05 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840231', 'tblTempUsageDetail_20' ) end [2025-04-05 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:38:23] Production.INFO: ==475== Releasing lock... [2025-04-05 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:38:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:39:05 [end_date_ymd] => 2025-04-05 12:39:05 [RateCDR] => 1 ) [2025-04-05 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:39:05' and `end` < '2025-04-05 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:39:18] Production.INFO: count ==1402 [2025-04-05 12:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:39:05 - End Time 2025-04-05 12:39:05 [2025-04-05 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840236', 'tblTempUsageDetail_20' ) start [2025-04-05 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840236', 'tblTempUsageDetail_20' ) end [2025-04-05 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840236', 'tblTempVendorCDR_20' ) start [2025-04-05 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840236', 'tblTempVendorCDR_20' ) end [2025-04-05 12:39:18] Production.INFO: ProcessCDR(1,14840236,1,1,2) [2025-04-05 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840236', 'tblTempUsageDetail_20' ) start [2025-04-05 12:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840236', 'tblTempUsageDetail_20' ) end [2025-04-05 12:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:39:24] Production.INFO: ==548== Releasing lock... [2025-04-05 12:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:39:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:40:06 [end_date_ymd] => 2025-04-05 12:40:06 [RateCDR] => 1 ) [2025-04-05 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:40:06' and `end` < '2025-04-05 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:40:19] Production.INFO: count ==1397 [2025-04-05 12:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:40:06 - End Time 2025-04-05 12:40:06 [2025-04-05 12:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840242', 'tblTempUsageDetail_20' ) start [2025-04-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840242', 'tblTempUsageDetail_20' ) end [2025-04-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840242', 'tblTempVendorCDR_20' ) start [2025-04-05 12:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840242', 'tblTempVendorCDR_20' ) end [2025-04-05 12:40:19] Production.INFO: ProcessCDR(1,14840242,1,1,2) [2025-04-05 12:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840242', 'tblTempUsageDetail_20' ) start [2025-04-05 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840242', 'tblTempUsageDetail_20' ) end [2025-04-05 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:40:25] Production.INFO: ==633== Releasing lock... [2025-04-05 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:40:25] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:41:04 [end_date_ymd] => 2025-04-05 12:41:04 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:41:04' and `end` < '2025-04-05 12: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-04-05 12:41:17] Production.INFO: count ==1416 [2025-04-05 12:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:41:04 - End Time 2025-04-05 12:41:04 [2025-04-05 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840247', 'tblTempUsageDetail_20' ) start [2025-04-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840247', 'tblTempUsageDetail_20' ) end [2025-04-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840247', 'tblTempVendorCDR_20' ) start [2025-04-05 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840247', 'tblTempVendorCDR_20' ) end [2025-04-05 12:41:18] Production.INFO: ProcessCDR(1,14840247,1,1,2) [2025-04-05 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840247', 'tblTempUsageDetail_20' ) start [2025-04-05 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840247', 'tblTempUsageDetail_20' ) end [2025-04-05 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:41:22] Production.INFO: ==731== Releasing lock... [2025-04-05 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:42:06 [end_date_ymd] => 2025-04-05 12:42:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:42:06' and `end` < '2025-04-05 12: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-04-05 12:42:18] Production.INFO: count ==1415 [2025-04-05 12:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:42:06 - End Time 2025-04-05 12:42:06 [2025-04-05 12:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840252', 'tblTempUsageDetail_20' ) start [2025-04-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840252', 'tblTempUsageDetail_20' ) end [2025-04-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840252', 'tblTempVendorCDR_20' ) start [2025-04-05 12:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840252', 'tblTempVendorCDR_20' ) end [2025-04-05 12:42:19] Production.INFO: ProcessCDR(1,14840252,1,1,2) [2025-04-05 12:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840252', 'tblTempUsageDetail_20' ) start [2025-04-05 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840252', 'tblTempUsageDetail_20' ) end [2025-04-05 12:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:42:22] Production.INFO: ==805== Releasing lock... [2025-04-05 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:43:05 [end_date_ymd] => 2025-04-05 12:43:05 [RateCDR] => 1 ) [2025-04-05 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:43:05' and `end` < '2025-04-05 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:43:18] Production.INFO: count ==1413 [2025-04-05 12:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:43:05 - End Time 2025-04-05 12:43:05 [2025-04-05 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840257', 'tblTempUsageDetail_20' ) start [2025-04-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840257', 'tblTempUsageDetail_20' ) end [2025-04-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840257', 'tblTempVendorCDR_20' ) start [2025-04-05 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840257', 'tblTempVendorCDR_20' ) end [2025-04-05 12:43:18] Production.INFO: ProcessCDR(1,14840257,1,1,2) [2025-04-05 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840257', 'tblTempUsageDetail_20' ) start [2025-04-05 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840257', 'tblTempUsageDetail_20' ) end [2025-04-05 12:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:43:22] Production.INFO: ==879== Releasing lock... [2025-04-05 12:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:43:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:44:06 [end_date_ymd] => 2025-04-05 12:44:06 [RateCDR] => 1 ) [2025-04-05 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:44:06' and `end` < '2025-04-05 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:44:19] Production.INFO: count ==1415 [2025-04-05 12:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:44:06 - End Time 2025-04-05 12:44:06 [2025-04-05 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840262', 'tblTempUsageDetail_20' ) start [2025-04-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840262', 'tblTempUsageDetail_20' ) end [2025-04-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840262', 'tblTempVendorCDR_20' ) start [2025-04-05 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840262', 'tblTempVendorCDR_20' ) end [2025-04-05 12:44:19] Production.INFO: ProcessCDR(1,14840262,1,1,2) [2025-04-05 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840262', 'tblTempUsageDetail_20' ) start [2025-04-05 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840262', 'tblTempUsageDetail_20' ) end [2025-04-05 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:44:24] Production.INFO: ==951== Releasing lock... [2025-04-05 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:44:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:45:06 [end_date_ymd] => 2025-04-05 12:45:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:45:06' and `end` < '2025-04-05 12: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-04-05 12:45:19] Production.INFO: count ==1415 [2025-04-05 12:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:45:06 - End Time 2025-04-05 12:45:06 [2025-04-05 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840267', 'tblTempUsageDetail_20' ) start [2025-04-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840267', 'tblTempUsageDetail_20' ) end [2025-04-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840267', 'tblTempVendorCDR_20' ) start [2025-04-05 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840267', 'tblTempVendorCDR_20' ) end [2025-04-05 12:45:19] Production.INFO: ProcessCDR(1,14840267,1,1,2) [2025-04-05 12:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840267', 'tblTempUsageDetail_20' ) start [2025-04-05 12:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840267', 'tblTempUsageDetail_20' ) end [2025-04-05 12:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:45:23] Production.INFO: ==1038== Releasing lock... [2025-04-05 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:45:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:46:06 [end_date_ymd] => 2025-04-05 12:46:06 [RateCDR] => 1 ) [2025-04-05 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:46:06' and `end` < '2025-04-05 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:46:19] Production.INFO: count ==1424 [2025-04-05 12:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:46:06 - End Time 2025-04-05 12:46:06 [2025-04-05 12:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840272', 'tblTempUsageDetail_20' ) start [2025-04-05 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840272', 'tblTempUsageDetail_20' ) end [2025-04-05 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840272', 'tblTempVendorCDR_20' ) start [2025-04-05 12:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840272', 'tblTempVendorCDR_20' ) end [2025-04-05 12:46:19] Production.INFO: ProcessCDR(1,14840272,1,1,2) [2025-04-05 12:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840272', 'tblTempUsageDetail_20' ) start [2025-04-05 12:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840272', 'tblTempUsageDetail_20' ) end [2025-04-05 12:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:46:24] Production.INFO: ==1109== Releasing lock... [2025-04-05 12:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:46:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:47:06 [end_date_ymd] => 2025-04-05 12:47:06 [RateCDR] => 1 ) [2025-04-05 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:47:06' and `end` < '2025-04-05 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:47:19] Production.INFO: count ==1426 [2025-04-05 12:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:47:06 - End Time 2025-04-05 12:47:06 [2025-04-05 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840277', 'tblTempUsageDetail_20' ) start [2025-04-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840277', 'tblTempUsageDetail_20' ) end [2025-04-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840277', 'tblTempVendorCDR_20' ) start [2025-04-05 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840277', 'tblTempVendorCDR_20' ) end [2025-04-05 12:47:19] Production.INFO: ProcessCDR(1,14840277,1,1,2) [2025-04-05 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840277', 'tblTempUsageDetail_20' ) start [2025-04-05 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840277', 'tblTempUsageDetail_20' ) end [2025-04-05 12:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:47:24] Production.INFO: ==1189== Releasing lock... [2025-04-05 12:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:47:24] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:48:05 [end_date_ymd] => 2025-04-05 12:48:05 [RateCDR] => 1 ) [2025-04-05 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:48:05' and `end` < '2025-04-05 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:48:18] Production.INFO: count ==1426 [2025-04-05 12:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:48:05 - End Time 2025-04-05 12:48:05 [2025-04-05 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840282', 'tblTempUsageDetail_20' ) start [2025-04-05 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840282', 'tblTempUsageDetail_20' ) end [2025-04-05 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840282', 'tblTempVendorCDR_20' ) start [2025-04-05 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840282', 'tblTempVendorCDR_20' ) end [2025-04-05 12:48:19] Production.INFO: ProcessCDR(1,14840282,1,1,2) [2025-04-05 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840282', 'tblTempUsageDetail_20' ) start [2025-04-05 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840282', 'tblTempUsageDetail_20' ) end [2025-04-05 12:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:48:22] Production.INFO: ==1284== Releasing lock... [2025-04-05 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:48:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-05 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:49:05 [end_date_ymd] => 2025-04-05 12:49:05 [RateCDR] => 1 ) [2025-04-05 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:49:05' and `end` < '2025-04-05 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:49:18] Production.INFO: count ==1432 [2025-04-05 12:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:49:05 - End Time 2025-04-05 12:49:05 [2025-04-05 12:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840287', 'tblTempUsageDetail_20' ) start [2025-04-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840287', 'tblTempUsageDetail_20' ) end [2025-04-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840287', 'tblTempVendorCDR_20' ) start [2025-04-05 12:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840287', 'tblTempVendorCDR_20' ) end [2025-04-05 12:49:19] Production.INFO: ProcessCDR(1,14840287,1,1,2) [2025-04-05 12:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840287', 'tblTempUsageDetail_20' ) start [2025-04-05 12:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840287', 'tblTempUsageDetail_20' ) end [2025-04-05 12:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:49:24] Production.INFO: ==1358== Releasing lock... [2025-04-05 12:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:49:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:50:06 [end_date_ymd] => 2025-04-05 12:50:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:50:06' and `end` < '2025-04-05 12: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-04-05 12:50:19] Production.INFO: count ==1435 [2025-04-05 12:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:50:06 - End Time 2025-04-05 12:50:06 [2025-04-05 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840293', 'tblTempUsageDetail_20' ) start [2025-04-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840293', 'tblTempUsageDetail_20' ) end [2025-04-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840293', 'tblTempVendorCDR_20' ) start [2025-04-05 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840293', 'tblTempVendorCDR_20' ) end [2025-04-05 12:50:19] Production.INFO: ProcessCDR(1,14840293,1,1,2) [2025-04-05 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840293', 'tblTempUsageDetail_20' ) start [2025-04-05 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840293', 'tblTempUsageDetail_20' ) end [2025-04-05 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:50:24] Production.INFO: ==1432== Releasing lock... [2025-04-05 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:50:24] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:51:06 [end_date_ymd] => 2025-04-05 12:51:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:51:06' and `end` < '2025-04-05 12: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-04-05 12:51:18] Production.INFO: count ==1463 [2025-04-05 12:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:51:06 - End Time 2025-04-05 12:51:06 [2025-04-05 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840298', 'tblTempUsageDetail_20' ) start [2025-04-05 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840298', 'tblTempUsageDetail_20' ) end [2025-04-05 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840298', 'tblTempVendorCDR_20' ) start [2025-04-05 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840298', 'tblTempVendorCDR_20' ) end [2025-04-05 12:51:19] Production.INFO: ProcessCDR(1,14840298,1,1,2) [2025-04-05 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840298', 'tblTempUsageDetail_20' ) start [2025-04-05 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840298', 'tblTempUsageDetail_20' ) end [2025-04-05 12:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:51:22] Production.INFO: ==1582== Releasing lock... [2025-04-05 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:51:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-05 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:52:05 [end_date_ymd] => 2025-04-05 12:52:05 [RateCDR] => 1 ) [2025-04-05 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:52:05' and `end` < '2025-04-05 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:52:18] Production.INFO: count ==1467 [2025-04-05 12:52:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:52:05 - End Time 2025-04-05 12:52:05 [2025-04-05 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840303', 'tblTempUsageDetail_20' ) start [2025-04-05 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840303', 'tblTempUsageDetail_20' ) end [2025-04-05 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840303', 'tblTempVendorCDR_20' ) start [2025-04-05 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840303', 'tblTempVendorCDR_20' ) end [2025-04-05 12:52:19] Production.INFO: ProcessCDR(1,14840303,1,1,2) [2025-04-05 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840303', 'tblTempUsageDetail_20' ) start [2025-04-05 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840303', 'tblTempUsageDetail_20' ) end [2025-04-05 12:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:52:22] Production.INFO: ==1666== Releasing lock... [2025-04-05 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:52:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:53:05 [end_date_ymd] => 2025-04-05 12:53:05 [RateCDR] => 1 ) [2025-04-05 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:53:05' and `end` < '2025-04-05 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:53:18] Production.INFO: count ==1458 [2025-04-05 12:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:53:05 - End Time 2025-04-05 12:53:05 [2025-04-05 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840306', 'tblTempUsageDetail_20' ) start [2025-04-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840306', 'tblTempUsageDetail_20' ) end [2025-04-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840306', 'tblTempVendorCDR_20' ) start [2025-04-05 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840306', 'tblTempVendorCDR_20' ) end [2025-04-05 12:53:18] Production.INFO: ProcessCDR(1,14840306,1,1,2) [2025-04-05 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840306', 'tblTempUsageDetail_20' ) start [2025-04-05 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840306', 'tblTempUsageDetail_20' ) end [2025-04-05 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:53:22] Production.INFO: ==1743== Releasing lock... [2025-04-05 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:53:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:54:05 [end_date_ymd] => 2025-04-05 12:54:05 [RateCDR] => 1 ) [2025-04-05 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:54:05' and `end` < '2025-04-05 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:54:18] Production.INFO: count ==1456 [2025-04-05 12:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:54:05 - End Time 2025-04-05 12:54:05 [2025-04-05 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840313', 'tblTempUsageDetail_20' ) start [2025-04-05 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840313', 'tblTempUsageDetail_20' ) end [2025-04-05 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840313', 'tblTempVendorCDR_20' ) start [2025-04-05 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840313', 'tblTempVendorCDR_20' ) end [2025-04-05 12:54:18] Production.INFO: ProcessCDR(1,14840313,1,1,2) [2025-04-05 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840313', 'tblTempUsageDetail_20' ) start [2025-04-05 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840313', 'tblTempUsageDetail_20' ) end [2025-04-05 12:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:54:22] Production.INFO: ==1813== Releasing lock... [2025-04-05 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:54:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:55:06 [end_date_ymd] => 2025-04-05 12:55:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:55:06' and `end` < '2025-04-05 12: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-04-05 12:55:18] Production.INFO: count ==1458 [2025-04-05 12:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:55:06 - End Time 2025-04-05 12:55:06 [2025-04-05 12:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840318', 'tblTempUsageDetail_20' ) start [2025-04-05 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840318', 'tblTempUsageDetail_20' ) end [2025-04-05 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840318', 'tblTempVendorCDR_20' ) start [2025-04-05 12:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840318', 'tblTempVendorCDR_20' ) end [2025-04-05 12:55:19] Production.INFO: ProcessCDR(1,14840318,1,1,2) [2025-04-05 12:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840318', 'tblTempUsageDetail_20' ) start [2025-04-05 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840318', 'tblTempUsageDetail_20' ) end [2025-04-05 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:55:22] Production.INFO: ==1894== Releasing lock... [2025-04-05 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:55:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:56:06 [end_date_ymd] => 2025-04-05 12:56:06 [RateCDR] => 1 ) [2025-04-05 12: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-04-05 09:56:06' and `end` < '2025-04-05 12: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-04-05 12:56:19] Production.INFO: count ==1462 [2025-04-05 12:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:56:06 - End Time 2025-04-05 12:56:06 [2025-04-05 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840323', 'tblTempUsageDetail_20' ) start [2025-04-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840323', 'tblTempUsageDetail_20' ) end [2025-04-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840323', 'tblTempVendorCDR_20' ) start [2025-04-05 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840323', 'tblTempVendorCDR_20' ) end [2025-04-05 12:56:19] Production.INFO: ProcessCDR(1,14840323,1,1,2) [2025-04-05 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840323', 'tblTempUsageDetail_20' ) start [2025-04-05 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840323', 'tblTempUsageDetail_20' ) end [2025-04-05 12:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:56:23] Production.INFO: ==1970== Releasing lock... [2025-04-05 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:56:23] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:57:05 [end_date_ymd] => 2025-04-05 12:57:05 [RateCDR] => 1 ) [2025-04-05 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:57:05' and `end` < '2025-04-05 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:57:18] Production.INFO: count ==1458 [2025-04-05 12:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:57:05 - End Time 2025-04-05 12:57:05 [2025-04-05 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840328', 'tblTempUsageDetail_20' ) start [2025-04-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840328', 'tblTempUsageDetail_20' ) end [2025-04-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840328', 'tblTempVendorCDR_20' ) start [2025-04-05 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840328', 'tblTempVendorCDR_20' ) end [2025-04-05 12:57:19] Production.INFO: ProcessCDR(1,14840328,1,1,2) [2025-04-05 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840328', 'tblTempUsageDetail_20' ) start [2025-04-05 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840328', 'tblTempUsageDetail_20' ) end [2025-04-05 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:57:22] Production.INFO: ==2046== Releasing lock... [2025-04-05 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:57:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:58:05 [end_date_ymd] => 2025-04-05 12:58:05 [RateCDR] => 1 ) [2025-04-05 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:58:05' and `end` < '2025-04-05 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:58:18] Production.INFO: count ==1450 [2025-04-05 12:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 09:58:05 - End Time 2025-04-05 12:58:05 [2025-04-05 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840333', 'tblTempUsageDetail_20' ) start [2025-04-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840333', 'tblTempUsageDetail_20' ) end [2025-04-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840333', 'tblTempVendorCDR_20' ) start [2025-04-05 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840333', 'tblTempVendorCDR_20' ) end [2025-04-05 12:58:19] Production.INFO: ProcessCDR(1,14840333,1,1,2) [2025-04-05 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840333', 'tblTempUsageDetail_20' ) start [2025-04-05 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840333', 'tblTempUsageDetail_20' ) end [2025-04-05 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:58:22] Production.INFO: ==2143== Releasing lock... [2025-04-05 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:58:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 09:59:05 [end_date_ymd] => 2025-04-05 12:59:05 [RateCDR] => 1 ) [2025-04-05 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 09:59:05' and `end` < '2025-04-05 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 12:59:18] Production.INFO: count ==1450 [2025-04-05 12:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 09:59:05 - End Time 2025-04-05 12:59:05 [2025-04-05 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840338', 'tblTempUsageDetail_20' ) start [2025-04-05 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840338', 'tblTempUsageDetail_20' ) end [2025-04-05 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840338', 'tblTempVendorCDR_20' ) start [2025-04-05 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840338', 'tblTempVendorCDR_20' ) end [2025-04-05 12:59:18] Production.INFO: ProcessCDR(1,14840338,1,1,2) [2025-04-05 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840338', 'tblTempUsageDetail_20' ) start [2025-04-05 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840338', 'tblTempUsageDetail_20' ) end [2025-04-05 12:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 12:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 12:59:22] Production.INFO: ==2217== Releasing lock... [2025-04-05 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 12:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:00:06 [end_date_ymd] => 2025-04-05 13:00:06 [RateCDR] => 1 ) [2025-04-05 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:00:06' and `end` < '2025-04-05 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:00:19] Production.INFO: count ==1455 [2025-04-05 13:00:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:00:06 - End Time 2025-04-05 13:00:06 [2025-04-05 13:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840344', 'tblTempUsageDetail_20' ) start [2025-04-05 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840344', 'tblTempUsageDetail_20' ) end [2025-04-05 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840344', 'tblTempVendorCDR_20' ) start [2025-04-05 13:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840344', 'tblTempVendorCDR_20' ) end [2025-04-05 13:00:20] Production.INFO: ProcessCDR(1,14840344,1,1,2) [2025-04-05 13:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840344', 'tblTempUsageDetail_20' ) start [2025-04-05 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840344', 'tblTempUsageDetail_20' ) end [2025-04-05 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:00:23] Production.INFO: ==2295== Releasing lock... [2025-04-05 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:00:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:01:05 [end_date_ymd] => 2025-04-05 13:01:05 [RateCDR] => 1 ) [2025-04-05 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:01:05' and `end` < '2025-04-05 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:01:18] Production.INFO: count ==1498 [2025-04-05 13:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:01:05 - End Time 2025-04-05 13:01:05 [2025-04-05 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840349', 'tblTempUsageDetail_20' ) start [2025-04-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840349', 'tblTempUsageDetail_20' ) end [2025-04-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840349', 'tblTempVendorCDR_20' ) start [2025-04-05 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840349', 'tblTempVendorCDR_20' ) end [2025-04-05 13:01:18] Production.INFO: ProcessCDR(1,14840349,1,1,2) [2025-04-05 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840349', 'tblTempUsageDetail_20' ) start [2025-04-05 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840349', 'tblTempUsageDetail_20' ) end [2025-04-05 13:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:01:24] Production.INFO: ==2394== Releasing lock... [2025-04-05 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:01:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:02:05 [end_date_ymd] => 2025-04-05 13:02:05 [RateCDR] => 1 ) [2025-04-05 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:02:05' and `end` < '2025-04-05 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:02:18] Production.INFO: count ==1530 [2025-04-05 13:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:02:05 - End Time 2025-04-05 13:02:05 [2025-04-05 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840354', 'tblTempUsageDetail_20' ) start [2025-04-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840354', 'tblTempUsageDetail_20' ) end [2025-04-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840354', 'tblTempVendorCDR_20' ) start [2025-04-05 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840354', 'tblTempVendorCDR_20' ) end [2025-04-05 13:02:19] Production.INFO: ProcessCDR(1,14840354,1,1,2) [2025-04-05 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840354', 'tblTempUsageDetail_20' ) start [2025-04-05 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840354', 'tblTempUsageDetail_20' ) end [2025-04-05 13:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:02:22] Production.INFO: ==2467== Releasing lock... [2025-04-05 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:02:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:03:05 [end_date_ymd] => 2025-04-05 13:03:05 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:03:05' and `end` < '2025-04-05 13: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-04-05 13:03:17] Production.INFO: count ==1534 [2025-04-05 13:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:03:05 - End Time 2025-04-05 13:03:05 [2025-04-05 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840359', 'tblTempUsageDetail_20' ) start [2025-04-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840359', 'tblTempUsageDetail_20' ) end [2025-04-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840359', 'tblTempVendorCDR_20' ) start [2025-04-05 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840359', 'tblTempVendorCDR_20' ) end [2025-04-05 13:03:18] Production.INFO: ProcessCDR(1,14840359,1,1,2) [2025-04-05 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840359', 'tblTempUsageDetail_20' ) start [2025-04-05 13:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840359', 'tblTempUsageDetail_20' ) end [2025-04-05 13:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:03:21] Production.INFO: ==2540== Releasing lock... [2025-04-05 13:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:03:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:04:05 [end_date_ymd] => 2025-04-05 13:04:05 [RateCDR] => 1 ) [2025-04-05 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:04:05' and `end` < '2025-04-05 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:04:18] Production.INFO: count ==1540 [2025-04-05 13:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:04:05 - End Time 2025-04-05 13:04:05 [2025-04-05 13:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840364', 'tblTempUsageDetail_20' ) start [2025-04-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840364', 'tblTempUsageDetail_20' ) end [2025-04-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840364', 'tblTempVendorCDR_20' ) start [2025-04-05 13:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840364', 'tblTempVendorCDR_20' ) end [2025-04-05 13:04:19] Production.INFO: ProcessCDR(1,14840364,1,1,2) [2025-04-05 13:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840364', 'tblTempUsageDetail_20' ) start [2025-04-05 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840364', 'tblTempUsageDetail_20' ) end [2025-04-05 13:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:04:22] Production.INFO: ==2617== Releasing lock... [2025-04-05 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:05:06 [end_date_ymd] => 2025-04-05 13:05:06 [RateCDR] => 1 ) [2025-04-05 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:05:06' and `end` < '2025-04-05 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:05:19] Production.INFO: count ==1537 [2025-04-05 13:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:05:06 - End Time 2025-04-05 13:05:06 [2025-04-05 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840369', 'tblTempUsageDetail_20' ) start [2025-04-05 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840369', 'tblTempUsageDetail_20' ) end [2025-04-05 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840369', 'tblTempVendorCDR_20' ) start [2025-04-05 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840369', 'tblTempVendorCDR_20' ) end [2025-04-05 13:05:19] Production.INFO: ProcessCDR(1,14840369,1,1,2) [2025-04-05 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840369', 'tblTempUsageDetail_20' ) start [2025-04-05 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840369', 'tblTempUsageDetail_20' ) end [2025-04-05 13:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:05:23] Production.INFO: ==2693== Releasing lock... [2025-04-05 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:06:05 [end_date_ymd] => 2025-04-05 13:06:05 [RateCDR] => 1 ) [2025-04-05 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:06:05' and `end` < '2025-04-05 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:06:18] Production.INFO: count ==1547 [2025-04-05 13:06:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:06:05 - End Time 2025-04-05 13:06:05 [2025-04-05 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840374', 'tblTempUsageDetail_20' ) start [2025-04-05 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840374', 'tblTempUsageDetail_20' ) end [2025-04-05 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840374', 'tblTempVendorCDR_20' ) start [2025-04-05 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840374', 'tblTempVendorCDR_20' ) end [2025-04-05 13:06:19] Production.INFO: ProcessCDR(1,14840374,1,1,2) [2025-04-05 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840374', 'tblTempUsageDetail_20' ) start [2025-04-05 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840374', 'tblTempUsageDetail_20' ) end [2025-04-05 13:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:06:22] Production.INFO: ==2764== Releasing lock... [2025-04-05 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:06:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:07:06 [end_date_ymd] => 2025-04-05 13:07:06 [RateCDR] => 1 ) [2025-04-05 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:07:06' and `end` < '2025-04-05 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:07:19] Production.INFO: count ==1537 [2025-04-05 13:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:07:06 - End Time 2025-04-05 13:07:06 [2025-04-05 13:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840379', 'tblTempUsageDetail_20' ) start [2025-04-05 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840379', 'tblTempUsageDetail_20' ) end [2025-04-05 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840379', 'tblTempVendorCDR_20' ) start [2025-04-05 13:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840379', 'tblTempVendorCDR_20' ) end [2025-04-05 13:07:19] Production.INFO: ProcessCDR(1,14840379,1,1,2) [2025-04-05 13:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840379', 'tblTempUsageDetail_20' ) start [2025-04-05 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840379', 'tblTempUsageDetail_20' ) end [2025-04-05 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:07:24] Production.INFO: ==2886== Releasing lock... [2025-04-05 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:08:05 [end_date_ymd] => 2025-04-05 13:08:05 [RateCDR] => 1 ) [2025-04-05 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:08:05' and `end` < '2025-04-05 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:08:18] Production.INFO: count ==1533 [2025-04-05 13:08:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:08:05 - End Time 2025-04-05 13:08:05 [2025-04-05 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840384', 'tblTempUsageDetail_20' ) start [2025-04-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840384', 'tblTempUsageDetail_20' ) end [2025-04-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840384', 'tblTempVendorCDR_20' ) start [2025-04-05 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840384', 'tblTempVendorCDR_20' ) end [2025-04-05 13:08:19] Production.INFO: ProcessCDR(1,14840384,1,1,2) [2025-04-05 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840384', 'tblTempUsageDetail_20' ) start [2025-04-05 13:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840384', 'tblTempUsageDetail_20' ) end [2025-04-05 13:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:08:24] Production.INFO: ==2958== Releasing lock... [2025-04-05 13:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:08:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:09:05 [end_date_ymd] => 2025-04-05 13:09:05 [RateCDR] => 1 ) [2025-04-05 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:09:05' and `end` < '2025-04-05 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:09:18] Production.INFO: count ==1535 [2025-04-05 13:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:09:05 - End Time 2025-04-05 13:09:05 [2025-04-05 13:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840389', 'tblTempUsageDetail_20' ) start [2025-04-05 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840389', 'tblTempUsageDetail_20' ) end [2025-04-05 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840389', 'tblTempVendorCDR_20' ) start [2025-04-05 13:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840389', 'tblTempVendorCDR_20' ) end [2025-04-05 13:09:19] Production.INFO: ProcessCDR(1,14840389,1,1,2) [2025-04-05 13:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840389', 'tblTempUsageDetail_20' ) start [2025-04-05 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840389', 'tblTempUsageDetail_20' ) end [2025-04-05 13:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:09:23] Production.INFO: ==3039== Releasing lock... [2025-04-05 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:09:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:10:06 [end_date_ymd] => 2025-04-05 13:10:06 [RateCDR] => 1 ) [2025-04-05 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:10:06' and `end` < '2025-04-05 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:10:19] Production.INFO: count ==1523 [2025-04-05 13:10:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:10:06 - End Time 2025-04-05 13:10:06 [2025-04-05 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840395', 'tblTempUsageDetail_20' ) start [2025-04-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840395', 'tblTempUsageDetail_20' ) end [2025-04-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840395', 'tblTempVendorCDR_20' ) start [2025-04-05 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840395', 'tblTempVendorCDR_20' ) end [2025-04-05 13:10:19] Production.INFO: ProcessCDR(1,14840395,1,1,2) [2025-04-05 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840395', 'tblTempUsageDetail_20' ) start [2025-04-05 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840395', 'tblTempUsageDetail_20' ) end [2025-04-05 13:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:10:23] Production.INFO: ==3122== Releasing lock... [2025-04-05 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:10:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:11:05 [end_date_ymd] => 2025-04-05 13:11:05 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:11:05' and `end` < '2025-04-05 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:11:18] Production.INFO: count ==1520 [2025-04-05 13:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:11:05 - End Time 2025-04-05 13:11:05 [2025-04-05 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840400', 'tblTempUsageDetail_20' ) start [2025-04-05 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840400', 'tblTempUsageDetail_20' ) end [2025-04-05 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840400', 'tblTempVendorCDR_20' ) start [2025-04-05 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840400', 'tblTempVendorCDR_20' ) end [2025-04-05 13:11:19] Production.INFO: ProcessCDR(1,14840400,1,1,2) [2025-04-05 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840400', 'tblTempUsageDetail_20' ) start [2025-04-05 13:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840400', 'tblTempUsageDetail_20' ) end [2025-04-05 13:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:11:24] Production.INFO: ==3204== Releasing lock... [2025-04-05 13:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:11:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:12:05 [end_date_ymd] => 2025-04-05 13:12:05 [RateCDR] => 1 ) [2025-04-05 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:12:05' and `end` < '2025-04-05 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:12:18] Production.INFO: count ==1520 [2025-04-05 13:12:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:12:05 - End Time 2025-04-05 13:12:05 [2025-04-05 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840405', 'tblTempUsageDetail_20' ) start [2025-04-05 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840405', 'tblTempUsageDetail_20' ) end [2025-04-05 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840405', 'tblTempVendorCDR_20' ) start [2025-04-05 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840405', 'tblTempVendorCDR_20' ) end [2025-04-05 13:12:18] Production.INFO: ProcessCDR(1,14840405,1,1,2) [2025-04-05 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840405', 'tblTempUsageDetail_20' ) start [2025-04-05 13:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840405', 'tblTempUsageDetail_20' ) end [2025-04-05 13:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:12:22] Production.INFO: ==3278== Releasing lock... [2025-04-05 13:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:12:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:13:05 [end_date_ymd] => 2025-04-05 13:13:05 [RateCDR] => 1 ) [2025-04-05 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:13:05' and `end` < '2025-04-05 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:13:18] Production.INFO: count ==1519 [2025-04-05 13:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:13:05 - End Time 2025-04-05 13:13:05 [2025-04-05 13:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840410', 'tblTempUsageDetail_20' ) start [2025-04-05 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840410', 'tblTempUsageDetail_20' ) end [2025-04-05 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840410', 'tblTempVendorCDR_20' ) start [2025-04-05 13:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840410', 'tblTempVendorCDR_20' ) end [2025-04-05 13:13:19] Production.INFO: ProcessCDR(1,14840410,1,1,2) [2025-04-05 13:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840410', 'tblTempUsageDetail_20' ) start [2025-04-05 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840410', 'tblTempUsageDetail_20' ) end [2025-04-05 13:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:13:22] Production.INFO: ==3349== Releasing lock... [2025-04-05 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:14:05 [end_date_ymd] => 2025-04-05 13:14:05 [RateCDR] => 1 ) [2025-04-05 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:14:05' and `end` < '2025-04-05 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:14:18] Production.INFO: count ==1521 [2025-04-05 13:14:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:14:05 - End Time 2025-04-05 13:14:05 [2025-04-05 13:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840415', 'tblTempUsageDetail_20' ) start [2025-04-05 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840415', 'tblTempUsageDetail_20' ) end [2025-04-05 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840415', 'tblTempVendorCDR_20' ) start [2025-04-05 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840415', 'tblTempVendorCDR_20' ) end [2025-04-05 13:14:18] Production.INFO: ProcessCDR(1,14840415,1,1,2) [2025-04-05 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840415', 'tblTempUsageDetail_20' ) start [2025-04-05 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840415', 'tblTempUsageDetail_20' ) end [2025-04-05 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:14:23] Production.INFO: ==3426== Releasing lock... [2025-04-05 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:14:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:15:05 [end_date_ymd] => 2025-04-05 13:15:05 [RateCDR] => 1 ) [2025-04-05 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:15:05' and `end` < '2025-04-05 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:15:18] Production.INFO: count ==1522 [2025-04-05 13:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:15:05 - End Time 2025-04-05 13:15:05 [2025-04-05 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840420', 'tblTempUsageDetail_20' ) start [2025-04-05 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840420', 'tblTempUsageDetail_20' ) end [2025-04-05 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840420', 'tblTempVendorCDR_20' ) start [2025-04-05 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840420', 'tblTempVendorCDR_20' ) end [2025-04-05 13:15:19] Production.INFO: ProcessCDR(1,14840420,1,1,2) [2025-04-05 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840420', 'tblTempUsageDetail_20' ) start [2025-04-05 13:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840420', 'tblTempUsageDetail_20' ) end [2025-04-05 13:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:15:23] Production.INFO: ==3502== Releasing lock... [2025-04-05 13:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:15:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:16:05 [end_date_ymd] => 2025-04-05 13:16:05 [RateCDR] => 1 ) [2025-04-05 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:16:05' and `end` < '2025-04-05 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:16:18] Production.INFO: count ==1520 [2025-04-05 13:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:16:05 - End Time 2025-04-05 13:16:05 [2025-04-05 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840425', 'tblTempUsageDetail_20' ) start [2025-04-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840425', 'tblTempUsageDetail_20' ) end [2025-04-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840425', 'tblTempVendorCDR_20' ) start [2025-04-05 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840425', 'tblTempVendorCDR_20' ) end [2025-04-05 13:16:18] Production.INFO: ProcessCDR(1,14840425,1,1,2) [2025-04-05 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840425', 'tblTempUsageDetail_20' ) start [2025-04-05 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840425', 'tblTempUsageDetail_20' ) end [2025-04-05 13:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:16:22] Production.INFO: ==3574== Releasing lock... [2025-04-05 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:17:05 [end_date_ymd] => 2025-04-05 13:17:05 [RateCDR] => 1 ) [2025-04-05 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:17:05' and `end` < '2025-04-05 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:17:18] Production.INFO: count ==1520 [2025-04-05 13:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:17:05 - End Time 2025-04-05 13:17:05 [2025-04-05 13:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840430', 'tblTempUsageDetail_20' ) start [2025-04-05 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840430', 'tblTempUsageDetail_20' ) end [2025-04-05 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840430', 'tblTempVendorCDR_20' ) start [2025-04-05 13:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840430', 'tblTempVendorCDR_20' ) end [2025-04-05 13:17:19] Production.INFO: ProcessCDR(1,14840430,1,1,2) [2025-04-05 13:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840430', 'tblTempUsageDetail_20' ) start [2025-04-05 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840430', 'tblTempUsageDetail_20' ) end [2025-04-05 13:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:17:22] Production.INFO: ==3661== Releasing lock... [2025-04-05 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:18:05 [end_date_ymd] => 2025-04-05 13:18:05 [RateCDR] => 1 ) [2025-04-05 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:18:05' and `end` < '2025-04-05 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:18:18] Production.INFO: count ==1519 [2025-04-05 13:18:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:18:05 - End Time 2025-04-05 13:18:05 [2025-04-05 13:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840435', 'tblTempUsageDetail_20' ) start [2025-04-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840435', 'tblTempUsageDetail_20' ) end [2025-04-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840435', 'tblTempVendorCDR_20' ) start [2025-04-05 13:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840435', 'tblTempVendorCDR_20' ) end [2025-04-05 13:18:18] Production.INFO: ProcessCDR(1,14840435,1,1,2) [2025-04-05 13:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840435', 'tblTempUsageDetail_20' ) start [2025-04-05 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840435', 'tblTempUsageDetail_20' ) end [2025-04-05 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:18:22] Production.INFO: ==3744== Releasing lock... [2025-04-05 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:19:05 [end_date_ymd] => 2025-04-05 13:19:05 [RateCDR] => 1 ) [2025-04-05 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:19:05' and `end` < '2025-04-05 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:19:18] Production.INFO: count ==1518 [2025-04-05 13:19:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:19:05 - End Time 2025-04-05 13:19:05 [2025-04-05 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840440', 'tblTempUsageDetail_20' ) start [2025-04-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840440', 'tblTempUsageDetail_20' ) end [2025-04-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840440', 'tblTempVendorCDR_20' ) start [2025-04-05 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840440', 'tblTempVendorCDR_20' ) end [2025-04-05 13:19:19] Production.INFO: ProcessCDR(1,14840440,1,1,2) [2025-04-05 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840440', 'tblTempUsageDetail_20' ) start [2025-04-05 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840440', 'tblTempUsageDetail_20' ) end [2025-04-05 13:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:19:22] Production.INFO: ==3824== Releasing lock... [2025-04-05 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:19:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:20:07 [end_date_ymd] => 2025-04-05 13:20:07 [RateCDR] => 1 ) [2025-04-05 13:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:20:07' and `end` < '2025-04-05 13:20: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-04-05 13:20:20] Production.INFO: count ==1514 [2025-04-05 13:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:20:07 - End Time 2025-04-05 13:20:07 [2025-04-05 13:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840446', 'tblTempUsageDetail_20' ) start [2025-04-05 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840446', 'tblTempUsageDetail_20' ) end [2025-04-05 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840446', 'tblTempVendorCDR_20' ) start [2025-04-05 13:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840446', 'tblTempVendorCDR_20' ) end [2025-04-05 13:20:20] Production.INFO: ProcessCDR(1,14840446,1,1,2) [2025-04-05 13:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840446', 'tblTempUsageDetail_20' ) start [2025-04-05 13:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840446', 'tblTempUsageDetail_20' ) end [2025-04-05 13:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:20:25] Production.INFO: ==3904== Releasing lock... [2025-04-05 13:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:20:25] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:21:05 [end_date_ymd] => 2025-04-05 13:21:05 [RateCDR] => 1 ) [2025-04-05 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:21:05' and `end` < '2025-04-05 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:21:18] Production.INFO: count ==1543 [2025-04-05 13:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:21:05 - End Time 2025-04-05 13:21:05 [2025-04-05 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840451', 'tblTempUsageDetail_20' ) start [2025-04-05 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840451', 'tblTempUsageDetail_20' ) end [2025-04-05 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840451', 'tblTempVendorCDR_20' ) start [2025-04-05 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840451', 'tblTempVendorCDR_20' ) end [2025-04-05 13:21:18] Production.INFO: ProcessCDR(1,14840451,1,1,2) [2025-04-05 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840451', 'tblTempUsageDetail_20' ) start [2025-04-05 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840451', 'tblTempUsageDetail_20' ) end [2025-04-05 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:21:22] Production.INFO: ==3980== Releasing lock... [2025-04-05 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:21:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:22:05 [end_date_ymd] => 2025-04-05 13:22:05 [RateCDR] => 1 ) [2025-04-05 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:22:05' and `end` < '2025-04-05 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:22:18] Production.INFO: count ==1542 [2025-04-05 13:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:22:05 - End Time 2025-04-05 13:22:05 [2025-04-05 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840456', 'tblTempUsageDetail_20' ) start [2025-04-05 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840456', 'tblTempUsageDetail_20' ) end [2025-04-05 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840456', 'tblTempVendorCDR_20' ) start [2025-04-05 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840456', 'tblTempVendorCDR_20' ) end [2025-04-05 13:22:18] Production.INFO: ProcessCDR(1,14840456,1,1,2) [2025-04-05 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840456', 'tblTempUsageDetail_20' ) start [2025-04-05 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840456', 'tblTempUsageDetail_20' ) end [2025-04-05 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:22:22] Production.INFO: ==4093== Releasing lock... [2025-04-05 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:22:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:23:05 [end_date_ymd] => 2025-04-05 13:23:05 [RateCDR] => 1 ) [2025-04-05 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:23:05' and `end` < '2025-04-05 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:23:18] Production.INFO: count ==1542 [2025-04-05 13:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:23:05 - End Time 2025-04-05 13:23:05 [2025-04-05 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840461', 'tblTempUsageDetail_20' ) start [2025-04-05 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840461', 'tblTempUsageDetail_20' ) end [2025-04-05 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840461', 'tblTempVendorCDR_20' ) start [2025-04-05 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840461', 'tblTempVendorCDR_20' ) end [2025-04-05 13:23:19] Production.INFO: ProcessCDR(1,14840461,1,1,2) [2025-04-05 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840461', 'tblTempUsageDetail_20' ) start [2025-04-05 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840461', 'tblTempUsageDetail_20' ) end [2025-04-05 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:23:22] Production.INFO: ==4167== Releasing lock... [2025-04-05 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:24:06 [end_date_ymd] => 2025-04-05 13:24:06 [RateCDR] => 1 ) [2025-04-05 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:24:06' and `end` < '2025-04-05 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:24:19] Production.INFO: count ==1551 [2025-04-05 13:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:24:06 - End Time 2025-04-05 13:24:06 [2025-04-05 13:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840466', 'tblTempUsageDetail_20' ) start [2025-04-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840466', 'tblTempUsageDetail_20' ) end [2025-04-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840466', 'tblTempVendorCDR_20' ) start [2025-04-05 13:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840466', 'tblTempVendorCDR_20' ) end [2025-04-05 13:24:19] Production.INFO: ProcessCDR(1,14840466,1,1,2) [2025-04-05 13:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840466', 'tblTempUsageDetail_20' ) start [2025-04-05 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840466', 'tblTempUsageDetail_20' ) end [2025-04-05 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:24:24] Production.INFO: ==4243== Releasing lock... [2025-04-05 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:24:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:25:05 [end_date_ymd] => 2025-04-05 13:25:05 [RateCDR] => 1 ) [2025-04-05 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:25:05' and `end` < '2025-04-05 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:25:18] Production.INFO: count ==1551 [2025-04-05 13:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:25:05 - End Time 2025-04-05 13:25:05 [2025-04-05 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840471', 'tblTempUsageDetail_20' ) start [2025-04-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840471', 'tblTempUsageDetail_20' ) end [2025-04-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840471', 'tblTempVendorCDR_20' ) start [2025-04-05 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840471', 'tblTempVendorCDR_20' ) end [2025-04-05 13:25:19] Production.INFO: ProcessCDR(1,14840471,1,1,2) [2025-04-05 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840471', 'tblTempUsageDetail_20' ) start [2025-04-05 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840471', 'tblTempUsageDetail_20' ) end [2025-04-05 13:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:25:22] Production.INFO: ==4317== Releasing lock... [2025-04-05 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:25:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:26:06 [end_date_ymd] => 2025-04-05 13:26:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:26:06' and `end` < '2025-04-05 13: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-04-05 13:26:19] Production.INFO: count ==1558 [2025-04-05 13:26:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:26:06 - End Time 2025-04-05 13:26:06 [2025-04-05 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840476', 'tblTempUsageDetail_20' ) start [2025-04-05 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840476', 'tblTempUsageDetail_20' ) end [2025-04-05 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840476', 'tblTempVendorCDR_20' ) start [2025-04-05 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840476', 'tblTempVendorCDR_20' ) end [2025-04-05 13:26:19] Production.INFO: ProcessCDR(1,14840476,1,1,2) [2025-04-05 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840476', 'tblTempUsageDetail_20' ) start [2025-04-05 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840476', 'tblTempUsageDetail_20' ) end [2025-04-05 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:26:23] Production.INFO: ==4398== Releasing lock... [2025-04-05 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:26:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:27:05 [end_date_ymd] => 2025-04-05 13:27:05 [RateCDR] => 1 ) [2025-04-05 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:27:05' and `end` < '2025-04-05 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:27:18] Production.INFO: count ==1557 [2025-04-05 13:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:27:05 - End Time 2025-04-05 13:27:05 [2025-04-05 13:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840481', 'tblTempUsageDetail_20' ) start [2025-04-05 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840481', 'tblTempUsageDetail_20' ) end [2025-04-05 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840481', 'tblTempVendorCDR_20' ) start [2025-04-05 13:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840481', 'tblTempVendorCDR_20' ) end [2025-04-05 13:27:19] Production.INFO: ProcessCDR(1,14840481,1,1,2) [2025-04-05 13:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840481', 'tblTempUsageDetail_20' ) start [2025-04-05 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840481', 'tblTempUsageDetail_20' ) end [2025-04-05 13:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:27:22] Production.INFO: ==4472== Releasing lock... [2025-04-05 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:27:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:28:06 [end_date_ymd] => 2025-04-05 13:28:06 [RateCDR] => 1 ) [2025-04-05 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:28:06' and `end` < '2025-04-05 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:28:19] Production.INFO: count ==1557 [2025-04-05 13:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:28:06 - End Time 2025-04-05 13:28:06 [2025-04-05 13:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840486', 'tblTempUsageDetail_20' ) start [2025-04-05 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840486', 'tblTempUsageDetail_20' ) end [2025-04-05 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840486', 'tblTempVendorCDR_20' ) start [2025-04-05 13:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840486', 'tblTempVendorCDR_20' ) end [2025-04-05 13:28:19] Production.INFO: ProcessCDR(1,14840486,1,1,2) [2025-04-05 13:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840486', 'tblTempUsageDetail_20' ) start [2025-04-05 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840486', 'tblTempUsageDetail_20' ) end [2025-04-05 13:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:28:24] Production.INFO: ==4544== Releasing lock... [2025-04-05 13:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:28:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:29:05 [end_date_ymd] => 2025-04-05 13:29:05 [RateCDR] => 1 ) [2025-04-05 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:29:05' and `end` < '2025-04-05 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:29:18] Production.INFO: count ==1554 [2025-04-05 13:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:29:05 - End Time 2025-04-05 13:29:05 [2025-04-05 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840491', 'tblTempUsageDetail_20' ) start [2025-04-05 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840491', 'tblTempUsageDetail_20' ) end [2025-04-05 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840491', 'tblTempVendorCDR_20' ) start [2025-04-05 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840491', 'tblTempVendorCDR_20' ) end [2025-04-05 13:29:18] Production.INFO: ProcessCDR(1,14840491,1,1,2) [2025-04-05 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840491', 'tblTempUsageDetail_20' ) start [2025-04-05 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840491', 'tblTempUsageDetail_20' ) end [2025-04-05 13:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:29:23] Production.INFO: ==4626== Releasing lock... [2025-04-05 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:30:06 [end_date_ymd] => 2025-04-05 13:30:06 [RateCDR] => 1 ) [2025-04-05 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:30:06' and `end` < '2025-04-05 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:30:19] Production.INFO: count ==1550 [2025-04-05 13:30:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:30:06 - End Time 2025-04-05 13:30:06 [2025-04-05 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840497', 'tblTempUsageDetail_20' ) start [2025-04-05 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840497', 'tblTempUsageDetail_20' ) end [2025-04-05 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840497', 'tblTempVendorCDR_20' ) start [2025-04-05 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840497', 'tblTempVendorCDR_20' ) end [2025-04-05 13:30:20] Production.INFO: ProcessCDR(1,14840497,1,1,2) [2025-04-05 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840497', 'tblTempUsageDetail_20' ) start [2025-04-05 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840497', 'tblTempUsageDetail_20' ) end [2025-04-05 13:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:30:25] Production.INFO: ==4713== Releasing lock... [2025-04-05 13:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:30:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:31:05 [end_date_ymd] => 2025-04-05 13:31:05 [RateCDR] => 1 ) [2025-04-05 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:31:05' and `end` < '2025-04-05 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:31:17] Production.INFO: count ==1549 [2025-04-05 13:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:31:05 - End Time 2025-04-05 13:31:05 [2025-04-05 13:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840502', 'tblTempUsageDetail_20' ) start [2025-04-05 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840502', 'tblTempUsageDetail_20' ) end [2025-04-05 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840502', 'tblTempVendorCDR_20' ) start [2025-04-05 13:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840502', 'tblTempVendorCDR_20' ) end [2025-04-05 13:31:18] Production.INFO: ProcessCDR(1,14840502,1,1,2) [2025-04-05 13:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840502', 'tblTempUsageDetail_20' ) start [2025-04-05 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840502', 'tblTempUsageDetail_20' ) end [2025-04-05 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:31:22] Production.INFO: ==4786== Releasing lock... [2025-04-05 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:31:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:32:05 [end_date_ymd] => 2025-04-05 13:32:05 [RateCDR] => 1 ) [2025-04-05 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:32:05' and `end` < '2025-04-05 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:32:18] Production.INFO: count ==1539 [2025-04-05 13:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:32:05 - End Time 2025-04-05 13:32:05 [2025-04-05 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840507', 'tblTempUsageDetail_20' ) start [2025-04-05 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840507', 'tblTempUsageDetail_20' ) end [2025-04-05 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840507', 'tblTempVendorCDR_20' ) start [2025-04-05 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840507', 'tblTempVendorCDR_20' ) end [2025-04-05 13:32:19] Production.INFO: ProcessCDR(1,14840507,1,1,2) [2025-04-05 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840507', 'tblTempUsageDetail_20' ) start [2025-04-05 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840507', 'tblTempUsageDetail_20' ) end [2025-04-05 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:32:22] Production.INFO: ==4862== Releasing lock... [2025-04-05 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:32:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:33:07 [end_date_ymd] => 2025-04-05 13:33:07 [RateCDR] => 1 ) [2025-04-05 13:33: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-04-05 10:33:07' and `end` < '2025-04-05 13:33: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-04-05 13:33:20] Production.INFO: count ==1535 [2025-04-05 13:33:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:33:07 - End Time 2025-04-05 13:33:07 [2025-04-05 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840512', 'tblTempUsageDetail_20' ) start [2025-04-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840512', 'tblTempUsageDetail_20' ) end [2025-04-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840512', 'tblTempVendorCDR_20' ) start [2025-04-05 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840512', 'tblTempVendorCDR_20' ) end [2025-04-05 13:33:20] Production.INFO: ProcessCDR(1,14840512,1,1,2) [2025-04-05 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840512', 'tblTempUsageDetail_20' ) start [2025-04-05 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840512', 'tblTempUsageDetail_20' ) end [2025-04-05 13:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:33:24] Production.INFO: ==4946== Releasing lock... [2025-04-05 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:33:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:34:05 [end_date_ymd] => 2025-04-05 13:34:05 [RateCDR] => 1 ) [2025-04-05 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:34:05' and `end` < '2025-04-05 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:34:18] Production.INFO: count ==1535 [2025-04-05 13:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:34:05 - End Time 2025-04-05 13:34:05 [2025-04-05 13:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840517', 'tblTempUsageDetail_20' ) start [2025-04-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840517', 'tblTempUsageDetail_20' ) end [2025-04-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840517', 'tblTempVendorCDR_20' ) start [2025-04-05 13:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840517', 'tblTempVendorCDR_20' ) end [2025-04-05 13:34:19] Production.INFO: ProcessCDR(1,14840517,1,1,2) [2025-04-05 13:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840517', 'tblTempUsageDetail_20' ) start [2025-04-05 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840517', 'tblTempUsageDetail_20' ) end [2025-04-05 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:34:23] Production.INFO: ==5021== Releasing lock... [2025-04-05 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:34:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:35:06 [end_date_ymd] => 2025-04-05 13:35:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:35:06' and `end` < '2025-04-05 13: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-04-05 13:35:19] Production.INFO: count ==1539 [2025-04-05 13:35:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:35:06 - End Time 2025-04-05 13:35:06 [2025-04-05 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840522', 'tblTempUsageDetail_20' ) start [2025-04-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840522', 'tblTempUsageDetail_20' ) end [2025-04-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840522', 'tblTempVendorCDR_20' ) start [2025-04-05 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840522', 'tblTempVendorCDR_20' ) end [2025-04-05 13:35:20] Production.INFO: ProcessCDR(1,14840522,1,1,2) [2025-04-05 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840522', 'tblTempUsageDetail_20' ) start [2025-04-05 13:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840522', 'tblTempUsageDetail_20' ) end [2025-04-05 13:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:35:25] Production.INFO: ==5100== Releasing lock... [2025-04-05 13:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:35:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:36:06 [end_date_ymd] => 2025-04-05 13:36:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:36:06' and `end` < '2025-04-05 13: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-04-05 13:36:18] Production.INFO: count ==1539 [2025-04-05 13:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:36:06 - End Time 2025-04-05 13:36:06 [2025-04-05 13:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840527', 'tblTempUsageDetail_20' ) start [2025-04-05 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840527', 'tblTempUsageDetail_20' ) end [2025-04-05 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840527', 'tblTempVendorCDR_20' ) start [2025-04-05 13:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840527', 'tblTempVendorCDR_20' ) end [2025-04-05 13:36:19] Production.INFO: ProcessCDR(1,14840527,1,1,2) [2025-04-05 13:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840527', 'tblTempUsageDetail_20' ) start [2025-04-05 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840527', 'tblTempUsageDetail_20' ) end [2025-04-05 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:36:22] Production.INFO: ==5175== Releasing lock... [2025-04-05 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:36:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:37:06 [end_date_ymd] => 2025-04-05 13:37:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:37:06' and `end` < '2025-04-05 13: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-04-05 13:37:19] Production.INFO: count ==1538 [2025-04-05 13:37:20] Production.ERROR: pbx CDR StartTime 2025-04-05 10:37:06 - End Time 2025-04-05 13:37:06 [2025-04-05 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840532', 'tblTempUsageDetail_20' ) start [2025-04-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840532', 'tblTempUsageDetail_20' ) end [2025-04-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840532', 'tblTempVendorCDR_20' ) start [2025-04-05 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840532', 'tblTempVendorCDR_20' ) end [2025-04-05 13:37:20] Production.INFO: ProcessCDR(1,14840532,1,1,2) [2025-04-05 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840532', 'tblTempUsageDetail_20' ) start [2025-04-05 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840532', 'tblTempUsageDetail_20' ) end [2025-04-05 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:37:23] Production.INFO: ==5287== Releasing lock... [2025-04-05 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:37:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:38:05 [end_date_ymd] => 2025-04-05 13:38:05 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:38:05' and `end` < '2025-04-05 13: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-04-05 13:38:18] Production.INFO: count ==1524 [2025-04-05 13:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:38:05 - End Time 2025-04-05 13:38:05 [2025-04-05 13:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840537', 'tblTempUsageDetail_20' ) start [2025-04-05 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840537', 'tblTempUsageDetail_20' ) end [2025-04-05 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840537', 'tblTempVendorCDR_20' ) start [2025-04-05 13:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840537', 'tblTempVendorCDR_20' ) end [2025-04-05 13:38:19] Production.INFO: ProcessCDR(1,14840537,1,1,2) [2025-04-05 13:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840537', 'tblTempUsageDetail_20' ) start [2025-04-05 13:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840537', 'tblTempUsageDetail_20' ) end [2025-04-05 13:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:38:24] Production.INFO: ==5362== Releasing lock... [2025-04-05 13:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:38:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:39:05 [end_date_ymd] => 2025-04-05 13:39:05 [RateCDR] => 1 ) [2025-04-05 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:39:05' and `end` < '2025-04-05 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:39:18] Production.INFO: count ==1531 [2025-04-05 13:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:39:05 - End Time 2025-04-05 13:39:05 [2025-04-05 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840542', 'tblTempUsageDetail_20' ) start [2025-04-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840542', 'tblTempUsageDetail_20' ) end [2025-04-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840542', 'tblTempVendorCDR_20' ) start [2025-04-05 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840542', 'tblTempVendorCDR_20' ) end [2025-04-05 13:39:18] Production.INFO: ProcessCDR(1,14840542,1,1,2) [2025-04-05 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840542', 'tblTempUsageDetail_20' ) start [2025-04-05 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840542', 'tblTempUsageDetail_20' ) end [2025-04-05 13:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:39:24] Production.INFO: ==5433== Releasing lock... [2025-04-05 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:39:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:40:06 [end_date_ymd] => 2025-04-05 13:40:06 [RateCDR] => 1 ) [2025-04-05 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:40:06' and `end` < '2025-04-05 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:40:19] Production.INFO: count ==1531 [2025-04-05 13:40:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:40:06 - End Time 2025-04-05 13:40:06 [2025-04-05 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840548', 'tblTempUsageDetail_20' ) start [2025-04-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840548', 'tblTempUsageDetail_20' ) end [2025-04-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840548', 'tblTempVendorCDR_20' ) start [2025-04-05 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840548', 'tblTempVendorCDR_20' ) end [2025-04-05 13:40:19] Production.INFO: ProcessCDR(1,14840548,1,1,2) [2025-04-05 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840548', 'tblTempUsageDetail_20' ) start [2025-04-05 13:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840548', 'tblTempUsageDetail_20' ) end [2025-04-05 13:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:40:25] Production.INFO: ==5510== Releasing lock... [2025-04-05 13:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:40:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:41:04 [end_date_ymd] => 2025-04-05 13:41:04 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:41:04' and `end` < '2025-04-05 13: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-04-05 13:41:17] Production.INFO: count ==1533 [2025-04-05 13:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:41:04 - End Time 2025-04-05 13:41:04 [2025-04-05 13:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840553', 'tblTempUsageDetail_20' ) start [2025-04-05 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840553', 'tblTempUsageDetail_20' ) end [2025-04-05 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840553', 'tblTempVendorCDR_20' ) start [2025-04-05 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840553', 'tblTempVendorCDR_20' ) end [2025-04-05 13:41:18] Production.INFO: ProcessCDR(1,14840553,1,1,2) [2025-04-05 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840553', 'tblTempUsageDetail_20' ) start [2025-04-05 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840553', 'tblTempUsageDetail_20' ) end [2025-04-05 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:41:21] Production.INFO: ==5585== Releasing lock... [2025-04-05 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:42:06 [end_date_ymd] => 2025-04-05 13:42:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:42:06' and `end` < '2025-04-05 13: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-04-05 13:42:19] Production.INFO: count ==1535 [2025-04-05 13:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:42:06 - End Time 2025-04-05 13:42:06 [2025-04-05 13:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840558', 'tblTempUsageDetail_20' ) start [2025-04-05 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840558', 'tblTempUsageDetail_20' ) end [2025-04-05 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840558', 'tblTempVendorCDR_20' ) start [2025-04-05 13:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840558', 'tblTempVendorCDR_20' ) end [2025-04-05 13:42:19] Production.INFO: ProcessCDR(1,14840558,1,1,2) [2025-04-05 13:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840558', 'tblTempUsageDetail_20' ) start [2025-04-05 13:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840558', 'tblTempUsageDetail_20' ) end [2025-04-05 13:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:42:24] Production.INFO: ==5658== Releasing lock... [2025-04-05 13:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:42:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:43:05 [end_date_ymd] => 2025-04-05 13:43:05 [RateCDR] => 1 ) [2025-04-05 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:43:05' and `end` < '2025-04-05 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:43:18] Production.INFO: count ==1542 [2025-04-05 13:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:43:05 - End Time 2025-04-05 13:43:05 [2025-04-05 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840563', 'tblTempUsageDetail_20' ) start [2025-04-05 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840563', 'tblTempUsageDetail_20' ) end [2025-04-05 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840563', 'tblTempVendorCDR_20' ) start [2025-04-05 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840563', 'tblTempVendorCDR_20' ) end [2025-04-05 13:43:19] Production.INFO: ProcessCDR(1,14840563,1,1,2) [2025-04-05 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840563', 'tblTempUsageDetail_20' ) start [2025-04-05 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840563', 'tblTempUsageDetail_20' ) end [2025-04-05 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:43:24] Production.INFO: ==5735== Releasing lock... [2025-04-05 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:43:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:44:05 [end_date_ymd] => 2025-04-05 13:44:05 [RateCDR] => 1 ) [2025-04-05 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:44:05' and `end` < '2025-04-05 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:44:17] Production.INFO: count ==1540 [2025-04-05 13:44:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:44:05 - End Time 2025-04-05 13:44:05 [2025-04-05 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840568', 'tblTempUsageDetail_20' ) start [2025-04-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840568', 'tblTempUsageDetail_20' ) end [2025-04-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840568', 'tblTempVendorCDR_20' ) start [2025-04-05 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840568', 'tblTempVendorCDR_20' ) end [2025-04-05 13:44:18] Production.INFO: ProcessCDR(1,14840568,1,1,2) [2025-04-05 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840568', 'tblTempUsageDetail_20' ) start [2025-04-05 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840568', 'tblTempUsageDetail_20' ) end [2025-04-05 13:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:44:22] Production.INFO: ==5806== Releasing lock... [2025-04-05 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:45:05 [end_date_ymd] => 2025-04-05 13:45:05 [RateCDR] => 1 ) [2025-04-05 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:45:05' and `end` < '2025-04-05 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:45:18] Production.INFO: count ==1553 [2025-04-05 13:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:45:05 - End Time 2025-04-05 13:45:05 [2025-04-05 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840573', 'tblTempUsageDetail_20' ) start [2025-04-05 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840573', 'tblTempUsageDetail_20' ) end [2025-04-05 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840573', 'tblTempVendorCDR_20' ) start [2025-04-05 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840573', 'tblTempVendorCDR_20' ) end [2025-04-05 13:45:19] Production.INFO: ProcessCDR(1,14840573,1,1,2) [2025-04-05 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840573', 'tblTempUsageDetail_20' ) start [2025-04-05 13:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840573', 'tblTempUsageDetail_20' ) end [2025-04-05 13:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:45:24] Production.INFO: ==5882== Releasing lock... [2025-04-05 13:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:45:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:46:06 [end_date_ymd] => 2025-04-05 13:46:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:46:06' and `end` < '2025-04-05 13: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-04-05 13:46:19] Production.INFO: count ==1551 [2025-04-05 13:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:46:06 - End Time 2025-04-05 13:46:06 [2025-04-05 13:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840578', 'tblTempUsageDetail_20' ) start [2025-04-05 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840578', 'tblTempUsageDetail_20' ) end [2025-04-05 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840578', 'tblTempVendorCDR_20' ) start [2025-04-05 13:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840578', 'tblTempVendorCDR_20' ) end [2025-04-05 13:46:19] Production.INFO: ProcessCDR(1,14840578,1,1,2) [2025-04-05 13:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840578', 'tblTempUsageDetail_20' ) start [2025-04-05 13:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840578', 'tblTempUsageDetail_20' ) end [2025-04-05 13:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:46:24] Production.INFO: ==5960== Releasing lock... [2025-04-05 13:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:46:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:47:06 [end_date_ymd] => 2025-04-05 13:47:06 [RateCDR] => 1 ) [2025-04-05 13:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:47:06' and `end` < '2025-04-05 13:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:47:19] Production.INFO: count ==1543 [2025-04-05 13:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:47:06 - End Time 2025-04-05 13:47:06 [2025-04-05 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840583', 'tblTempUsageDetail_20' ) start [2025-04-05 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840583', 'tblTempUsageDetail_20' ) end [2025-04-05 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840583', 'tblTempVendorCDR_20' ) start [2025-04-05 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840583', 'tblTempVendorCDR_20' ) end [2025-04-05 13:47:19] Production.INFO: ProcessCDR(1,14840583,1,1,2) [2025-04-05 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840583', 'tblTempUsageDetail_20' ) start [2025-04-05 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840583', 'tblTempUsageDetail_20' ) end [2025-04-05 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:47:23] Production.INFO: ==6032== Releasing lock... [2025-04-05 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:47:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:48:05 [end_date_ymd] => 2025-04-05 13:48:05 [RateCDR] => 1 ) [2025-04-05 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:48:05' and `end` < '2025-04-05 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:48:18] Production.INFO: count ==1543 [2025-04-05 13:48:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:48:05 - End Time 2025-04-05 13:48:05 [2025-04-05 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840588', 'tblTempUsageDetail_20' ) start [2025-04-05 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840588', 'tblTempUsageDetail_20' ) end [2025-04-05 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840588', 'tblTempVendorCDR_20' ) start [2025-04-05 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840588', 'tblTempVendorCDR_20' ) end [2025-04-05 13:48:19] Production.INFO: ProcessCDR(1,14840588,1,1,2) [2025-04-05 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840588', 'tblTempUsageDetail_20' ) start [2025-04-05 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840588', 'tblTempUsageDetail_20' ) end [2025-04-05 13:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:48:24] Production.INFO: ==6115== Releasing lock... [2025-04-05 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:48:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:49:06 [end_date_ymd] => 2025-04-05 13:49:06 [RateCDR] => 1 ) [2025-04-05 13:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:49:06' and `end` < '2025-04-05 13:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:49:18] Production.INFO: count ==1546 [2025-04-05 13:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:49:06 - End Time 2025-04-05 13:49:06 [2025-04-05 13:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840593', 'tblTempUsageDetail_20' ) start [2025-04-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840593', 'tblTempUsageDetail_20' ) end [2025-04-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840593', 'tblTempVendorCDR_20' ) start [2025-04-05 13:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840593', 'tblTempVendorCDR_20' ) end [2025-04-05 13:49:19] Production.INFO: ProcessCDR(1,14840593,1,1,2) [2025-04-05 13:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840593', 'tblTempUsageDetail_20' ) start [2025-04-05 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840593', 'tblTempUsageDetail_20' ) end [2025-04-05 13:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:49:23] Production.INFO: ==6198== Releasing lock... [2025-04-05 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:49:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:50:06 [end_date_ymd] => 2025-04-05 13:50:06 [RateCDR] => 1 ) [2025-04-05 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:50:06' and `end` < '2025-04-05 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:50:19] Production.INFO: count ==1544 [2025-04-05 13:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:50:06 - End Time 2025-04-05 13:50:06 [2025-04-05 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840599', 'tblTempUsageDetail_20' ) start [2025-04-05 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840599', 'tblTempUsageDetail_20' ) end [2025-04-05 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840599', 'tblTempVendorCDR_20' ) start [2025-04-05 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840599', 'tblTempVendorCDR_20' ) end [2025-04-05 13:50:19] Production.INFO: ProcessCDR(1,14840599,1,1,2) [2025-04-05 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840599', 'tblTempUsageDetail_20' ) start [2025-04-05 13:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840599', 'tblTempUsageDetail_20' ) end [2025-04-05 13:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:50:24] Production.INFO: ==6273== Releasing lock... [2025-04-05 13:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:51:06 [end_date_ymd] => 2025-04-05 13:51:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:51:06' and `end` < '2025-04-05 13: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-04-05 13:51:19] Production.INFO: count ==1538 [2025-04-05 13:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:51:06 - End Time 2025-04-05 13:51:06 [2025-04-05 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840604', 'tblTempUsageDetail_20' ) start [2025-04-05 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840604', 'tblTempUsageDetail_20' ) end [2025-04-05 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840604', 'tblTempVendorCDR_20' ) start [2025-04-05 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840604', 'tblTempVendorCDR_20' ) end [2025-04-05 13:51:19] Production.INFO: ProcessCDR(1,14840604,1,1,2) [2025-04-05 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840604', 'tblTempUsageDetail_20' ) start [2025-04-05 13:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840604', 'tblTempUsageDetail_20' ) end [2025-04-05 13:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:51:24] Production.INFO: ==6352== Releasing lock... [2025-04-05 13:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:51:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:52:05 [end_date_ymd] => 2025-04-05 13:52:05 [RateCDR] => 1 ) [2025-04-05 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:52:05' and `end` < '2025-04-05 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:52:18] Production.INFO: count ==1532 [2025-04-05 13:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:52:05 - End Time 2025-04-05 13:52:05 [2025-04-05 13:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840609', 'tblTempUsageDetail_20' ) start [2025-04-05 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840609', 'tblTempUsageDetail_20' ) end [2025-04-05 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840609', 'tblTempVendorCDR_20' ) start [2025-04-05 13:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840609', 'tblTempVendorCDR_20' ) end [2025-04-05 13:52:19] Production.INFO: ProcessCDR(1,14840609,1,1,2) [2025-04-05 13:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840609', 'tblTempUsageDetail_20' ) start [2025-04-05 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840609', 'tblTempUsageDetail_20' ) end [2025-04-05 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:52:23] Production.INFO: ==6428== Releasing lock... [2025-04-05 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:52:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:53:06 [end_date_ymd] => 2025-04-05 13:53:06 [RateCDR] => 1 ) [2025-04-05 13:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:53:06' and `end` < '2025-04-05 13:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:53:19] Production.INFO: count ==1548 [2025-04-05 13:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:53:06 - End Time 2025-04-05 13:53:06 [2025-04-05 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840614', 'tblTempUsageDetail_20' ) start [2025-04-05 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840614', 'tblTempUsageDetail_20' ) end [2025-04-05 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840614', 'tblTempVendorCDR_20' ) start [2025-04-05 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840614', 'tblTempVendorCDR_20' ) end [2025-04-05 13:53:19] Production.INFO: ProcessCDR(1,14840614,1,1,2) [2025-04-05 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840614', 'tblTempUsageDetail_20' ) start [2025-04-05 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840614', 'tblTempUsageDetail_20' ) end [2025-04-05 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:53:25] Production.INFO: ==6541== Releasing lock... [2025-04-05 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:53:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:54:05 [end_date_ymd] => 2025-04-05 13:54:05 [RateCDR] => 1 ) [2025-04-05 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:54:05' and `end` < '2025-04-05 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:54:18] Production.INFO: count ==1554 [2025-04-05 13:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:54:05 - End Time 2025-04-05 13:54:05 [2025-04-05 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840619', 'tblTempUsageDetail_20' ) start [2025-04-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840619', 'tblTempUsageDetail_20' ) end [2025-04-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840619', 'tblTempVendorCDR_20' ) start [2025-04-05 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840619', 'tblTempVendorCDR_20' ) end [2025-04-05 13:54:18] Production.INFO: ProcessCDR(1,14840619,1,1,2) [2025-04-05 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840619', 'tblTempUsageDetail_20' ) start [2025-04-05 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840619', 'tblTempUsageDetail_20' ) end [2025-04-05 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:54:22] Production.INFO: ==6610== Releasing lock... [2025-04-05 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:55:05 [end_date_ymd] => 2025-04-05 13:55:05 [RateCDR] => 1 ) [2025-04-05 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:55:05' and `end` < '2025-04-05 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:55:18] Production.INFO: count ==1542 [2025-04-05 13:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:55:05 - End Time 2025-04-05 13:55:05 [2025-04-05 13:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840624', 'tblTempUsageDetail_20' ) start [2025-04-05 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840624', 'tblTempUsageDetail_20' ) end [2025-04-05 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840624', 'tblTempVendorCDR_20' ) start [2025-04-05 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840624', 'tblTempVendorCDR_20' ) end [2025-04-05 13:55:19] Production.INFO: ProcessCDR(1,14840624,1,1,2) [2025-04-05 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840624', 'tblTempUsageDetail_20' ) start [2025-04-05 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840624', 'tblTempUsageDetail_20' ) end [2025-04-05 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:55:22] Production.INFO: ==6683== Releasing lock... [2025-04-05 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:55:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:56:05 [end_date_ymd] => 2025-04-05 13:56:05 [RateCDR] => 1 ) [2025-04-05 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:56:05' and `end` < '2025-04-05 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:56:18] Production.INFO: count ==1543 [2025-04-05 13:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:56:05 - End Time 2025-04-05 13:56:05 [2025-04-05 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840629', 'tblTempUsageDetail_20' ) start [2025-04-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840629', 'tblTempUsageDetail_20' ) end [2025-04-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840629', 'tblTempVendorCDR_20' ) start [2025-04-05 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840629', 'tblTempVendorCDR_20' ) end [2025-04-05 13:56:19] Production.INFO: ProcessCDR(1,14840629,1,1,2) [2025-04-05 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840629', 'tblTempUsageDetail_20' ) start [2025-04-05 13:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840629', 'tblTempUsageDetail_20' ) end [2025-04-05 13:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:56:24] Production.INFO: ==6756== Releasing lock... [2025-04-05 13:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:56:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:57:06 [end_date_ymd] => 2025-04-05 13:57:06 [RateCDR] => 1 ) [2025-04-05 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:57:06' and `end` < '2025-04-05 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:57:18] Production.INFO: count ==1549 [2025-04-05 13:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:57:06 - End Time 2025-04-05 13:57:06 [2025-04-05 13:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840634', 'tblTempUsageDetail_20' ) start [2025-04-05 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840634', 'tblTempUsageDetail_20' ) end [2025-04-05 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840634', 'tblTempVendorCDR_20' ) start [2025-04-05 13:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840634', 'tblTempVendorCDR_20' ) end [2025-04-05 13:57:19] Production.INFO: ProcessCDR(1,14840634,1,1,2) [2025-04-05 13:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840634', 'tblTempUsageDetail_20' ) start [2025-04-05 13:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840634', 'tblTempUsageDetail_20' ) end [2025-04-05 13:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:57:24] Production.INFO: ==6828== Releasing lock... [2025-04-05 13:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:57:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:58:06 [end_date_ymd] => 2025-04-05 13:58:06 [RateCDR] => 1 ) [2025-04-05 13: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-04-05 10:58:06' and `end` < '2025-04-05 13: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-04-05 13:58:18] Production.INFO: count ==1550 [2025-04-05 13:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 10:58:06 - End Time 2025-04-05 13:58:06 [2025-04-05 13:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840639', 'tblTempUsageDetail_20' ) start [2025-04-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840639', 'tblTempUsageDetail_20' ) end [2025-04-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840639', 'tblTempVendorCDR_20' ) start [2025-04-05 13:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840639', 'tblTempVendorCDR_20' ) end [2025-04-05 13:58:19] Production.INFO: ProcessCDR(1,14840639,1,1,2) [2025-04-05 13:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840639', 'tblTempUsageDetail_20' ) start [2025-04-05 13:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840639', 'tblTempUsageDetail_20' ) end [2025-04-05 13:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:58:24] Production.INFO: ==6900== Releasing lock... [2025-04-05 13:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:58:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 10:59:05 [end_date_ymd] => 2025-04-05 13:59:05 [RateCDR] => 1 ) [2025-04-05 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 10:59:05' and `end` < '2025-04-05 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 13:59:18] Production.INFO: count ==1555 [2025-04-05 13:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 10:59:05 - End Time 2025-04-05 13:59:05 [2025-04-05 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840644', 'tblTempUsageDetail_20' ) start [2025-04-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840644', 'tblTempUsageDetail_20' ) end [2025-04-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840644', 'tblTempVendorCDR_20' ) start [2025-04-05 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840644', 'tblTempVendorCDR_20' ) end [2025-04-05 13:59:18] Production.INFO: ProcessCDR(1,14840644,1,1,2) [2025-04-05 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840644', 'tblTempUsageDetail_20' ) start [2025-04-05 13:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840644', 'tblTempUsageDetail_20' ) end [2025-04-05 13:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 13:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 13:59:23] Production.INFO: ==6971== Releasing lock... [2025-04-05 13:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 13:59:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:00:06 [end_date_ymd] => 2025-04-05 14:00:06 [RateCDR] => 1 ) [2025-04-05 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:00:06' and `end` < '2025-04-05 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:00:18] Production.INFO: count ==1564 [2025-04-05 14:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:00:06 - End Time 2025-04-05 14:00:06 [2025-04-05 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840650', 'tblTempUsageDetail_20' ) start [2025-04-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840650', 'tblTempUsageDetail_20' ) end [2025-04-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840650', 'tblTempVendorCDR_20' ) start [2025-04-05 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840650', 'tblTempVendorCDR_20' ) end [2025-04-05 14:00:19] Production.INFO: ProcessCDR(1,14840650,1,1,2) [2025-04-05 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840650', 'tblTempUsageDetail_20' ) start [2025-04-05 14:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840650', 'tblTempUsageDetail_20' ) end [2025-04-05 14:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:00:24] Production.INFO: ==7047== Releasing lock... [2025-04-05 14:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:00:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:01:05 [end_date_ymd] => 2025-04-05 14:01:05 [RateCDR] => 1 ) [2025-04-05 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:01:05' and `end` < '2025-04-05 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:01:18] Production.INFO: count ==1535 [2025-04-05 14:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:01:05 - End Time 2025-04-05 14:01:05 [2025-04-05 14:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840655', 'tblTempUsageDetail_20' ) start [2025-04-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840655', 'tblTempUsageDetail_20' ) end [2025-04-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840655', 'tblTempVendorCDR_20' ) start [2025-04-05 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840655', 'tblTempVendorCDR_20' ) end [2025-04-05 14:01:18] Production.INFO: ProcessCDR(1,14840655,1,1,2) [2025-04-05 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840655', 'tblTempUsageDetail_20' ) start [2025-04-05 14:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840655', 'tblTempUsageDetail_20' ) end [2025-04-05 14:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:01:23] Production.INFO: ==7133== Releasing lock... [2025-04-05 14:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:01:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:02:06 [end_date_ymd] => 2025-04-05 14:02:06 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:02:06' and `end` < '2025-04-05 14: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-04-05 14:02:19] Production.INFO: count ==1530 [2025-04-05 14:02:20] Production.ERROR: pbx CDR StartTime 2025-04-05 11:02:06 - End Time 2025-04-05 14:02:06 [2025-04-05 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840660', 'tblTempUsageDetail_20' ) start [2025-04-05 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840660', 'tblTempUsageDetail_20' ) end [2025-04-05 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840660', 'tblTempVendorCDR_20' ) start [2025-04-05 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840660', 'tblTempVendorCDR_20' ) end [2025-04-05 14:02:20] Production.INFO: ProcessCDR(1,14840660,1,1,2) [2025-04-05 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840660', 'tblTempUsageDetail_20' ) start [2025-04-05 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840660', 'tblTempUsageDetail_20' ) end [2025-04-05 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:02:26] Production.INFO: ==7206== Releasing lock... [2025-04-05 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:02:26] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:03:05 [end_date_ymd] => 2025-04-05 14:03:05 [RateCDR] => 1 ) [2025-04-05 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:03:05' and `end` < '2025-04-05 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:03:18] Production.INFO: count ==1528 [2025-04-05 14:03:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:03:05 - End Time 2025-04-05 14:03:05 [2025-04-05 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840665', 'tblTempUsageDetail_20' ) start [2025-04-05 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840665', 'tblTempUsageDetail_20' ) end [2025-04-05 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840665', 'tblTempVendorCDR_20' ) start [2025-04-05 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840665', 'tblTempVendorCDR_20' ) end [2025-04-05 14:03:19] Production.INFO: ProcessCDR(1,14840665,1,1,2) [2025-04-05 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840665', 'tblTempUsageDetail_20' ) start [2025-04-05 14:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840665', 'tblTempUsageDetail_20' ) end [2025-04-05 14:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:03:23] Production.INFO: ==7282== Releasing lock... [2025-04-05 14:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:03:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:04:06 [end_date_ymd] => 2025-04-05 14:04:06 [RateCDR] => 1 ) [2025-04-05 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:04:06' and `end` < '2025-04-05 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:04:19] Production.INFO: count ==1518 [2025-04-05 14:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:04:06 - End Time 2025-04-05 14:04:06 [2025-04-05 14:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840670', 'tblTempUsageDetail_20' ) start [2025-04-05 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840670', 'tblTempUsageDetail_20' ) end [2025-04-05 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840670', 'tblTempVendorCDR_20' ) start [2025-04-05 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840670', 'tblTempVendorCDR_20' ) end [2025-04-05 14:04:20] Production.INFO: ProcessCDR(1,14840670,1,1,2) [2025-04-05 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840670', 'tblTempUsageDetail_20' ) start [2025-04-05 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840670', 'tblTempUsageDetail_20' ) end [2025-04-05 14:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:04:25] Production.INFO: ==7363== Releasing lock... [2025-04-05 14:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:04:25] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:05:06 [end_date_ymd] => 2025-04-05 14:05:06 [RateCDR] => 1 ) [2025-04-05 14:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:05:06' and `end` < '2025-04-05 14:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:05:19] Production.INFO: count ==1536 [2025-04-05 14:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:05:06 - End Time 2025-04-05 14:05:06 [2025-04-05 14:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840675', 'tblTempUsageDetail_20' ) start [2025-04-05 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840675', 'tblTempUsageDetail_20' ) end [2025-04-05 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840675', 'tblTempVendorCDR_20' ) start [2025-04-05 14:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840675', 'tblTempVendorCDR_20' ) end [2025-04-05 14:05:19] Production.INFO: ProcessCDR(1,14840675,1,1,2) [2025-04-05 14:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840675', 'tblTempUsageDetail_20' ) start [2025-04-05 14:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840675', 'tblTempUsageDetail_20' ) end [2025-04-05 14:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:05:24] Production.INFO: ==7446== Releasing lock... [2025-04-05 14:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:05:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:06:05 [end_date_ymd] => 2025-04-05 14:06:05 [RateCDR] => 1 ) [2025-04-05 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:06:05' and `end` < '2025-04-05 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:06:18] Production.INFO: count ==1535 [2025-04-05 14:06:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:06:05 - End Time 2025-04-05 14:06:05 [2025-04-05 14:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840680', 'tblTempUsageDetail_20' ) start [2025-04-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840680', 'tblTempUsageDetail_20' ) end [2025-04-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840680', 'tblTempVendorCDR_20' ) start [2025-04-05 14:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840680', 'tblTempVendorCDR_20' ) end [2025-04-05 14:06:19] Production.INFO: ProcessCDR(1,14840680,1,1,2) [2025-04-05 14:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840680', 'tblTempUsageDetail_20' ) start [2025-04-05 14:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840680', 'tblTempUsageDetail_20' ) end [2025-04-05 14:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:06:24] Production.INFO: ==7516== Releasing lock... [2025-04-05 14:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:06:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:07:05 [end_date_ymd] => 2025-04-05 14:07:05 [RateCDR] => 1 ) [2025-04-05 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:07:05' and `end` < '2025-04-05 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:07:18] Production.INFO: count ==1523 [2025-04-05 14:07:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:07:05 - End Time 2025-04-05 14:07:05 [2025-04-05 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840685', 'tblTempUsageDetail_20' ) start [2025-04-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840685', 'tblTempUsageDetail_20' ) end [2025-04-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840685', 'tblTempVendorCDR_20' ) start [2025-04-05 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840685', 'tblTempVendorCDR_20' ) end [2025-04-05 14:07:18] Production.INFO: ProcessCDR(1,14840685,1,1,2) [2025-04-05 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840685', 'tblTempUsageDetail_20' ) start [2025-04-05 14:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840685', 'tblTempUsageDetail_20' ) end [2025-04-05 14:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:07:24] Production.INFO: ==7589== Releasing lock... [2025-04-05 14:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:08:05 [end_date_ymd] => 2025-04-05 14:08:05 [RateCDR] => 1 ) [2025-04-05 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:08:05' and `end` < '2025-04-05 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:08:18] Production.INFO: count ==1523 [2025-04-05 14:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:08:05 - End Time 2025-04-05 14:08:05 [2025-04-05 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840690', 'tblTempUsageDetail_20' ) start [2025-04-05 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840690', 'tblTempUsageDetail_20' ) end [2025-04-05 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840690', 'tblTempVendorCDR_20' ) start [2025-04-05 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840690', 'tblTempVendorCDR_20' ) end [2025-04-05 14:08:18] Production.INFO: ProcessCDR(1,14840690,1,1,2) [2025-04-05 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840690', 'tblTempUsageDetail_20' ) start [2025-04-05 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840690', 'tblTempUsageDetail_20' ) end [2025-04-05 14:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:08:22] Production.INFO: ==7718== Releasing lock... [2025-04-05 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:09:05 [end_date_ymd] => 2025-04-05 14:09:05 [RateCDR] => 1 ) [2025-04-05 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:09:05' and `end` < '2025-04-05 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:09:18] Production.INFO: count ==1522 [2025-04-05 14:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:09:05 - End Time 2025-04-05 14:09:05 [2025-04-05 14:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840695', 'tblTempUsageDetail_20' ) start [2025-04-05 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840695', 'tblTempUsageDetail_20' ) end [2025-04-05 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840695', 'tblTempVendorCDR_20' ) start [2025-04-05 14:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840695', 'tblTempVendorCDR_20' ) end [2025-04-05 14:09:19] Production.INFO: ProcessCDR(1,14840695,1,1,2) [2025-04-05 14:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840695', 'tblTempUsageDetail_20' ) start [2025-04-05 14:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840695', 'tblTempUsageDetail_20' ) end [2025-04-05 14:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:09:22] Production.INFO: ==7791== Releasing lock... [2025-04-05 14:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:09:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:10:07 [end_date_ymd] => 2025-04-05 14:10:07 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:10:07' and `end` < '2025-04-05 14: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-04-05 14:10:20] Production.INFO: count ==1519 [2025-04-05 14:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 11:10:07 - End Time 2025-04-05 14:10:07 [2025-04-05 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840701', 'tblTempUsageDetail_20' ) start [2025-04-05 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840701', 'tblTempUsageDetail_20' ) end [2025-04-05 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840701', 'tblTempVendorCDR_20' ) start [2025-04-05 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840701', 'tblTempVendorCDR_20' ) end [2025-04-05 14:10:20] Production.INFO: ProcessCDR(1,14840701,1,1,2) [2025-04-05 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840701', 'tblTempUsageDetail_20' ) start [2025-04-05 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840701', 'tblTempUsageDetail_20' ) end [2025-04-05 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:10:26] Production.INFO: ==7864== Releasing lock... [2025-04-05 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:10:26] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:11:05 [end_date_ymd] => 2025-04-05 14:11:05 [RateCDR] => 1 ) [2025-04-05 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:11:05' and `end` < '2025-04-05 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:11:18] Production.INFO: count ==1525 [2025-04-05 14:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:11:05 - End Time 2025-04-05 14:11:05 [2025-04-05 14:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840706', 'tblTempUsageDetail_20' ) start [2025-04-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840706', 'tblTempUsageDetail_20' ) end [2025-04-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840706', 'tblTempVendorCDR_20' ) start [2025-04-05 14:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840706', 'tblTempVendorCDR_20' ) end [2025-04-05 14:11:19] Production.INFO: ProcessCDR(1,14840706,1,1,2) [2025-04-05 14:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840706', 'tblTempUsageDetail_20' ) start [2025-04-05 14:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840706', 'tblTempUsageDetail_20' ) end [2025-04-05 14:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:11:24] Production.INFO: ==7939== Releasing lock... [2025-04-05 14:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:11:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:12:06 [end_date_ymd] => 2025-04-05 14:12:06 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:12:06' and `end` < '2025-04-05 14: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-04-05 14:12:19] Production.INFO: count ==1518 [2025-04-05 14:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:12:06 - End Time 2025-04-05 14:12:06 [2025-04-05 14:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840711', 'tblTempUsageDetail_20' ) start [2025-04-05 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840711', 'tblTempUsageDetail_20' ) end [2025-04-05 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840711', 'tblTempVendorCDR_20' ) start [2025-04-05 14:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840711', 'tblTempVendorCDR_20' ) end [2025-04-05 14:12:19] Production.INFO: ProcessCDR(1,14840711,1,1,2) [2025-04-05 14:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840711', 'tblTempUsageDetail_20' ) start [2025-04-05 14:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840711', 'tblTempUsageDetail_20' ) end [2025-04-05 14:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:12:24] Production.INFO: ==8010== Releasing lock... [2025-04-05 14:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:12:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:13:05 [end_date_ymd] => 2025-04-05 14:13:05 [RateCDR] => 1 ) [2025-04-05 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:13:05' and `end` < '2025-04-05 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:13:18] Production.INFO: count ==1525 [2025-04-05 14:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:13:05 - End Time 2025-04-05 14:13:05 [2025-04-05 14:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840716', 'tblTempUsageDetail_20' ) start [2025-04-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840716', 'tblTempUsageDetail_20' ) end [2025-04-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840716', 'tblTempVendorCDR_20' ) start [2025-04-05 14:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840716', 'tblTempVendorCDR_20' ) end [2025-04-05 14:13:19] Production.INFO: ProcessCDR(1,14840716,1,1,2) [2025-04-05 14:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840716', 'tblTempUsageDetail_20' ) start [2025-04-05 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840716', 'tblTempUsageDetail_20' ) end [2025-04-05 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:13:23] Production.INFO: ==8082== Releasing lock... [2025-04-05 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:13:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:14:06 [end_date_ymd] => 2025-04-05 14:14:06 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:14:06' and `end` < '2025-04-05 14: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-04-05 14:14:18] Production.INFO: count ==1532 [2025-04-05 14:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:14:06 - End Time 2025-04-05 14:14:06 [2025-04-05 14:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840721', 'tblTempUsageDetail_20' ) start [2025-04-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840721', 'tblTempUsageDetail_20' ) end [2025-04-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840721', 'tblTempVendorCDR_20' ) start [2025-04-05 14:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840721', 'tblTempVendorCDR_20' ) end [2025-04-05 14:14:19] Production.INFO: ProcessCDR(1,14840721,1,1,2) [2025-04-05 14:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840721', 'tblTempUsageDetail_20' ) start [2025-04-05 14:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840721', 'tblTempUsageDetail_20' ) end [2025-04-05 14:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:14:24] Production.INFO: ==8154== Releasing lock... [2025-04-05 14:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:14:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:15:05 [end_date_ymd] => 2025-04-05 14:15:05 [RateCDR] => 1 ) [2025-04-05 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:15:05' and `end` < '2025-04-05 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:15:18] Production.INFO: count ==1574 [2025-04-05 14:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:15:05 - End Time 2025-04-05 14:15:05 [2025-04-05 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840726', 'tblTempUsageDetail_20' ) start [2025-04-05 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840726', 'tblTempUsageDetail_20' ) end [2025-04-05 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840726', 'tblTempVendorCDR_20' ) start [2025-04-05 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840726', 'tblTempVendorCDR_20' ) end [2025-04-05 14:15:18] Production.INFO: ProcessCDR(1,14840726,1,1,2) [2025-04-05 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840726', 'tblTempUsageDetail_20' ) start [2025-04-05 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840726', 'tblTempUsageDetail_20' ) end [2025-04-05 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:15:22] Production.INFO: ==8227== Releasing lock... [2025-04-05 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:15:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:16:05 [end_date_ymd] => 2025-04-05 14:16:05 [RateCDR] => 1 ) [2025-04-05 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:16:05' and `end` < '2025-04-05 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:16:18] Production.INFO: count ==1574 [2025-04-05 14:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:16:05 - End Time 2025-04-05 14:16:05 [2025-04-05 14:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840731', 'tblTempUsageDetail_20' ) start [2025-04-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840731', 'tblTempUsageDetail_20' ) end [2025-04-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840731', 'tblTempVendorCDR_20' ) start [2025-04-05 14:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840731', 'tblTempVendorCDR_20' ) end [2025-04-05 14:16:19] Production.INFO: ProcessCDR(1,14840731,1,1,2) [2025-04-05 14:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840731', 'tblTempUsageDetail_20' ) start [2025-04-05 14:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840731', 'tblTempUsageDetail_20' ) end [2025-04-05 14:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:16:24] Production.INFO: ==8301== Releasing lock... [2025-04-05 14:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:16:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:17:05 [end_date_ymd] => 2025-04-05 14:17:05 [RateCDR] => 1 ) [2025-04-05 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:17:05' and `end` < '2025-04-05 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:17:18] Production.INFO: count ==1570 [2025-04-05 14:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:17:05 - End Time 2025-04-05 14:17:05 [2025-04-05 14:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840736', 'tblTempUsageDetail_20' ) start [2025-04-05 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840736', 'tblTempUsageDetail_20' ) end [2025-04-05 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840736', 'tblTempVendorCDR_20' ) start [2025-04-05 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840736', 'tblTempVendorCDR_20' ) end [2025-04-05 14:17:18] Production.INFO: ProcessCDR(1,14840736,1,1,2) [2025-04-05 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840736', 'tblTempUsageDetail_20' ) start [2025-04-05 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840736', 'tblTempUsageDetail_20' ) end [2025-04-05 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:17:23] Production.INFO: ==8373== Releasing lock... [2025-04-05 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:17:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:18:05 [end_date_ymd] => 2025-04-05 14:18:05 [RateCDR] => 1 ) [2025-04-05 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:18:05' and `end` < '2025-04-05 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:18:18] Production.INFO: count ==1574 [2025-04-05 14:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:18:05 - End Time 2025-04-05 14:18:05 [2025-04-05 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840741', 'tblTempUsageDetail_20' ) start [2025-04-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840741', 'tblTempUsageDetail_20' ) end [2025-04-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840741', 'tblTempVendorCDR_20' ) start [2025-04-05 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840741', 'tblTempVendorCDR_20' ) end [2025-04-05 14:18:19] Production.INFO: ProcessCDR(1,14840741,1,1,2) [2025-04-05 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840741', 'tblTempUsageDetail_20' ) start [2025-04-05 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840741', 'tblTempUsageDetail_20' ) end [2025-04-05 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:18:24] Production.INFO: ==8447== Releasing lock... [2025-04-05 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:18:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:19:05 [end_date_ymd] => 2025-04-05 14:19:05 [RateCDR] => 1 ) [2025-04-05 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:19:05' and `end` < '2025-04-05 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:19:18] Production.INFO: count ==1567 [2025-04-05 14:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:19:05 - End Time 2025-04-05 14:19:05 [2025-04-05 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840746', 'tblTempUsageDetail_20' ) start [2025-04-05 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840746', 'tblTempUsageDetail_20' ) end [2025-04-05 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840746', 'tblTempVendorCDR_20' ) start [2025-04-05 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840746', 'tblTempVendorCDR_20' ) end [2025-04-05 14:19:18] Production.INFO: ProcessCDR(1,14840746,1,1,2) [2025-04-05 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840746', 'tblTempUsageDetail_20' ) start [2025-04-05 14:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840746', 'tblTempUsageDetail_20' ) end [2025-04-05 14:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:19:23] Production.INFO: ==8523== Releasing lock... [2025-04-05 14:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:20:06 [end_date_ymd] => 2025-04-05 14:20:06 [RateCDR] => 1 ) [2025-04-05 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:20:06' and `end` < '2025-04-05 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:20:19] Production.INFO: count ==1566 [2025-04-05 14:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:20:06 - End Time 2025-04-05 14:20:06 [2025-04-05 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840752', 'tblTempUsageDetail_20' ) start [2025-04-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840752', 'tblTempUsageDetail_20' ) end [2025-04-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840752', 'tblTempVendorCDR_20' ) start [2025-04-05 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840752', 'tblTempVendorCDR_20' ) end [2025-04-05 14:20:19] Production.INFO: ProcessCDR(1,14840752,1,1,2) [2025-04-05 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840752', 'tblTempUsageDetail_20' ) start [2025-04-05 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840752', 'tblTempUsageDetail_20' ) end [2025-04-05 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:20:23] Production.INFO: ==8613== Releasing lock... [2025-04-05 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:21:06 [end_date_ymd] => 2025-04-05 14:21:06 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:21:06' and `end` < '2025-04-05 14: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-04-05 14:21:18] Production.INFO: count ==1565 [2025-04-05 14:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:21:06 - End Time 2025-04-05 14:21:06 [2025-04-05 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840757', 'tblTempUsageDetail_20' ) start [2025-04-05 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840757', 'tblTempUsageDetail_20' ) end [2025-04-05 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840757', 'tblTempVendorCDR_20' ) start [2025-04-05 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840757', 'tblTempVendorCDR_20' ) end [2025-04-05 14:21:19] Production.INFO: ProcessCDR(1,14840757,1,1,2) [2025-04-05 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840757', 'tblTempUsageDetail_20' ) start [2025-04-05 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840757', 'tblTempUsageDetail_20' ) end [2025-04-05 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:21:24] Production.INFO: ==8693== Releasing lock... [2025-04-05 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:21:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:22:05 [end_date_ymd] => 2025-04-05 14:22:05 [RateCDR] => 1 ) [2025-04-05 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:22:05' and `end` < '2025-04-05 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:22:18] Production.INFO: count ==1566 [2025-04-05 14:22:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:22:05 - End Time 2025-04-05 14:22:05 [2025-04-05 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840762', 'tblTempUsageDetail_20' ) start [2025-04-05 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840762', 'tblTempUsageDetail_20' ) end [2025-04-05 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840762', 'tblTempVendorCDR_20' ) start [2025-04-05 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840762', 'tblTempVendorCDR_20' ) end [2025-04-05 14:22:18] Production.INFO: ProcessCDR(1,14840762,1,1,2) [2025-04-05 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840762', 'tblTempUsageDetail_20' ) start [2025-04-05 14:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840762', 'tblTempUsageDetail_20' ) end [2025-04-05 14:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:22:23] Production.INFO: ==8768== Releasing lock... [2025-04-05 14:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:22:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:23:05 [end_date_ymd] => 2025-04-05 14:23:05 [RateCDR] => 1 ) [2025-04-05 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:23:05' and `end` < '2025-04-05 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:23:18] Production.INFO: count ==1560 [2025-04-05 14:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:23:05 - End Time 2025-04-05 14:23:05 [2025-04-05 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840767', 'tblTempUsageDetail_20' ) start [2025-04-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840767', 'tblTempUsageDetail_20' ) end [2025-04-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840767', 'tblTempVendorCDR_20' ) start [2025-04-05 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840767', 'tblTempVendorCDR_20' ) end [2025-04-05 14:23:19] Production.INFO: ProcessCDR(1,14840767,1,1,2) [2025-04-05 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840767', 'tblTempUsageDetail_20' ) start [2025-04-05 14:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840767', 'tblTempUsageDetail_20' ) end [2025-04-05 14:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:23:24] Production.INFO: ==8847== Releasing lock... [2025-04-05 14:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:23:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:24:05 [end_date_ymd] => 2025-04-05 14:24:05 [RateCDR] => 1 ) [2025-04-05 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:24:05' and `end` < '2025-04-05 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:24:18] Production.INFO: count ==1565 [2025-04-05 14:24:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:24:05 - End Time 2025-04-05 14:24:05 [2025-04-05 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840772', 'tblTempUsageDetail_20' ) start [2025-04-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840772', 'tblTempUsageDetail_20' ) end [2025-04-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840772', 'tblTempVendorCDR_20' ) start [2025-04-05 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840772', 'tblTempVendorCDR_20' ) end [2025-04-05 14:24:18] Production.INFO: ProcessCDR(1,14840772,1,1,2) [2025-04-05 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840772', 'tblTempUsageDetail_20' ) start [2025-04-05 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840772', 'tblTempUsageDetail_20' ) end [2025-04-05 14:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:24:22] Production.INFO: ==8981== Releasing lock... [2025-04-05 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:24:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:25:05 [end_date_ymd] => 2025-04-05 14:25:05 [RateCDR] => 1 ) [2025-04-05 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:25:05' and `end` < '2025-04-05 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:25:18] Production.INFO: count ==1580 [2025-04-05 14:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:25:05 - End Time 2025-04-05 14:25:05 [2025-04-05 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840777', 'tblTempUsageDetail_20' ) start [2025-04-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840777', 'tblTempUsageDetail_20' ) end [2025-04-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840777', 'tblTempVendorCDR_20' ) start [2025-04-05 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840777', 'tblTempVendorCDR_20' ) end [2025-04-05 14:25:19] Production.INFO: ProcessCDR(1,14840777,1,1,2) [2025-04-05 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840777', 'tblTempUsageDetail_20' ) start [2025-04-05 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840777', 'tblTempUsageDetail_20' ) end [2025-04-05 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:25:22] Production.INFO: ==9060== Releasing lock... [2025-04-05 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:25:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:26:05 [end_date_ymd] => 2025-04-05 14:26:05 [RateCDR] => 1 ) [2025-04-05 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:26:05' and `end` < '2025-04-05 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:26:18] Production.INFO: count ==1589 [2025-04-05 14:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:26:05 - End Time 2025-04-05 14:26:05 [2025-04-05 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840782', 'tblTempUsageDetail_20' ) start [2025-04-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840782', 'tblTempUsageDetail_20' ) end [2025-04-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840782', 'tblTempVendorCDR_20' ) start [2025-04-05 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840782', 'tblTempVendorCDR_20' ) end [2025-04-05 14:26:18] Production.INFO: ProcessCDR(1,14840782,1,1,2) [2025-04-05 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840782', 'tblTempUsageDetail_20' ) start [2025-04-05 14:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840782', 'tblTempUsageDetail_20' ) end [2025-04-05 14:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:26:24] Production.INFO: ==9147== Releasing lock... [2025-04-05 14:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:26:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:27:05 [end_date_ymd] => 2025-04-05 14:27:05 [RateCDR] => 1 ) [2025-04-05 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:27:05' and `end` < '2025-04-05 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:27:18] Production.INFO: count ==1590 [2025-04-05 14:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:27:05 - End Time 2025-04-05 14:27:05 [2025-04-05 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840787', 'tblTempUsageDetail_20' ) start [2025-04-05 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840787', 'tblTempUsageDetail_20' ) end [2025-04-05 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840787', 'tblTempVendorCDR_20' ) start [2025-04-05 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840787', 'tblTempVendorCDR_20' ) end [2025-04-05 14:27:19] Production.INFO: ProcessCDR(1,14840787,1,1,2) [2025-04-05 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840787', 'tblTempUsageDetail_20' ) start [2025-04-05 14:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840787', 'tblTempUsageDetail_20' ) end [2025-04-05 14:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:27:24] Production.INFO: ==9228== Releasing lock... [2025-04-05 14:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:27:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:28:06 [end_date_ymd] => 2025-04-05 14:28:06 [RateCDR] => 1 ) [2025-04-05 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:28:06' and `end` < '2025-04-05 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:28:19] Production.INFO: count ==1608 [2025-04-05 14:28:20] Production.ERROR: pbx CDR StartTime 2025-04-05 11:28:06 - End Time 2025-04-05 14:28:06 [2025-04-05 14:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840792', 'tblTempUsageDetail_20' ) start [2025-04-05 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840792', 'tblTempUsageDetail_20' ) end [2025-04-05 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840792', 'tblTempVendorCDR_20' ) start [2025-04-05 14:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840792', 'tblTempVendorCDR_20' ) end [2025-04-05 14:28:20] Production.INFO: ProcessCDR(1,14840792,1,1,2) [2025-04-05 14:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840792', 'tblTempUsageDetail_20' ) start [2025-04-05 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840792', 'tblTempUsageDetail_20' ) end [2025-04-05 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:28:24] Production.INFO: ==9308== Releasing lock... [2025-04-05 14:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:28:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:29:05 [end_date_ymd] => 2025-04-05 14:29:05 [RateCDR] => 1 ) [2025-04-05 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:29:05' and `end` < '2025-04-05 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:29:18] Production.INFO: count ==1612 [2025-04-05 14:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:29:05 - End Time 2025-04-05 14:29:05 [2025-04-05 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840797', 'tblTempUsageDetail_20' ) start [2025-04-05 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840797', 'tblTempUsageDetail_20' ) end [2025-04-05 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840797', 'tblTempVendorCDR_20' ) start [2025-04-05 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840797', 'tblTempVendorCDR_20' ) end [2025-04-05 14:29:19] Production.INFO: ProcessCDR(1,14840797,1,1,2) [2025-04-05 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840797', 'tblTempUsageDetail_20' ) start [2025-04-05 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840797', 'tblTempUsageDetail_20' ) end [2025-04-05 14:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:29:22] Production.INFO: ==9383== Releasing lock... [2025-04-05 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-05 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:30:06 [end_date_ymd] => 2025-04-05 14:30:06 [RateCDR] => 1 ) [2025-04-05 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:30:06' and `end` < '2025-04-05 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:30:19] Production.INFO: count ==1603 [2025-04-05 14:30:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:30:06 - End Time 2025-04-05 14:30:06 [2025-04-05 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840803', 'tblTempUsageDetail_20' ) start [2025-04-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840803', 'tblTempUsageDetail_20' ) end [2025-04-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840803', 'tblTempVendorCDR_20' ) start [2025-04-05 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840803', 'tblTempVendorCDR_20' ) end [2025-04-05 14:30:19] Production.INFO: ProcessCDR(1,14840803,1,1,2) [2025-04-05 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840803', 'tblTempUsageDetail_20' ) start [2025-04-05 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840803', 'tblTempUsageDetail_20' ) end [2025-04-05 14:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:30:23] Production.INFO: ==9462== Releasing lock... [2025-04-05 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:30:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:31:05 [end_date_ymd] => 2025-04-05 14:31:05 [RateCDR] => 1 ) [2025-04-05 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:31:05' and `end` < '2025-04-05 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:31:18] Production.INFO: count ==1601 [2025-04-05 14:31:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:31:05 - End Time 2025-04-05 14:31:05 [2025-04-05 14:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840808', 'tblTempUsageDetail_20' ) start [2025-04-05 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840808', 'tblTempUsageDetail_20' ) end [2025-04-05 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840808', 'tblTempVendorCDR_20' ) start [2025-04-05 14:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840808', 'tblTempVendorCDR_20' ) end [2025-04-05 14:31:19] Production.INFO: ProcessCDR(1,14840808,1,1,2) [2025-04-05 14:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840808', 'tblTempUsageDetail_20' ) start [2025-04-05 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840808', 'tblTempUsageDetail_20' ) end [2025-04-05 14:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:31:24] Production.INFO: ==9544== Releasing lock... [2025-04-05 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:31:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:32:06 [end_date_ymd] => 2025-04-05 14:32:06 [RateCDR] => 1 ) [2025-04-05 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:32:06' and `end` < '2025-04-05 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:32:19] Production.INFO: count ==1594 [2025-04-05 14:32:20] Production.ERROR: pbx CDR StartTime 2025-04-05 11:32:06 - End Time 2025-04-05 14:32:06 [2025-04-05 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840813', 'tblTempUsageDetail_20' ) start [2025-04-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840813', 'tblTempUsageDetail_20' ) end [2025-04-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840813', 'tblTempVendorCDR_20' ) start [2025-04-05 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840813', 'tblTempVendorCDR_20' ) end [2025-04-05 14:32:20] Production.INFO: ProcessCDR(1,14840813,1,1,2) [2025-04-05 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840813', 'tblTempUsageDetail_20' ) start [2025-04-05 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840813', 'tblTempUsageDetail_20' ) end [2025-04-05 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:32:23] Production.INFO: ==9620== Releasing lock... [2025-04-05 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:32:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:33:05 [end_date_ymd] => 2025-04-05 14:33:05 [RateCDR] => 1 ) [2025-04-05 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:33:05' and `end` < '2025-04-05 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:33:18] Production.INFO: count ==1589 [2025-04-05 14:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:33:05 - End Time 2025-04-05 14:33:05 [2025-04-05 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840818', 'tblTempUsageDetail_20' ) start [2025-04-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840818', 'tblTempUsageDetail_20' ) end [2025-04-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840818', 'tblTempVendorCDR_20' ) start [2025-04-05 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840818', 'tblTempVendorCDR_20' ) end [2025-04-05 14:33:19] Production.INFO: ProcessCDR(1,14840818,1,1,2) [2025-04-05 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840818', 'tblTempUsageDetail_20' ) start [2025-04-05 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840818', 'tblTempUsageDetail_20' ) end [2025-04-05 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:33:23] Production.INFO: ==9699== Releasing lock... [2025-04-05 14:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:33:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:34:05 [end_date_ymd] => 2025-04-05 14:34:05 [RateCDR] => 1 ) [2025-04-05 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:34:05' and `end` < '2025-04-05 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:34:18] Production.INFO: count ==1596 [2025-04-05 14:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:34:05 - End Time 2025-04-05 14:34:05 [2025-04-05 14:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840823', 'tblTempUsageDetail_20' ) start [2025-04-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840823', 'tblTempUsageDetail_20' ) end [2025-04-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840823', 'tblTempVendorCDR_20' ) start [2025-04-05 14:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840823', 'tblTempVendorCDR_20' ) end [2025-04-05 14:34:19] Production.INFO: ProcessCDR(1,14840823,1,1,2) [2025-04-05 14:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840823', 'tblTempUsageDetail_20' ) start [2025-04-05 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840823', 'tblTempUsageDetail_20' ) end [2025-04-05 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:34:23] Production.INFO: ==9777== Releasing lock... [2025-04-05 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:34:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:35:05 [end_date_ymd] => 2025-04-05 14:35:05 [RateCDR] => 1 ) [2025-04-05 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:35:05' and `end` < '2025-04-05 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:35:18] Production.INFO: count ==1590 [2025-04-05 14:35:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:35:05 - End Time 2025-04-05 14:35:05 [2025-04-05 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840828', 'tblTempUsageDetail_20' ) start [2025-04-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840828', 'tblTempUsageDetail_20' ) end [2025-04-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840828', 'tblTempVendorCDR_20' ) start [2025-04-05 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840828', 'tblTempVendorCDR_20' ) end [2025-04-05 14:35:18] Production.INFO: ProcessCDR(1,14840828,1,1,2) [2025-04-05 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840828', 'tblTempUsageDetail_20' ) start [2025-04-05 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840828', 'tblTempUsageDetail_20' ) end [2025-04-05 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:35:22] Production.INFO: ==9851== Releasing lock... [2025-04-05 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:35:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:36:05 [end_date_ymd] => 2025-04-05 14:36:05 [RateCDR] => 1 ) [2025-04-05 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:36:05' and `end` < '2025-04-05 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:36:18] Production.INFO: count ==1594 [2025-04-05 14:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:36:05 - End Time 2025-04-05 14:36:05 [2025-04-05 14:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840833', 'tblTempUsageDetail_20' ) start [2025-04-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840833', 'tblTempUsageDetail_20' ) end [2025-04-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840833', 'tblTempVendorCDR_20' ) start [2025-04-05 14:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840833', 'tblTempVendorCDR_20' ) end [2025-04-05 14:36:19] Production.INFO: ProcessCDR(1,14840833,1,1,2) [2025-04-05 14:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840833', 'tblTempUsageDetail_20' ) start [2025-04-05 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840833', 'tblTempUsageDetail_20' ) end [2025-04-05 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:36:24] Production.INFO: ==9950== Releasing lock... [2025-04-05 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:36:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:37:05 [end_date_ymd] => 2025-04-05 14:37:05 [RateCDR] => 1 ) [2025-04-05 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:37:05' and `end` < '2025-04-05 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:37:18] Production.INFO: count ==1597 [2025-04-05 14:37:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:37:05 - End Time 2025-04-05 14:37:05 [2025-04-05 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840838', 'tblTempUsageDetail_20' ) start [2025-04-05 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840838', 'tblTempUsageDetail_20' ) end [2025-04-05 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840838', 'tblTempVendorCDR_20' ) start [2025-04-05 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840838', 'tblTempVendorCDR_20' ) end [2025-04-05 14:37:19] Production.INFO: ProcessCDR(1,14840838,1,1,2) [2025-04-05 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840838', 'tblTempUsageDetail_20' ) start [2025-04-05 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840838', 'tblTempUsageDetail_20' ) end [2025-04-05 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:37:22] Production.INFO: ==10030== Releasing lock... [2025-04-05 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:37:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:38:05 [end_date_ymd] => 2025-04-05 14:38:05 [RateCDR] => 1 ) [2025-04-05 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:38:05' and `end` < '2025-04-05 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:38:18] Production.INFO: count ==1597 [2025-04-05 14:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:38:05 - End Time 2025-04-05 14:38:05 [2025-04-05 14:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840843', 'tblTempUsageDetail_20' ) start [2025-04-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840843', 'tblTempUsageDetail_20' ) end [2025-04-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840843', 'tblTempVendorCDR_20' ) start [2025-04-05 14:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840843', 'tblTempVendorCDR_20' ) end [2025-04-05 14:38:19] Production.INFO: ProcessCDR(1,14840843,1,1,2) [2025-04-05 14:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840843', 'tblTempUsageDetail_20' ) start [2025-04-05 14:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840843', 'tblTempUsageDetail_20' ) end [2025-04-05 14:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:38:22] Production.INFO: ==10111== Releasing lock... [2025-04-05 14:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:38:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:39:05 [end_date_ymd] => 2025-04-05 14:39:05 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:39:05' and `end` < '2025-04-05 14: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-04-05 14:39:18] Production.INFO: count ==1594 [2025-04-05 14:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:39:05 - End Time 2025-04-05 14:39:05 [2025-04-05 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840848', 'tblTempUsageDetail_20' ) start [2025-04-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840848', 'tblTempUsageDetail_20' ) end [2025-04-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840848', 'tblTempVendorCDR_20' ) start [2025-04-05 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840848', 'tblTempVendorCDR_20' ) end [2025-04-05 14:39:18] Production.INFO: ProcessCDR(1,14840848,1,1,2) [2025-04-05 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840848', 'tblTempUsageDetail_20' ) start [2025-04-05 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840848', 'tblTempUsageDetail_20' ) end [2025-04-05 14:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:39:24] Production.INFO: ==10236== Releasing lock... [2025-04-05 14:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:39:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:40:07 [end_date_ymd] => 2025-04-05 14:40:07 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:40:07' and `end` < '2025-04-05 14: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-04-05 14:40:20] Production.INFO: count ==1587 [2025-04-05 14:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 11:40:07 - End Time 2025-04-05 14:40:07 [2025-04-05 14:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840854', 'tblTempUsageDetail_20' ) start [2025-04-05 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840854', 'tblTempUsageDetail_20' ) end [2025-04-05 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840854', 'tblTempVendorCDR_20' ) start [2025-04-05 14:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840854', 'tblTempVendorCDR_20' ) end [2025-04-05 14:40:20] Production.INFO: ProcessCDR(1,14840854,1,1,2) [2025-04-05 14:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840854', 'tblTempUsageDetail_20' ) start [2025-04-05 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840854', 'tblTempUsageDetail_20' ) end [2025-04-05 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:40:26] Production.INFO: ==10375== Releasing lock... [2025-04-05 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:40:26] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:41:04 [end_date_ymd] => 2025-04-05 14:41:04 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:41:04' and `end` < '2025-04-05 14: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-04-05 14:41:18] Production.INFO: count ==1565 [2025-04-05 14:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:41:04 - End Time 2025-04-05 14:41:04 [2025-04-05 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840859', 'tblTempUsageDetail_20' ) start [2025-04-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840859', 'tblTempUsageDetail_20' ) end [2025-04-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840859', 'tblTempVendorCDR_20' ) start [2025-04-05 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840859', 'tblTempVendorCDR_20' ) end [2025-04-05 14:41:18] Production.INFO: ProcessCDR(1,14840859,1,1,2) [2025-04-05 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840859', 'tblTempUsageDetail_20' ) start [2025-04-05 14:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840859', 'tblTempUsageDetail_20' ) end [2025-04-05 14:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:41:23] Production.INFO: ==10500== Releasing lock... [2025-04-05 14:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:41:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:42:06 [end_date_ymd] => 2025-04-05 14:42:06 [RateCDR] => 1 ) [2025-04-05 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:42:06' and `end` < '2025-04-05 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:42:19] Production.INFO: count ==1572 [2025-04-05 14:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:42:06 - End Time 2025-04-05 14:42:06 [2025-04-05 14:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840864', 'tblTempUsageDetail_20' ) start [2025-04-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840864', 'tblTempUsageDetail_20' ) end [2025-04-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840864', 'tblTempVendorCDR_20' ) start [2025-04-05 14:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840864', 'tblTempVendorCDR_20' ) end [2025-04-05 14:42:19] Production.INFO: ProcessCDR(1,14840864,1,1,2) [2025-04-05 14:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840864', 'tblTempUsageDetail_20' ) start [2025-04-05 14:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840864', 'tblTempUsageDetail_20' ) end [2025-04-05 14:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:42:25] Production.INFO: ==10578== Releasing lock... [2025-04-05 14:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:42:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:43:05 [end_date_ymd] => 2025-04-05 14:43:05 [RateCDR] => 1 ) [2025-04-05 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:43:05' and `end` < '2025-04-05 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:43:18] Production.INFO: count ==1570 [2025-04-05 14:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:43:05 - End Time 2025-04-05 14:43:05 [2025-04-05 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840869', 'tblTempUsageDetail_20' ) start [2025-04-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840869', 'tblTempUsageDetail_20' ) end [2025-04-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840869', 'tblTempVendorCDR_20' ) start [2025-04-05 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840869', 'tblTempVendorCDR_20' ) end [2025-04-05 14:43:18] Production.INFO: ProcessCDR(1,14840869,1,1,2) [2025-04-05 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840869', 'tblTempUsageDetail_20' ) start [2025-04-05 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840869', 'tblTempUsageDetail_20' ) end [2025-04-05 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:43:22] Production.INFO: ==10666== Releasing lock... [2025-04-05 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:43:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:44:05 [end_date_ymd] => 2025-04-05 14:44:05 [RateCDR] => 1 ) [2025-04-05 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:44:05' and `end` < '2025-04-05 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:44:18] Production.INFO: count ==1569 [2025-04-05 14:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:44:05 - End Time 2025-04-05 14:44:05 [2025-04-05 14:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840874', 'tblTempUsageDetail_20' ) start [2025-04-05 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840874', 'tblTempUsageDetail_20' ) end [2025-04-05 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840874', 'tblTempVendorCDR_20' ) start [2025-04-05 14:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840874', 'tblTempVendorCDR_20' ) end [2025-04-05 14:44:19] Production.INFO: ProcessCDR(1,14840874,1,1,2) [2025-04-05 14:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840874', 'tblTempUsageDetail_20' ) start [2025-04-05 14:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840874', 'tblTempUsageDetail_20' ) end [2025-04-05 14:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:44:23] Production.INFO: ==10754== Releasing lock... [2025-04-05 14:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:44:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:45:05 [end_date_ymd] => 2025-04-05 14:45:05 [RateCDR] => 1 ) [2025-04-05 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:45:05' and `end` < '2025-04-05 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:45:18] Production.INFO: count ==1567 [2025-04-05 14:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:45:05 - End Time 2025-04-05 14:45:05 [2025-04-05 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840879', 'tblTempUsageDetail_20' ) start [2025-04-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840879', 'tblTempUsageDetail_20' ) end [2025-04-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840879', 'tblTempVendorCDR_20' ) start [2025-04-05 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840879', 'tblTempVendorCDR_20' ) end [2025-04-05 14:45:18] Production.INFO: ProcessCDR(1,14840879,1,1,2) [2025-04-05 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840879', 'tblTempUsageDetail_20' ) start [2025-04-05 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840879', 'tblTempUsageDetail_20' ) end [2025-04-05 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:45:22] Production.INFO: ==10833== Releasing lock... [2025-04-05 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:46:05 [end_date_ymd] => 2025-04-05 14:46:05 [RateCDR] => 1 ) [2025-04-05 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:46:05' and `end` < '2025-04-05 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:46:18] Production.INFO: count ==1577 [2025-04-05 14:46:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:46:05 - End Time 2025-04-05 14:46:05 [2025-04-05 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840884', 'tblTempUsageDetail_20' ) start [2025-04-05 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840884', 'tblTempUsageDetail_20' ) end [2025-04-05 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840884', 'tblTempVendorCDR_20' ) start [2025-04-05 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840884', 'tblTempVendorCDR_20' ) end [2025-04-05 14:46:18] Production.INFO: ProcessCDR(1,14840884,1,1,2) [2025-04-05 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840884', 'tblTempUsageDetail_20' ) start [2025-04-05 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840884', 'tblTempUsageDetail_20' ) end [2025-04-05 14:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:46:22] Production.INFO: ==10912== Releasing lock... [2025-04-05 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:47:06 [end_date_ymd] => 2025-04-05 14:47:06 [RateCDR] => 1 ) [2025-04-05 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:47:06' and `end` < '2025-04-05 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:47:19] Production.INFO: count ==1575 [2025-04-05 14:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:47:06 - End Time 2025-04-05 14:47:06 [2025-04-05 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840889', 'tblTempUsageDetail_20' ) start [2025-04-05 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840889', 'tblTempUsageDetail_20' ) end [2025-04-05 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840889', 'tblTempVendorCDR_20' ) start [2025-04-05 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840889', 'tblTempVendorCDR_20' ) end [2025-04-05 14:47:19] Production.INFO: ProcessCDR(1,14840889,1,1,2) [2025-04-05 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840889', 'tblTempUsageDetail_20' ) start [2025-04-05 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840889', 'tblTempUsageDetail_20' ) end [2025-04-05 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:47:24] Production.INFO: ==10998== Releasing lock... [2025-04-05 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:47:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:48:05 [end_date_ymd] => 2025-04-05 14:48:05 [RateCDR] => 1 ) [2025-04-05 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:48:05' and `end` < '2025-04-05 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:48:18] Production.INFO: count ==1557 [2025-04-05 14:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:48:05 - End Time 2025-04-05 14:48:05 [2025-04-05 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840894', 'tblTempUsageDetail_20' ) start [2025-04-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840894', 'tblTempUsageDetail_20' ) end [2025-04-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840894', 'tblTempVendorCDR_20' ) start [2025-04-05 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840894', 'tblTempVendorCDR_20' ) end [2025-04-05 14:48:19] Production.INFO: ProcessCDR(1,14840894,1,1,2) [2025-04-05 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840894', 'tblTempUsageDetail_20' ) start [2025-04-05 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840894', 'tblTempUsageDetail_20' ) end [2025-04-05 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:48:22] Production.INFO: ==11077== Releasing lock... [2025-04-05 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:48:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:49:05 [end_date_ymd] => 2025-04-05 14:49:05 [RateCDR] => 1 ) [2025-04-05 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:49:05' and `end` < '2025-04-05 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:49:18] Production.INFO: count ==1562 [2025-04-05 14:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:49:05 - End Time 2025-04-05 14:49:05 [2025-04-05 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840899', 'tblTempUsageDetail_20' ) start [2025-04-05 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840899', 'tblTempUsageDetail_20' ) end [2025-04-05 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840899', 'tblTempVendorCDR_20' ) start [2025-04-05 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840899', 'tblTempVendorCDR_20' ) end [2025-04-05 14:49:18] Production.INFO: ProcessCDR(1,14840899,1,1,2) [2025-04-05 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840899', 'tblTempUsageDetail_20' ) start [2025-04-05 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840899', 'tblTempUsageDetail_20' ) end [2025-04-05 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:49:22] Production.INFO: ==11156== Releasing lock... [2025-04-05 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:49:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:50:06 [end_date_ymd] => 2025-04-05 14:50:06 [RateCDR] => 1 ) [2025-04-05 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:50:06' and `end` < '2025-04-05 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:50:19] Production.INFO: count ==1547 [2025-04-05 14:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:50:06 - End Time 2025-04-05 14:50:06 [2025-04-05 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840904', 'tblTempUsageDetail_20' ) start [2025-04-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840904', 'tblTempUsageDetail_20' ) end [2025-04-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840904', 'tblTempVendorCDR_20' ) start [2025-04-05 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840904', 'tblTempVendorCDR_20' ) end [2025-04-05 14:50:19] Production.INFO: ProcessCDR(1,14840904,1,1,2) [2025-04-05 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840904', 'tblTempUsageDetail_20' ) start [2025-04-05 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840904', 'tblTempUsageDetail_20' ) end [2025-04-05 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:50:22] Production.INFO: ==11236== Releasing lock... [2025-04-05 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:50:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:51:06 [end_date_ymd] => 2025-04-05 14:51:06 [RateCDR] => 1 ) [2025-04-05 14: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-04-05 11:51:06' and `end` < '2025-04-05 14: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-04-05 14:51:19] Production.INFO: count ==1508 [2025-04-05 14:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:51:06 - End Time 2025-04-05 14:51:06 [2025-04-05 14:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840910', 'tblTempUsageDetail_20' ) start [2025-04-05 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840910', 'tblTempUsageDetail_20' ) end [2025-04-05 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840910', 'tblTempVendorCDR_20' ) start [2025-04-05 14:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840910', 'tblTempVendorCDR_20' ) end [2025-04-05 14:51:19] Production.INFO: ProcessCDR(1,14840910,1,1,2) [2025-04-05 14:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840910', 'tblTempUsageDetail_20' ) start [2025-04-05 14:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840910', 'tblTempUsageDetail_20' ) end [2025-04-05 14:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:51:23] Production.INFO: ==11316== Releasing lock... [2025-04-05 14:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:51:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:52:05 [end_date_ymd] => 2025-04-05 14:52:05 [RateCDR] => 1 ) [2025-04-05 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:52:05' and `end` < '2025-04-05 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:52:18] Production.INFO: count ==1515 [2025-04-05 14:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:52:05 - End Time 2025-04-05 14:52:05 [2025-04-05 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840915', 'tblTempUsageDetail_20' ) start [2025-04-05 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840915', 'tblTempUsageDetail_20' ) end [2025-04-05 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840915', 'tblTempVendorCDR_20' ) start [2025-04-05 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840915', 'tblTempVendorCDR_20' ) end [2025-04-05 14:52:19] Production.INFO: ProcessCDR(1,14840915,1,1,2) [2025-04-05 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840915', 'tblTempUsageDetail_20' ) start [2025-04-05 14:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840915', 'tblTempUsageDetail_20' ) end [2025-04-05 14:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:52:23] Production.INFO: ==11400== Releasing lock... [2025-04-05 14:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:52:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:53:06 [end_date_ymd] => 2025-04-05 14:53:06 [RateCDR] => 1 ) [2025-04-05 14:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:53:06' and `end` < '2025-04-05 14:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:53:18] Production.INFO: count ==1507 [2025-04-05 14:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:53:06 - End Time 2025-04-05 14:53:06 [2025-04-05 14:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840920', 'tblTempUsageDetail_20' ) start [2025-04-05 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840920', 'tblTempUsageDetail_20' ) end [2025-04-05 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840920', 'tblTempVendorCDR_20' ) start [2025-04-05 14:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840920', 'tblTempVendorCDR_20' ) end [2025-04-05 14:53:19] Production.INFO: ProcessCDR(1,14840920,1,1,2) [2025-04-05 14:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840920', 'tblTempUsageDetail_20' ) start [2025-04-05 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840920', 'tblTempUsageDetail_20' ) end [2025-04-05 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:53:22] Production.INFO: ==11487== Releasing lock... [2025-04-05 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:54:05 [end_date_ymd] => 2025-04-05 14:54:05 [RateCDR] => 1 ) [2025-04-05 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:54:05' and `end` < '2025-04-05 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:54:18] Production.INFO: count ==1501 [2025-04-05 14:54:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:54:05 - End Time 2025-04-05 14:54:05 [2025-04-05 14:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840925', 'tblTempUsageDetail_20' ) start [2025-04-05 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840925', 'tblTempUsageDetail_20' ) end [2025-04-05 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840925', 'tblTempVendorCDR_20' ) start [2025-04-05 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840925', 'tblTempVendorCDR_20' ) end [2025-04-05 14:54:19] Production.INFO: ProcessCDR(1,14840925,1,1,2) [2025-04-05 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840925', 'tblTempUsageDetail_20' ) start [2025-04-05 14:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840925', 'tblTempUsageDetail_20' ) end [2025-04-05 14:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:54:22] Production.INFO: ==11563== Releasing lock... [2025-04-05 14:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:54:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:55:06 [end_date_ymd] => 2025-04-05 14:55:06 [RateCDR] => 1 ) [2025-04-05 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:55:06' and `end` < '2025-04-05 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:55:18] Production.INFO: count ==1488 [2025-04-05 14:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:55:06 - End Time 2025-04-05 14:55:06 [2025-04-05 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840930', 'tblTempUsageDetail_20' ) start [2025-04-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840930', 'tblTempUsageDetail_20' ) end [2025-04-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840930', 'tblTempVendorCDR_20' ) start [2025-04-05 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840930', 'tblTempVendorCDR_20' ) end [2025-04-05 14:55:19] Production.INFO: ProcessCDR(1,14840930,1,1,2) [2025-04-05 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840930', 'tblTempUsageDetail_20' ) start [2025-04-05 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840930', 'tblTempUsageDetail_20' ) end [2025-04-05 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:55:22] Production.INFO: ==11686== Releasing lock... [2025-04-05 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:55:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:56:05 [end_date_ymd] => 2025-04-05 14:56:05 [RateCDR] => 1 ) [2025-04-05 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:56:05' and `end` < '2025-04-05 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:56:18] Production.INFO: count ==1492 [2025-04-05 14:56:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:56:05 - End Time 2025-04-05 14:56:05 [2025-04-05 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840935', 'tblTempUsageDetail_20' ) start [2025-04-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840935', 'tblTempUsageDetail_20' ) end [2025-04-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840935', 'tblTempVendorCDR_20' ) start [2025-04-05 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840935', 'tblTempVendorCDR_20' ) end [2025-04-05 14:56:18] Production.INFO: ProcessCDR(1,14840935,1,1,2) [2025-04-05 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840935', 'tblTempUsageDetail_20' ) start [2025-04-05 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840935', 'tblTempUsageDetail_20' ) end [2025-04-05 14:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:56:22] Production.INFO: ==11764== Releasing lock... [2025-04-05 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:57:05 [end_date_ymd] => 2025-04-05 14:57:05 [RateCDR] => 1 ) [2025-04-05 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:57:05' and `end` < '2025-04-05 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:57:18] Production.INFO: count ==1489 [2025-04-05 14:57:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:57:05 - End Time 2025-04-05 14:57:05 [2025-04-05 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840940', 'tblTempUsageDetail_20' ) start [2025-04-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840940', 'tblTempUsageDetail_20' ) end [2025-04-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840940', 'tblTempVendorCDR_20' ) start [2025-04-05 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840940', 'tblTempVendorCDR_20' ) end [2025-04-05 14:57:19] Production.INFO: ProcessCDR(1,14840940,1,1,2) [2025-04-05 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840940', 'tblTempUsageDetail_20' ) start [2025-04-05 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840940', 'tblTempUsageDetail_20' ) end [2025-04-05 14:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:57:22] Production.INFO: ==11847== Releasing lock... [2025-04-05 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:57:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:58:05 [end_date_ymd] => 2025-04-05 14:58:05 [RateCDR] => 1 ) [2025-04-05 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:58:05' and `end` < '2025-04-05 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:58:18] Production.INFO: count ==1494 [2025-04-05 14:58:18] Production.ERROR: pbx CDR StartTime 2025-04-05 11:58:05 - End Time 2025-04-05 14:58:05 [2025-04-05 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840945', 'tblTempUsageDetail_20' ) start [2025-04-05 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840945', 'tblTempUsageDetail_20' ) end [2025-04-05 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840945', 'tblTempVendorCDR_20' ) start [2025-04-05 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840945', 'tblTempVendorCDR_20' ) end [2025-04-05 14:58:18] Production.INFO: ProcessCDR(1,14840945,1,1,2) [2025-04-05 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840945', 'tblTempUsageDetail_20' ) start [2025-04-05 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840945', 'tblTempUsageDetail_20' ) end [2025-04-05 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:58:23] Production.INFO: ==11927== Releasing lock... [2025-04-05 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:58:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 11:59:05 [end_date_ymd] => 2025-04-05 14:59:05 [RateCDR] => 1 ) [2025-04-05 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 11:59:05' and `end` < '2025-04-05 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 14:59:18] Production.INFO: count ==1476 [2025-04-05 14:59:19] Production.ERROR: pbx CDR StartTime 2025-04-05 11:59:05 - End Time 2025-04-05 14:59:05 [2025-04-05 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840950', 'tblTempUsageDetail_20' ) start [2025-04-05 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840950', 'tblTempUsageDetail_20' ) end [2025-04-05 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840950', 'tblTempVendorCDR_20' ) start [2025-04-05 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840950', 'tblTempVendorCDR_20' ) end [2025-04-05 14:59:19] Production.INFO: ProcessCDR(1,14840950,1,1,2) [2025-04-05 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840950', 'tblTempUsageDetail_20' ) start [2025-04-05 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840950', 'tblTempUsageDetail_20' ) end [2025-04-05 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 14:59:24] Production.INFO: ==12006== Releasing lock... [2025-04-05 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 14:59:24] Production.INFO: 39 MB #Memory Used# [2025-04-05 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:00:05 [end_date_ymd] => 2025-04-05 15:00:05 [RateCDR] => 1 ) [2025-04-05 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:00:05' and `end` < '2025-04-05 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:00:18] Production.INFO: count ==1486 [2025-04-05 15:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:00:05 - End Time 2025-04-05 15:00:05 [2025-04-05 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840955', 'tblTempUsageDetail_20' ) start [2025-04-05 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840955', 'tblTempUsageDetail_20' ) end [2025-04-05 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840955', 'tblTempVendorCDR_20' ) start [2025-04-05 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840955', 'tblTempVendorCDR_20' ) end [2025-04-05 15:00:19] Production.INFO: ProcessCDR(1,14840955,1,1,2) [2025-04-05 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840955', 'tblTempUsageDetail_20' ) start [2025-04-05 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840955', 'tblTempUsageDetail_20' ) end [2025-04-05 15:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:00:22] Production.INFO: ==12081== Releasing lock... [2025-04-05 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:00:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:01:05 [end_date_ymd] => 2025-04-05 15:01:05 [RateCDR] => 1 ) [2025-04-05 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:01:05' and `end` < '2025-04-05 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:01:18] Production.INFO: count ==1494 [2025-04-05 15:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:01:05 - End Time 2025-04-05 15:01:05 [2025-04-05 15:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840961', 'tblTempUsageDetail_20' ) start [2025-04-05 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840961', 'tblTempUsageDetail_20' ) end [2025-04-05 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840961', 'tblTempVendorCDR_20' ) start [2025-04-05 15:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840961', 'tblTempVendorCDR_20' ) end [2025-04-05 15:01:19] Production.INFO: ProcessCDR(1,14840961,1,1,2) [2025-04-05 15:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840961', 'tblTempUsageDetail_20' ) start [2025-04-05 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840961', 'tblTempUsageDetail_20' ) end [2025-04-05 15:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:01:22] Production.INFO: ==12259== Releasing lock... [2025-04-05 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:01:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:02:05 [end_date_ymd] => 2025-04-05 15:02:05 [RateCDR] => 1 ) [2025-04-05 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:02:05' and `end` < '2025-04-05 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:02:18] Production.INFO: count ==1505 [2025-04-05 15:02:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:02:05 - End Time 2025-04-05 15:02:05 [2025-04-05 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840966', 'tblTempUsageDetail_20' ) start [2025-04-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840966', 'tblTempUsageDetail_20' ) end [2025-04-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840966', 'tblTempVendorCDR_20' ) start [2025-04-05 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840966', 'tblTempVendorCDR_20' ) end [2025-04-05 15:02:18] Production.INFO: ProcessCDR(1,14840966,1,1,2) [2025-04-05 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840966', 'tblTempUsageDetail_20' ) start [2025-04-05 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840966', 'tblTempUsageDetail_20' ) end [2025-04-05 15:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:02:22] Production.INFO: ==12342== Releasing lock... [2025-04-05 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:02:22] Production.INFO: 39 MB #Memory Used# [2025-04-05 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:03:05 [end_date_ymd] => 2025-04-05 15:03:05 [RateCDR] => 1 ) [2025-04-05 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:03:05' and `end` < '2025-04-05 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:03:18] Production.INFO: count ==1503 [2025-04-05 15:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:03:05 - End Time 2025-04-05 15:03:05 [2025-04-05 15:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840971', 'tblTempUsageDetail_20' ) start [2025-04-05 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840971', 'tblTempUsageDetail_20' ) end [2025-04-05 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840971', 'tblTempVendorCDR_20' ) start [2025-04-05 15:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840971', 'tblTempVendorCDR_20' ) end [2025-04-05 15:03:18] Production.INFO: ProcessCDR(1,14840971,1,1,2) [2025-04-05 15:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840971', 'tblTempUsageDetail_20' ) start [2025-04-05 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840971', 'tblTempUsageDetail_20' ) end [2025-04-05 15:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:03:22] Production.INFO: ==12422== Releasing lock... [2025-04-05 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:04:05 [end_date_ymd] => 2025-04-05 15:04:05 [RateCDR] => 1 ) [2025-04-05 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:04:05' and `end` < '2025-04-05 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:04:18] Production.INFO: count ==1517 [2025-04-05 15:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:04:05 - End Time 2025-04-05 15:04:05 [2025-04-05 15:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840976', 'tblTempUsageDetail_20' ) start [2025-04-05 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840976', 'tblTempUsageDetail_20' ) end [2025-04-05 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840976', 'tblTempVendorCDR_20' ) start [2025-04-05 15:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840976', 'tblTempVendorCDR_20' ) end [2025-04-05 15:04:19] Production.INFO: ProcessCDR(1,14840976,1,1,2) [2025-04-05 15:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840976', 'tblTempUsageDetail_20' ) start [2025-04-05 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840976', 'tblTempUsageDetail_20' ) end [2025-04-05 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:04:24] Production.INFO: ==12505== Releasing lock... [2025-04-05 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:04:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:05:05 [end_date_ymd] => 2025-04-05 15:05:05 [RateCDR] => 1 ) [2025-04-05 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:05:05' and `end` < '2025-04-05 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:05:18] Production.INFO: count ==1517 [2025-04-05 15:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:05:05 - End Time 2025-04-05 15:05:05 [2025-04-05 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840981', 'tblTempUsageDetail_20' ) start [2025-04-05 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840981', 'tblTempUsageDetail_20' ) end [2025-04-05 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840981', 'tblTempVendorCDR_20' ) start [2025-04-05 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840981', 'tblTempVendorCDR_20' ) end [2025-04-05 15:05:18] Production.INFO: ProcessCDR(1,14840981,1,1,2) [2025-04-05 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840981', 'tblTempUsageDetail_20' ) start [2025-04-05 15:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840981', 'tblTempUsageDetail_20' ) end [2025-04-05 15:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:05:23] Production.INFO: ==12661== Releasing lock... [2025-04-05 15:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:05:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:06:06 [end_date_ymd] => 2025-04-05 15:06:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:06:06' and `end` < '2025-04-05 15: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-04-05 15:06:19] Production.INFO: count ==1522 [2025-04-05 15:06:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:06:06 - End Time 2025-04-05 15:06:06 [2025-04-05 15:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840986', 'tblTempUsageDetail_20' ) start [2025-04-05 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840986', 'tblTempUsageDetail_20' ) end [2025-04-05 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840986', 'tblTempVendorCDR_20' ) start [2025-04-05 15:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840986', 'tblTempVendorCDR_20' ) end [2025-04-05 15:06:19] Production.INFO: ProcessCDR(1,14840986,1,1,2) [2025-04-05 15:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840986', 'tblTempUsageDetail_20' ) start [2025-04-05 15:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840986', 'tblTempUsageDetail_20' ) end [2025-04-05 15:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:06:24] Production.INFO: ==12744== Releasing lock... [2025-04-05 15:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:06:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-05 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:07:05 [end_date_ymd] => 2025-04-05 15:07:05 [RateCDR] => 1 ) [2025-04-05 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:07:05' and `end` < '2025-04-05 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:07:18] Production.INFO: count ==1526 [2025-04-05 15:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:07:05 - End Time 2025-04-05 15:07:05 [2025-04-05 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840991', 'tblTempUsageDetail_20' ) start [2025-04-05 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840991', 'tblTempUsageDetail_20' ) end [2025-04-05 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840991', 'tblTempVendorCDR_20' ) start [2025-04-05 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840991', 'tblTempVendorCDR_20' ) end [2025-04-05 15:07:19] Production.INFO: ProcessCDR(1,14840991,1,1,2) [2025-04-05 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840991', 'tblTempUsageDetail_20' ) start [2025-04-05 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840991', 'tblTempUsageDetail_20' ) end [2025-04-05 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:07:24] Production.INFO: ==12828== Releasing lock... [2025-04-05 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:08:06 [end_date_ymd] => 2025-04-05 15:08:06 [RateCDR] => 1 ) [2025-04-05 15:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:08:06' and `end` < '2025-04-05 15:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:08:19] Production.INFO: count ==1512 [2025-04-05 15:08:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:08:06 - End Time 2025-04-05 15:08:06 [2025-04-05 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840996', 'tblTempUsageDetail_20' ) start [2025-04-05 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14840996', 'tblTempUsageDetail_20' ) end [2025-04-05 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840996', 'tblTempVendorCDR_20' ) start [2025-04-05 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14840996', 'tblTempVendorCDR_20' ) end [2025-04-05 15:08:19] Production.INFO: ProcessCDR(1,14840996,1,1,2) [2025-04-05 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14840996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14840996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14840996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14840996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840996', 'tblTempUsageDetail_20' ) start [2025-04-05 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14840996', 'tblTempUsageDetail_20' ) end [2025-04-05 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:08:22] Production.INFO: ==12991== Releasing lock... [2025-04-05 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:08:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:09:04 [end_date_ymd] => 2025-04-05 15:09:04 [RateCDR] => 1 ) [2025-04-05 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:09:04' and `end` < '2025-04-05 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:09:17] Production.INFO: count ==1504 [2025-04-05 15:09:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:09:04 - End Time 2025-04-05 15:09:04 [2025-04-05 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841001', 'tblTempUsageDetail_20' ) start [2025-04-05 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841001', 'tblTempUsageDetail_20' ) end [2025-04-05 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841001', 'tblTempVendorCDR_20' ) start [2025-04-05 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841001', 'tblTempVendorCDR_20' ) end [2025-04-05 15:09:18] Production.INFO: ProcessCDR(1,14841001,1,1,2) [2025-04-05 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841001', 'tblTempUsageDetail_20' ) start [2025-04-05 15:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841001', 'tblTempUsageDetail_20' ) end [2025-04-05 15:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:09:21] Production.INFO: ==13074== Releasing lock... [2025-04-05 15:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:09:21] Production.INFO: 39 MB #Memory Used# [2025-04-05 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:10:07 [end_date_ymd] => 2025-04-05 15:10:07 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:10:07' and `end` < '2025-04-05 15: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-04-05 15:10:20] Production.INFO: count ==1506 [2025-04-05 15:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 12:10:07 - End Time 2025-04-05 15:10:07 [2025-04-05 15:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841006', 'tblTempUsageDetail_20' ) start [2025-04-05 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841006', 'tblTempUsageDetail_20' ) end [2025-04-05 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841006', 'tblTempVendorCDR_20' ) start [2025-04-05 15:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841006', 'tblTempVendorCDR_20' ) end [2025-04-05 15:10:20] Production.INFO: ProcessCDR(1,14841006,1,1,2) [2025-04-05 15:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841006', 'tblTempUsageDetail_20' ) start [2025-04-05 15:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841006', 'tblTempUsageDetail_20' ) end [2025-04-05 15:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:10:26] Production.INFO: ==13215== Releasing lock... [2025-04-05 15:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:10:26] Production.INFO: 39 MB #Memory Used# [2025-04-05 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:11:05 [end_date_ymd] => 2025-04-05 15:11:05 [RateCDR] => 1 ) [2025-04-05 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:11:05' and `end` < '2025-04-05 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:11:18] Production.INFO: count ==1525 [2025-04-05 15:11:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:11:05 - End Time 2025-04-05 15:11:05 [2025-04-05 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841012', 'tblTempUsageDetail_20' ) start [2025-04-05 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841012', 'tblTempUsageDetail_20' ) end [2025-04-05 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841012', 'tblTempVendorCDR_20' ) start [2025-04-05 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841012', 'tblTempVendorCDR_20' ) end [2025-04-05 15:11:18] Production.INFO: ProcessCDR(1,14841012,1,1,2) [2025-04-05 15:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841012', 'tblTempUsageDetail_20' ) start [2025-04-05 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841012', 'tblTempUsageDetail_20' ) end [2025-04-05 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:11:24] Production.INFO: ==13305== Releasing lock... [2025-04-05 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:11:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:12:06 [end_date_ymd] => 2025-04-05 15:12:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:12:06' and `end` < '2025-04-05 15: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-04-05 15:12:19] Production.INFO: count ==1516 [2025-04-05 15:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:12:06 - End Time 2025-04-05 15:12:06 [2025-04-05 15:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841017', 'tblTempUsageDetail_20' ) start [2025-04-05 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841017', 'tblTempUsageDetail_20' ) end [2025-04-05 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841017', 'tblTempVendorCDR_20' ) start [2025-04-05 15:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841017', 'tblTempVendorCDR_20' ) end [2025-04-05 15:12:19] Production.INFO: ProcessCDR(1,14841017,1,1,2) [2025-04-05 15:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841017', 'tblTempUsageDetail_20' ) start [2025-04-05 15:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841017', 'tblTempUsageDetail_20' ) end [2025-04-05 15:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:12:24] Production.INFO: ==13460== Releasing lock... [2025-04-05 15:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:12:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:13:05 [end_date_ymd] => 2025-04-05 15:13:05 [RateCDR] => 1 ) [2025-04-05 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:13:05' and `end` < '2025-04-05 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:13:18] Production.INFO: count ==1530 [2025-04-05 15:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:13:05 - End Time 2025-04-05 15:13:05 [2025-04-05 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841022', 'tblTempUsageDetail_20' ) start [2025-04-05 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841022', 'tblTempUsageDetail_20' ) end [2025-04-05 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841022', 'tblTempVendorCDR_20' ) start [2025-04-05 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841022', 'tblTempVendorCDR_20' ) end [2025-04-05 15:13:19] Production.INFO: ProcessCDR(1,14841022,1,1,2) [2025-04-05 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841022', 'tblTempUsageDetail_20' ) start [2025-04-05 15:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841022', 'tblTempUsageDetail_20' ) end [2025-04-05 15:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:13:24] Production.INFO: ==13540== Releasing lock... [2025-04-05 15:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:13:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:14:06 [end_date_ymd] => 2025-04-05 15:14:06 [RateCDR] => 1 ) [2025-04-05 15:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:14:06' and `end` < '2025-04-05 15:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:14:18] Production.INFO: count ==1543 [2025-04-05 15:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:14:06 - End Time 2025-04-05 15:14:06 [2025-04-05 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841027', 'tblTempUsageDetail_20' ) start [2025-04-05 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841027', 'tblTempUsageDetail_20' ) end [2025-04-05 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841027', 'tblTempVendorCDR_20' ) start [2025-04-05 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841027', 'tblTempVendorCDR_20' ) end [2025-04-05 15:14:19] Production.INFO: ProcessCDR(1,14841027,1,1,2) [2025-04-05 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841027', 'tblTempUsageDetail_20' ) start [2025-04-05 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841027', 'tblTempUsageDetail_20' ) end [2025-04-05 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:14:24] Production.INFO: ==13629== Releasing lock... [2025-04-05 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:14:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:15:05 [end_date_ymd] => 2025-04-05 15:15:05 [RateCDR] => 1 ) [2025-04-05 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:15:05' and `end` < '2025-04-05 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:15:18] Production.INFO: count ==1546 [2025-04-05 15:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:15:05 - End Time 2025-04-05 15:15:05 [2025-04-05 15:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841032', 'tblTempUsageDetail_20' ) start [2025-04-05 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841032', 'tblTempUsageDetail_20' ) end [2025-04-05 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841032', 'tblTempVendorCDR_20' ) start [2025-04-05 15:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841032', 'tblTempVendorCDR_20' ) end [2025-04-05 15:15:19] Production.INFO: ProcessCDR(1,14841032,1,1,2) [2025-04-05 15:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841032', 'tblTempUsageDetail_20' ) start [2025-04-05 15:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841032', 'tblTempUsageDetail_20' ) end [2025-04-05 15:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:15:24] Production.INFO: ==13789== Releasing lock... [2025-04-05 15:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:15:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:16:05 [end_date_ymd] => 2025-04-05 15:16:05 [RateCDR] => 1 ) [2025-04-05 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:16:05' and `end` < '2025-04-05 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:16:18] Production.INFO: count ==1537 [2025-04-05 15:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:16:05 - End Time 2025-04-05 15:16:05 [2025-04-05 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841037', 'tblTempUsageDetail_20' ) start [2025-04-05 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841037', 'tblTempUsageDetail_20' ) end [2025-04-05 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841037', 'tblTempVendorCDR_20' ) start [2025-04-05 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841037', 'tblTempVendorCDR_20' ) end [2025-04-05 15:16:19] Production.INFO: ProcessCDR(1,14841037,1,1,2) [2025-04-05 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841037', 'tblTempUsageDetail_20' ) start [2025-04-05 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841037', 'tblTempUsageDetail_20' ) end [2025-04-05 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:16:24] Production.INFO: ==13873== Releasing lock... [2025-04-05 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:16:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:17:05 [end_date_ymd] => 2025-04-05 15:17:05 [RateCDR] => 1 ) [2025-04-05 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:17:05' and `end` < '2025-04-05 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:17:18] Production.INFO: count ==1533 [2025-04-05 15:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:17:05 - End Time 2025-04-05 15:17:05 [2025-04-05 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841042', 'tblTempUsageDetail_20' ) start [2025-04-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841042', 'tblTempUsageDetail_20' ) end [2025-04-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841042', 'tblTempVendorCDR_20' ) start [2025-04-05 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841042', 'tblTempVendorCDR_20' ) end [2025-04-05 15:17:18] Production.INFO: ProcessCDR(1,14841042,1,1,2) [2025-04-05 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841042', 'tblTempUsageDetail_20' ) start [2025-04-05 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841042', 'tblTempUsageDetail_20' ) end [2025-04-05 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:17:22] Production.INFO: ==13958== Releasing lock... [2025-04-05 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:17:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:18:05 [end_date_ymd] => 2025-04-05 15:18:05 [RateCDR] => 1 ) [2025-04-05 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:18:05' and `end` < '2025-04-05 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:18:18] Production.INFO: count ==1538 [2025-04-05 15:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:18:05 - End Time 2025-04-05 15:18:05 [2025-04-05 15:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841047', 'tblTempUsageDetail_20' ) start [2025-04-05 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841047', 'tblTempUsageDetail_20' ) end [2025-04-05 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841047', 'tblTempVendorCDR_20' ) start [2025-04-05 15:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841047', 'tblTempVendorCDR_20' ) end [2025-04-05 15:18:19] Production.INFO: ProcessCDR(1,14841047,1,1,2) [2025-04-05 15:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841047', 'tblTempUsageDetail_20' ) start [2025-04-05 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841047', 'tblTempUsageDetail_20' ) end [2025-04-05 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:18:24] Production.INFO: ==14040== Releasing lock... [2025-04-05 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:18:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:19:05 [end_date_ymd] => 2025-04-05 15:19:05 [RateCDR] => 1 ) [2025-04-05 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:19:05' and `end` < '2025-04-05 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:19:18] Production.INFO: count ==1538 [2025-04-05 15:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:19:05 - End Time 2025-04-05 15:19:05 [2025-04-05 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841052', 'tblTempUsageDetail_20' ) start [2025-04-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841052', 'tblTempUsageDetail_20' ) end [2025-04-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841052', 'tblTempVendorCDR_20' ) start [2025-04-05 15:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841052', 'tblTempVendorCDR_20' ) end [2025-04-05 15:19:19] Production.INFO: ProcessCDR(1,14841052,1,1,2) [2025-04-05 15:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841052', 'tblTempUsageDetail_20' ) start [2025-04-05 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841052', 'tblTempUsageDetail_20' ) end [2025-04-05 15:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:19:22] Production.INFO: ==14121== Releasing lock... [2025-04-05 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:19:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:20:06 [end_date_ymd] => 2025-04-05 15:20:06 [RateCDR] => 1 ) [2025-04-05 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:20:06' and `end` < '2025-04-05 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:20:19] Production.INFO: count ==1545 [2025-04-05 15:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:20:06 - End Time 2025-04-05 15:20:06 [2025-04-05 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841058', 'tblTempUsageDetail_20' ) start [2025-04-05 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841058', 'tblTempUsageDetail_20' ) end [2025-04-05 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841058', 'tblTempVendorCDR_20' ) start [2025-04-05 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841058', 'tblTempVendorCDR_20' ) end [2025-04-05 15:20:19] Production.INFO: ProcessCDR(1,14841058,1,1,2) [2025-04-05 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841058', 'tblTempUsageDetail_20' ) start [2025-04-05 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841058', 'tblTempUsageDetail_20' ) end [2025-04-05 15:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:20:23] Production.INFO: ==14200== Releasing lock... [2025-04-05 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:21:05 [end_date_ymd] => 2025-04-05 15:21:05 [RateCDR] => 1 ) [2025-04-05 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:21:05' and `end` < '2025-04-05 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:21:18] Production.INFO: count ==1551 [2025-04-05 15:21:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:21:05 - End Time 2025-04-05 15:21:05 [2025-04-05 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841063', 'tblTempUsageDetail_20' ) start [2025-04-05 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841063', 'tblTempUsageDetail_20' ) end [2025-04-05 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841063', 'tblTempVendorCDR_20' ) start [2025-04-05 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841063', 'tblTempVendorCDR_20' ) end [2025-04-05 15:21:18] Production.INFO: ProcessCDR(1,14841063,1,1,2) [2025-04-05 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841063', 'tblTempUsageDetail_20' ) start [2025-04-05 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841063', 'tblTempUsageDetail_20' ) end [2025-04-05 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:21:22] Production.INFO: ==14281== Releasing lock... [2025-04-05 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:21:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:22:05 [end_date_ymd] => 2025-04-05 15:22:05 [RateCDR] => 1 ) [2025-04-05 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:22:05' and `end` < '2025-04-05 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:22:18] Production.INFO: count ==1544 [2025-04-05 15:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:22:05 - End Time 2025-04-05 15:22:05 [2025-04-05 15:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841068', 'tblTempUsageDetail_20' ) start [2025-04-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841068', 'tblTempUsageDetail_20' ) end [2025-04-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841068', 'tblTempVendorCDR_20' ) start [2025-04-05 15:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841068', 'tblTempVendorCDR_20' ) end [2025-04-05 15:22:19] Production.INFO: ProcessCDR(1,14841068,1,1,2) [2025-04-05 15:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841068', 'tblTempUsageDetail_20' ) start [2025-04-05 15:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841068', 'tblTempUsageDetail_20' ) end [2025-04-05 15:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:22:24] Production.INFO: ==14361== Releasing lock... [2025-04-05 15:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:22:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:23:05 [end_date_ymd] => 2025-04-05 15:23:05 [RateCDR] => 1 ) [2025-04-05 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:23:05' and `end` < '2025-04-05 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:23:18] Production.INFO: count ==1556 [2025-04-05 15:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:23:05 - End Time 2025-04-05 15:23:05 [2025-04-05 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841073', 'tblTempUsageDetail_20' ) start [2025-04-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841073', 'tblTempUsageDetail_20' ) end [2025-04-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841073', 'tblTempVendorCDR_20' ) start [2025-04-05 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841073', 'tblTempVendorCDR_20' ) end [2025-04-05 15:23:18] Production.INFO: ProcessCDR(1,14841073,1,1,2) [2025-04-05 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841073', 'tblTempUsageDetail_20' ) start [2025-04-05 15:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841073', 'tblTempUsageDetail_20' ) end [2025-04-05 15:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:23:24] Production.INFO: ==14444== Releasing lock... [2025-04-05 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:23:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:24:06 [end_date_ymd] => 2025-04-05 15:24:06 [RateCDR] => 1 ) [2025-04-05 15:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:24:06' and `end` < '2025-04-05 15:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:24:19] Production.INFO: count ==1560 [2025-04-05 15:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:24:06 - End Time 2025-04-05 15:24:06 [2025-04-05 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841078', 'tblTempUsageDetail_20' ) start [2025-04-05 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841078', 'tblTempUsageDetail_20' ) end [2025-04-05 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841078', 'tblTempVendorCDR_20' ) start [2025-04-05 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841078', 'tblTempVendorCDR_20' ) end [2025-04-05 15:24:19] Production.INFO: ProcessCDR(1,14841078,1,1,2) [2025-04-05 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841078', 'tblTempUsageDetail_20' ) start [2025-04-05 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841078', 'tblTempUsageDetail_20' ) end [2025-04-05 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:24:25] Production.INFO: ==14524== Releasing lock... [2025-04-05 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:24:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:25:06 [end_date_ymd] => 2025-04-05 15:25:06 [RateCDR] => 1 ) [2025-04-05 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:25:06' and `end` < '2025-04-05 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:25:19] Production.INFO: count ==1565 [2025-04-05 15:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:25:06 - End Time 2025-04-05 15:25:06 [2025-04-05 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841083', 'tblTempUsageDetail_20' ) start [2025-04-05 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841083', 'tblTempUsageDetail_20' ) end [2025-04-05 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841083', 'tblTempVendorCDR_20' ) start [2025-04-05 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841083', 'tblTempVendorCDR_20' ) end [2025-04-05 15:25:19] Production.INFO: ProcessCDR(1,14841083,1,1,2) [2025-04-05 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841083', 'tblTempUsageDetail_20' ) start [2025-04-05 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841083', 'tblTempUsageDetail_20' ) end [2025-04-05 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:25:24] Production.INFO: ==14604== Releasing lock... [2025-04-05 15:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:25:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:26:05 [end_date_ymd] => 2025-04-05 15:26:05 [RateCDR] => 1 ) [2025-04-05 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:26:05' and `end` < '2025-04-05 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:26:18] Production.INFO: count ==1569 [2025-04-05 15:26:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:26:05 - End Time 2025-04-05 15:26:05 [2025-04-05 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841088', 'tblTempUsageDetail_20' ) start [2025-04-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841088', 'tblTempUsageDetail_20' ) end [2025-04-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841088', 'tblTempVendorCDR_20' ) start [2025-04-05 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841088', 'tblTempVendorCDR_20' ) end [2025-04-05 15:26:18] Production.INFO: ProcessCDR(1,14841088,1,1,2) [2025-04-05 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841088', 'tblTempUsageDetail_20' ) start [2025-04-05 15:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841088', 'tblTempUsageDetail_20' ) end [2025-04-05 15:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:26:23] Production.INFO: ==14734== Releasing lock... [2025-04-05 15:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:26:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:27:06 [end_date_ymd] => 2025-04-05 15:27:06 [RateCDR] => 1 ) [2025-04-05 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:27:06' and `end` < '2025-04-05 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:27:19] Production.INFO: count ==1570 [2025-04-05 15:27:20] Production.ERROR: pbx CDR StartTime 2025-04-05 12:27:06 - End Time 2025-04-05 15:27:06 [2025-04-05 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841093', 'tblTempUsageDetail_20' ) start [2025-04-05 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841093', 'tblTempUsageDetail_20' ) end [2025-04-05 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841093', 'tblTempVendorCDR_20' ) start [2025-04-05 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841093', 'tblTempVendorCDR_20' ) end [2025-04-05 15:27:20] Production.INFO: ProcessCDR(1,14841093,1,1,2) [2025-04-05 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841093', 'tblTempUsageDetail_20' ) start [2025-04-05 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841093', 'tblTempUsageDetail_20' ) end [2025-04-05 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:27:25] Production.INFO: ==14813== Releasing lock... [2025-04-05 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:27:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:28:05 [end_date_ymd] => 2025-04-05 15:28:05 [RateCDR] => 1 ) [2025-04-05 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:28:05' and `end` < '2025-04-05 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:28:18] Production.INFO: count ==1569 [2025-04-05 15:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:28:05 - End Time 2025-04-05 15:28:05 [2025-04-05 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841098', 'tblTempUsageDetail_20' ) start [2025-04-05 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841098', 'tblTempUsageDetail_20' ) end [2025-04-05 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841098', 'tblTempVendorCDR_20' ) start [2025-04-05 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841098', 'tblTempVendorCDR_20' ) end [2025-04-05 15:28:19] Production.INFO: ProcessCDR(1,14841098,1,1,2) [2025-04-05 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841098', 'tblTempUsageDetail_20' ) start [2025-04-05 15:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841098', 'tblTempUsageDetail_20' ) end [2025-04-05 15:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:28:24] Production.INFO: ==14895== Releasing lock... [2025-04-05 15:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:28:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:29:06 [end_date_ymd] => 2025-04-05 15:29:06 [RateCDR] => 1 ) [2025-04-05 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:29:06' and `end` < '2025-04-05 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:29:19] Production.INFO: count ==1577 [2025-04-05 15:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:29:06 - End Time 2025-04-05 15:29:06 [2025-04-05 15:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841103', 'tblTempUsageDetail_20' ) start [2025-04-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841103', 'tblTempUsageDetail_20' ) end [2025-04-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841103', 'tblTempVendorCDR_20' ) start [2025-04-05 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841103', 'tblTempVendorCDR_20' ) end [2025-04-05 15:29:19] Production.INFO: ProcessCDR(1,14841103,1,1,2) [2025-04-05 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841103', 'tblTempUsageDetail_20' ) start [2025-04-05 15:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841103', 'tblTempUsageDetail_20' ) end [2025-04-05 15:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:29:25] Production.INFO: ==14975== Releasing lock... [2025-04-05 15:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:29:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:30:06 [end_date_ymd] => 2025-04-05 15:30:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:30:06' and `end` < '2025-04-05 15: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-04-05 15:30:19] Production.INFO: count ==1582 [2025-04-05 15:30:20] Production.ERROR: pbx CDR StartTime 2025-04-05 12:30:06 - End Time 2025-04-05 15:30:06 [2025-04-05 15:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841109', 'tblTempUsageDetail_20' ) start [2025-04-05 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841109', 'tblTempUsageDetail_20' ) end [2025-04-05 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841109', 'tblTempVendorCDR_20' ) start [2025-04-05 15:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841109', 'tblTempVendorCDR_20' ) end [2025-04-05 15:30:20] Production.INFO: ProcessCDR(1,14841109,1,1,2) [2025-04-05 15:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841109', 'tblTempUsageDetail_20' ) start [2025-04-05 15:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841109', 'tblTempUsageDetail_20' ) end [2025-04-05 15:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:30:25] Production.INFO: ==15062== Releasing lock... [2025-04-05 15:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:30:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:31:06 [end_date_ymd] => 2025-04-05 15:31:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:31:06' and `end` < '2025-04-05 15: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-04-05 15:31:19] Production.INFO: count ==1621 [2025-04-05 15:31:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:31:06 - End Time 2025-04-05 15:31:06 [2025-04-05 15:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841114', 'tblTempUsageDetail_20' ) start [2025-04-05 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841114', 'tblTempUsageDetail_20' ) end [2025-04-05 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841114', 'tblTempVendorCDR_20' ) start [2025-04-05 15:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841114', 'tblTempVendorCDR_20' ) end [2025-04-05 15:31:19] Production.INFO: ProcessCDR(1,14841114,1,1,2) [2025-04-05 15:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841114', 'tblTempUsageDetail_20' ) start [2025-04-05 15:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841114', 'tblTempUsageDetail_20' ) end [2025-04-05 15:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:31:24] Production.INFO: ==15164== Releasing lock... [2025-04-05 15:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:31:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:32:05 [end_date_ymd] => 2025-04-05 15:32:05 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:32:05' and `end` < '2025-04-05 15: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-04-05 15:32:18] Production.INFO: count ==1626 [2025-04-05 15:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:32:05 - End Time 2025-04-05 15:32:05 [2025-04-05 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841119', 'tblTempUsageDetail_20' ) start [2025-04-05 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841119', 'tblTempUsageDetail_20' ) end [2025-04-05 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841119', 'tblTempVendorCDR_20' ) start [2025-04-05 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841119', 'tblTempVendorCDR_20' ) end [2025-04-05 15:32:18] Production.INFO: ProcessCDR(1,14841119,1,1,2) [2025-04-05 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841119', 'tblTempUsageDetail_20' ) start [2025-04-05 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841119', 'tblTempUsageDetail_20' ) end [2025-04-05 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:32:22] Production.INFO: ==15292== Releasing lock... [2025-04-05 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:32:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:33:05 [end_date_ymd] => 2025-04-05 15:33:05 [RateCDR] => 1 ) [2025-04-05 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:33:05' and `end` < '2025-04-05 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:33:18] Production.INFO: count ==1619 [2025-04-05 15:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:33:05 - End Time 2025-04-05 15:33:05 [2025-04-05 15:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841124', 'tblTempUsageDetail_20' ) start [2025-04-05 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841124', 'tblTempUsageDetail_20' ) end [2025-04-05 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841124', 'tblTempVendorCDR_20' ) start [2025-04-05 15:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841124', 'tblTempVendorCDR_20' ) end [2025-04-05 15:33:19] Production.INFO: ProcessCDR(1,14841124,1,1,2) [2025-04-05 15:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841124', 'tblTempUsageDetail_20' ) start [2025-04-05 15:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841124', 'tblTempUsageDetail_20' ) end [2025-04-05 15:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:33:22] Production.INFO: ==15367== Releasing lock... [2025-04-05 15:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:33:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:34:05 [end_date_ymd] => 2025-04-05 15:34:05 [RateCDR] => 1 ) [2025-04-05 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:34:05' and `end` < '2025-04-05 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:34:18] Production.INFO: count ==1621 [2025-04-05 15:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:34:05 - End Time 2025-04-05 15:34:05 [2025-04-05 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841129', 'tblTempUsageDetail_20' ) start [2025-04-05 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841129', 'tblTempUsageDetail_20' ) end [2025-04-05 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841129', 'tblTempVendorCDR_20' ) start [2025-04-05 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841129', 'tblTempVendorCDR_20' ) end [2025-04-05 15:34:19] Production.INFO: ProcessCDR(1,14841129,1,1,2) [2025-04-05 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841129', 'tblTempUsageDetail_20' ) start [2025-04-05 15:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841129', 'tblTempUsageDetail_20' ) end [2025-04-05 15:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:34:22] Production.INFO: ==15445== Releasing lock... [2025-04-05 15:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:34:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:35:06 [end_date_ymd] => 2025-04-05 15:35:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:35:06' and `end` < '2025-04-05 15: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-04-05 15:35:19] Production.INFO: count ==1623 [2025-04-05 15:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:35:06 - End Time 2025-04-05 15:35:06 [2025-04-05 15:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841134', 'tblTempUsageDetail_20' ) start [2025-04-05 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841134', 'tblTempUsageDetail_20' ) end [2025-04-05 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841134', 'tblTempVendorCDR_20' ) start [2025-04-05 15:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841134', 'tblTempVendorCDR_20' ) end [2025-04-05 15:35:19] Production.INFO: ProcessCDR(1,14841134,1,1,2) [2025-04-05 15:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841134', 'tblTempUsageDetail_20' ) start [2025-04-05 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841134', 'tblTempUsageDetail_20' ) end [2025-04-05 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:35:22] Production.INFO: ==15532== Releasing lock... [2025-04-05 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:35:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:36:05 [end_date_ymd] => 2025-04-05 15:36:05 [RateCDR] => 1 ) [2025-04-05 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:36:05' and `end` < '2025-04-05 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:36:18] Production.INFO: count ==1624 [2025-04-05 15:36:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:36:05 - End Time 2025-04-05 15:36:05 [2025-04-05 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841139', 'tblTempUsageDetail_20' ) start [2025-04-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841139', 'tblTempUsageDetail_20' ) end [2025-04-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841139', 'tblTempVendorCDR_20' ) start [2025-04-05 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841139', 'tblTempVendorCDR_20' ) end [2025-04-05 15:36:18] Production.INFO: ProcessCDR(1,14841139,1,1,2) [2025-04-05 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841139', 'tblTempUsageDetail_20' ) start [2025-04-05 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841139', 'tblTempUsageDetail_20' ) end [2025-04-05 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:36:21] Production.INFO: ==15613== Releasing lock... [2025-04-05 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:36:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:37:06 [end_date_ymd] => 2025-04-05 15:37:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:37:06' and `end` < '2025-04-05 15: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-04-05 15:37:19] Production.INFO: count ==1633 [2025-04-05 15:37:20] Production.ERROR: pbx CDR StartTime 2025-04-05 12:37:06 - End Time 2025-04-05 15:37:06 [2025-04-05 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841144', 'tblTempUsageDetail_20' ) start [2025-04-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841144', 'tblTempUsageDetail_20' ) end [2025-04-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841144', 'tblTempVendorCDR_20' ) start [2025-04-05 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841144', 'tblTempVendorCDR_20' ) end [2025-04-05 15:37:20] Production.INFO: ProcessCDR(1,14841144,1,1,2) [2025-04-05 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841144', 'tblTempUsageDetail_20' ) start [2025-04-05 15:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841144', 'tblTempUsageDetail_20' ) end [2025-04-05 15:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:37:23] Production.INFO: ==15695== Releasing lock... [2025-04-05 15:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:37:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:38:05 [end_date_ymd] => 2025-04-05 15:38:05 [RateCDR] => 1 ) [2025-04-05 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:38:05' and `end` < '2025-04-05 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:38:18] Production.INFO: count ==1620 [2025-04-05 15:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:38:05 - End Time 2025-04-05 15:38:05 [2025-04-05 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841149', 'tblTempUsageDetail_20' ) start [2025-04-05 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841149', 'tblTempUsageDetail_20' ) end [2025-04-05 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841149', 'tblTempVendorCDR_20' ) start [2025-04-05 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841149', 'tblTempVendorCDR_20' ) end [2025-04-05 15:38:19] Production.INFO: ProcessCDR(1,14841149,1,1,2) [2025-04-05 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841149', 'tblTempUsageDetail_20' ) start [2025-04-05 15:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841149', 'tblTempUsageDetail_20' ) end [2025-04-05 15:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:38:24] Production.INFO: ==15776== Releasing lock... [2025-04-05 15:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:38:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:39:05 [end_date_ymd] => 2025-04-05 15:39:05 [RateCDR] => 1 ) [2025-04-05 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:39:05' and `end` < '2025-04-05 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:39:18] Production.INFO: count ==1612 [2025-04-05 15:39:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:39:05 - End Time 2025-04-05 15:39:05 [2025-04-05 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841154', 'tblTempUsageDetail_20' ) start [2025-04-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841154', 'tblTempUsageDetail_20' ) end [2025-04-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841154', 'tblTempVendorCDR_20' ) start [2025-04-05 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841154', 'tblTempVendorCDR_20' ) end [2025-04-05 15:39:19] Production.INFO: ProcessCDR(1,14841154,1,1,2) [2025-04-05 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841154', 'tblTempUsageDetail_20' ) start [2025-04-05 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841154', 'tblTempUsageDetail_20' ) end [2025-04-05 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:39:22] Production.INFO: ==15858== Releasing lock... [2025-04-05 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:39:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:40:06 [end_date_ymd] => 2025-04-05 15:40:06 [RateCDR] => 1 ) [2025-04-05 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:40:06' and `end` < '2025-04-05 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:40:19] Production.INFO: count ==1617 [2025-04-05 15:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 12:40:06 - End Time 2025-04-05 15:40:06 [2025-04-05 15:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841160', 'tblTempUsageDetail_20' ) start [2025-04-05 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841160', 'tblTempUsageDetail_20' ) end [2025-04-05 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841160', 'tblTempVendorCDR_20' ) start [2025-04-05 15:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841160', 'tblTempVendorCDR_20' ) end [2025-04-05 15:40:20] Production.INFO: ProcessCDR(1,14841160,1,1,2) [2025-04-05 15:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841160', 'tblTempUsageDetail_20' ) start [2025-04-05 15:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841160', 'tblTempUsageDetail_20' ) end [2025-04-05 15:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:40:24] Production.INFO: ==15941== Releasing lock... [2025-04-05 15:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:40:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:41:05 [end_date_ymd] => 2025-04-05 15:41:05 [RateCDR] => 1 ) [2025-04-05 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:41:05' and `end` < '2025-04-05 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:41:18] Production.INFO: count ==1609 [2025-04-05 15:41:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:41:05 - End Time 2025-04-05 15:41:05 [2025-04-05 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841165', 'tblTempUsageDetail_20' ) start [2025-04-05 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841165', 'tblTempUsageDetail_20' ) end [2025-04-05 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841165', 'tblTempVendorCDR_20' ) start [2025-04-05 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841165', 'tblTempVendorCDR_20' ) end [2025-04-05 15:41:18] Production.INFO: ProcessCDR(1,14841165,1,1,2) [2025-04-05 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841165', 'tblTempUsageDetail_20' ) start [2025-04-05 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841165', 'tblTempUsageDetail_20' ) end [2025-04-05 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:41:21] Production.INFO: ==16070== Releasing lock... [2025-04-05 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:41:21] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:42:06 [end_date_ymd] => 2025-04-05 15:42:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:42:06' and `end` < '2025-04-05 15: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-04-05 15:42:19] Production.INFO: count ==1611 [2025-04-05 15:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:42:06 - End Time 2025-04-05 15:42:06 [2025-04-05 15:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841170', 'tblTempUsageDetail_20' ) start [2025-04-05 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841170', 'tblTempUsageDetail_20' ) end [2025-04-05 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841170', 'tblTempVendorCDR_20' ) start [2025-04-05 15:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841170', 'tblTempVendorCDR_20' ) end [2025-04-05 15:42:19] Production.INFO: ProcessCDR(1,14841170,1,1,2) [2025-04-05 15:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841170', 'tblTempUsageDetail_20' ) start [2025-04-05 15:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841170', 'tblTempUsageDetail_20' ) end [2025-04-05 15:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:42:24] Production.INFO: ==16156== Releasing lock... [2025-04-05 15:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:42:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:43:05 [end_date_ymd] => 2025-04-05 15:43:05 [RateCDR] => 1 ) [2025-04-05 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:43:05' and `end` < '2025-04-05 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:43:18] Production.INFO: count ==1610 [2025-04-05 15:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:43:05 - End Time 2025-04-05 15:43:05 [2025-04-05 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841175', 'tblTempUsageDetail_20' ) start [2025-04-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841175', 'tblTempUsageDetail_20' ) end [2025-04-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841175', 'tblTempVendorCDR_20' ) start [2025-04-05 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841175', 'tblTempVendorCDR_20' ) end [2025-04-05 15:43:18] Production.INFO: ProcessCDR(1,14841175,1,1,2) [2025-04-05 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841175', 'tblTempUsageDetail_20' ) start [2025-04-05 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841175', 'tblTempUsageDetail_20' ) end [2025-04-05 15:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:43:22] Production.INFO: ==16243== Releasing lock... [2025-04-05 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:43:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:44:06 [end_date_ymd] => 2025-04-05 15:44:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:44:06' and `end` < '2025-04-05 15: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-04-05 15:44:19] Production.INFO: count ==1603 [2025-04-05 15:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:44:06 - End Time 2025-04-05 15:44:06 [2025-04-05 15:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841180', 'tblTempUsageDetail_20' ) start [2025-04-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841180', 'tblTempUsageDetail_20' ) end [2025-04-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841180', 'tblTempVendorCDR_20' ) start [2025-04-05 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841180', 'tblTempVendorCDR_20' ) end [2025-04-05 15:44:20] Production.INFO: ProcessCDR(1,14841180,1,1,2) [2025-04-05 15:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841180', 'tblTempUsageDetail_20' ) start [2025-04-05 15:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841180', 'tblTempUsageDetail_20' ) end [2025-04-05 15:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:44:25] Production.INFO: ==16326== Releasing lock... [2025-04-05 15:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:44:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:45:05 [end_date_ymd] => 2025-04-05 15:45:05 [RateCDR] => 1 ) [2025-04-05 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:45:05' and `end` < '2025-04-05 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:45:18] Production.INFO: count ==1603 [2025-04-05 15:45:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:45:05 - End Time 2025-04-05 15:45:05 [2025-04-05 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841185', 'tblTempUsageDetail_20' ) start [2025-04-05 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841185', 'tblTempUsageDetail_20' ) end [2025-04-05 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841185', 'tblTempVendorCDR_20' ) start [2025-04-05 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841185', 'tblTempVendorCDR_20' ) end [2025-04-05 15:45:18] Production.INFO: ProcessCDR(1,14841185,1,1,2) [2025-04-05 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841185', 'tblTempUsageDetail_20' ) start [2025-04-05 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841185', 'tblTempUsageDetail_20' ) end [2025-04-05 15:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:45:22] Production.INFO: ==16406== Releasing lock... [2025-04-05 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:45:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:46:06 [end_date_ymd] => 2025-04-05 15:46:06 [RateCDR] => 1 ) [2025-04-05 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:46:06' and `end` < '2025-04-05 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:46:19] Production.INFO: count ==1600 [2025-04-05 15:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:46:06 - End Time 2025-04-05 15:46:06 [2025-04-05 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841190', 'tblTempUsageDetail_20' ) start [2025-04-05 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841190', 'tblTempUsageDetail_20' ) end [2025-04-05 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841190', 'tblTempVendorCDR_20' ) start [2025-04-05 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841190', 'tblTempVendorCDR_20' ) end [2025-04-05 15:46:19] Production.INFO: ProcessCDR(1,14841190,1,1,2) [2025-04-05 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841190', 'tblTempUsageDetail_20' ) start [2025-04-05 15:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841190', 'tblTempUsageDetail_20' ) end [2025-04-05 15:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:46:24] Production.INFO: ==16495== Releasing lock... [2025-04-05 15:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:46:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:47:05 [end_date_ymd] => 2025-04-05 15:47:05 [RateCDR] => 1 ) [2025-04-05 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:47:05' and `end` < '2025-04-05 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:47:18] Production.INFO: count ==1591 [2025-04-05 15:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:47:05 - End Time 2025-04-05 15:47:05 [2025-04-05 15:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841195', 'tblTempUsageDetail_20' ) start [2025-04-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841195', 'tblTempUsageDetail_20' ) end [2025-04-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841195', 'tblTempVendorCDR_20' ) start [2025-04-05 15:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841195', 'tblTempVendorCDR_20' ) end [2025-04-05 15:47:19] Production.INFO: ProcessCDR(1,14841195,1,1,2) [2025-04-05 15:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841195', 'tblTempUsageDetail_20' ) start [2025-04-05 15:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841195', 'tblTempUsageDetail_20' ) end [2025-04-05 15:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:47:24] Production.INFO: ==16584== Releasing lock... [2025-04-05 15:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:47:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:48:05 [end_date_ymd] => 2025-04-05 15:48:05 [RateCDR] => 1 ) [2025-04-05 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:48:05' and `end` < '2025-04-05 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:48:18] Production.INFO: count ==1592 [2025-04-05 15:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:48:05 - End Time 2025-04-05 15:48:05 [2025-04-05 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841200', 'tblTempUsageDetail_20' ) start [2025-04-05 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841200', 'tblTempUsageDetail_20' ) end [2025-04-05 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841200', 'tblTempVendorCDR_20' ) start [2025-04-05 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841200', 'tblTempVendorCDR_20' ) end [2025-04-05 15:48:19] Production.INFO: ProcessCDR(1,14841200,1,1,2) [2025-04-05 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841200', 'tblTempUsageDetail_20' ) start [2025-04-05 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841200', 'tblTempUsageDetail_20' ) end [2025-04-05 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:48:24] Production.INFO: ==16663== Releasing lock... [2025-04-05 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:48:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:49:05 [end_date_ymd] => 2025-04-05 15:49:05 [RateCDR] => 1 ) [2025-04-05 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:49:05' and `end` < '2025-04-05 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:49:18] Production.INFO: count ==1584 [2025-04-05 15:49:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:49:05 - End Time 2025-04-05 15:49:05 [2025-04-05 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841205', 'tblTempUsageDetail_20' ) start [2025-04-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841205', 'tblTempUsageDetail_20' ) end [2025-04-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841205', 'tblTempVendorCDR_20' ) start [2025-04-05 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841205', 'tblTempVendorCDR_20' ) end [2025-04-05 15:49:18] Production.INFO: ProcessCDR(1,14841205,1,1,2) [2025-04-05 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841205', 'tblTempUsageDetail_20' ) start [2025-04-05 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841205', 'tblTempUsageDetail_20' ) end [2025-04-05 15:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:49:21] Production.INFO: ==16746== Releasing lock... [2025-04-05 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:49:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:50:06 [end_date_ymd] => 2025-04-05 15:50:06 [RateCDR] => 1 ) [2025-04-05 15: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-04-05 12:50:06' and `end` < '2025-04-05 15: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-04-05 15:50:19] Production.INFO: count ==1585 [2025-04-05 15:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:50:06 - End Time 2025-04-05 15:50:06 [2025-04-05 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841210', 'tblTempUsageDetail_20' ) start [2025-04-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841210', 'tblTempUsageDetail_20' ) end [2025-04-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841210', 'tblTempVendorCDR_20' ) start [2025-04-05 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841210', 'tblTempVendorCDR_20' ) end [2025-04-05 15:50:19] Production.INFO: ProcessCDR(1,14841210,1,1,2) [2025-04-05 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841210', 'tblTempUsageDetail_20' ) start [2025-04-05 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841210', 'tblTempUsageDetail_20' ) end [2025-04-05 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:50:23] Production.INFO: ==16827== Releasing lock... [2025-04-05 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:50:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:51:05 [end_date_ymd] => 2025-04-05 15:51:05 [RateCDR] => 1 ) [2025-04-05 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:51:05' and `end` < '2025-04-05 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:51:18] Production.INFO: count ==1581 [2025-04-05 15:51:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:51:05 - End Time 2025-04-05 15:51:05 [2025-04-05 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841216', 'tblTempUsageDetail_20' ) start [2025-04-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841216', 'tblTempUsageDetail_20' ) end [2025-04-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841216', 'tblTempVendorCDR_20' ) start [2025-04-05 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841216', 'tblTempVendorCDR_20' ) end [2025-04-05 15:51:18] Production.INFO: ProcessCDR(1,14841216,1,1,2) [2025-04-05 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841216', 'tblTempUsageDetail_20' ) start [2025-04-05 15:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841216', 'tblTempUsageDetail_20' ) end [2025-04-05 15:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:51:23] Production.INFO: ==16910== Releasing lock... [2025-04-05 15:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:51:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:52:05 [end_date_ymd] => 2025-04-05 15:52:05 [RateCDR] => 1 ) [2025-04-05 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:52:05' and `end` < '2025-04-05 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:52:18] Production.INFO: count ==1584 [2025-04-05 15:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:52:05 - End Time 2025-04-05 15:52:05 [2025-04-05 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841221', 'tblTempUsageDetail_20' ) start [2025-04-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841221', 'tblTempUsageDetail_20' ) end [2025-04-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841221', 'tblTempVendorCDR_20' ) start [2025-04-05 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841221', 'tblTempVendorCDR_20' ) end [2025-04-05 15:52:19] Production.INFO: ProcessCDR(1,14841221,1,1,2) [2025-04-05 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841221', 'tblTempUsageDetail_20' ) start [2025-04-05 15:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841221', 'tblTempUsageDetail_20' ) end [2025-04-05 15:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:52:24] Production.INFO: ==16990== Releasing lock... [2025-04-05 15:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:52:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:53:05 [end_date_ymd] => 2025-04-05 15:53:05 [RateCDR] => 1 ) [2025-04-05 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:53:05' and `end` < '2025-04-05 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:53:17] Production.INFO: count ==1593 [2025-04-05 15:53:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:53:05 - End Time 2025-04-05 15:53:05 [2025-04-05 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841226', 'tblTempUsageDetail_20' ) start [2025-04-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841226', 'tblTempUsageDetail_20' ) end [2025-04-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841226', 'tblTempVendorCDR_20' ) start [2025-04-05 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841226', 'tblTempVendorCDR_20' ) end [2025-04-05 15:53:18] Production.INFO: ProcessCDR(1,14841226,1,1,2) [2025-04-05 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841226', 'tblTempUsageDetail_20' ) start [2025-04-05 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841226', 'tblTempUsageDetail_20' ) end [2025-04-05 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:53:22] Production.INFO: ==17067== Releasing lock... [2025-04-05 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:54:06 [end_date_ymd] => 2025-04-05 15:54:06 [RateCDR] => 1 ) [2025-04-05 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:54:06' and `end` < '2025-04-05 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:54:19] Production.INFO: count ==1603 [2025-04-05 15:54:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:54:06 - End Time 2025-04-05 15:54:06 [2025-04-05 15:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841231', 'tblTempUsageDetail_20' ) start [2025-04-05 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841231', 'tblTempUsageDetail_20' ) end [2025-04-05 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841231', 'tblTempVendorCDR_20' ) start [2025-04-05 15:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841231', 'tblTempVendorCDR_20' ) end [2025-04-05 15:54:19] Production.INFO: ProcessCDR(1,14841231,1,1,2) [2025-04-05 15:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841231', 'tblTempUsageDetail_20' ) start [2025-04-05 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841231', 'tblTempUsageDetail_20' ) end [2025-04-05 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:54:25] Production.INFO: ==17148== Releasing lock... [2025-04-05 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:54:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:55:05 [end_date_ymd] => 2025-04-05 15:55:05 [RateCDR] => 1 ) [2025-04-05 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:55:05' and `end` < '2025-04-05 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:55:18] Production.INFO: count ==1616 [2025-04-05 15:55:18] Production.ERROR: pbx CDR StartTime 2025-04-05 12:55:05 - End Time 2025-04-05 15:55:05 [2025-04-05 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841236', 'tblTempUsageDetail_20' ) start [2025-04-05 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841236', 'tblTempUsageDetail_20' ) end [2025-04-05 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841236', 'tblTempVendorCDR_20' ) start [2025-04-05 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841236', 'tblTempVendorCDR_20' ) end [2025-04-05 15:55:18] Production.INFO: ProcessCDR(1,14841236,1,1,2) [2025-04-05 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841236', 'tblTempUsageDetail_20' ) start [2025-04-05 15:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841236', 'tblTempUsageDetail_20' ) end [2025-04-05 15:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:55:23] Production.INFO: ==17226== Releasing lock... [2025-04-05 15:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:55:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:56:06 [end_date_ymd] => 2025-04-05 15:56:06 [RateCDR] => 1 ) [2025-04-05 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:56:06' and `end` < '2025-04-05 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:56:19] Production.INFO: count ==1606 [2025-04-05 15:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:56:06 - End Time 2025-04-05 15:56:06 [2025-04-05 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841241', 'tblTempUsageDetail_20' ) start [2025-04-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841241', 'tblTempUsageDetail_20' ) end [2025-04-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841241', 'tblTempVendorCDR_20' ) start [2025-04-05 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841241', 'tblTempVendorCDR_20' ) end [2025-04-05 15:56:19] Production.INFO: ProcessCDR(1,14841241,1,1,2) [2025-04-05 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841241', 'tblTempUsageDetail_20' ) start [2025-04-05 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841241', 'tblTempUsageDetail_20' ) end [2025-04-05 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:56:22] Production.INFO: ==17311== Releasing lock... [2025-04-05 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:56:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:57:05 [end_date_ymd] => 2025-04-05 15:57:05 [RateCDR] => 1 ) [2025-04-05 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:57:05' and `end` < '2025-04-05 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:57:18] Production.INFO: count ==1607 [2025-04-05 15:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:57:05 - End Time 2025-04-05 15:57:05 [2025-04-05 15:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841246', 'tblTempUsageDetail_20' ) start [2025-04-05 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841246', 'tblTempUsageDetail_20' ) end [2025-04-05 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841246', 'tblTempVendorCDR_20' ) start [2025-04-05 15:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841246', 'tblTempVendorCDR_20' ) end [2025-04-05 15:57:19] Production.INFO: ProcessCDR(1,14841246,1,1,2) [2025-04-05 15:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841246', 'tblTempUsageDetail_20' ) start [2025-04-05 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841246', 'tblTempUsageDetail_20' ) end [2025-04-05 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:57:24] Production.INFO: ==17431== Releasing lock... [2025-04-05 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:57:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:58:05 [end_date_ymd] => 2025-04-05 15:58:05 [RateCDR] => 1 ) [2025-04-05 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:58:05' and `end` < '2025-04-05 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:58:18] Production.INFO: count ==1605 [2025-04-05 15:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:58:05 - End Time 2025-04-05 15:58:05 [2025-04-05 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841251', 'tblTempUsageDetail_20' ) start [2025-04-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841251', 'tblTempUsageDetail_20' ) end [2025-04-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841251', 'tblTempVendorCDR_20' ) start [2025-04-05 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841251', 'tblTempVendorCDR_20' ) end [2025-04-05 15:58:19] Production.INFO: ProcessCDR(1,14841251,1,1,2) [2025-04-05 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841251', 'tblTempUsageDetail_20' ) start [2025-04-05 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841251', 'tblTempUsageDetail_20' ) end [2025-04-05 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:58:22] Production.INFO: ==17509== Releasing lock... [2025-04-05 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:58:22] Production.INFO: 40 MB #Memory Used# [2025-04-05 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 12:59:05 [end_date_ymd] => 2025-04-05 15:59:05 [RateCDR] => 1 ) [2025-04-05 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 12:59:05' and `end` < '2025-04-05 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 15:59:18] Production.INFO: count ==1616 [2025-04-05 15:59:19] Production.ERROR: pbx CDR StartTime 2025-04-05 12:59:05 - End Time 2025-04-05 15:59:05 [2025-04-05 15:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841256', 'tblTempUsageDetail_20' ) start [2025-04-05 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841256', 'tblTempUsageDetail_20' ) end [2025-04-05 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841256', 'tblTempVendorCDR_20' ) start [2025-04-05 15:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841256', 'tblTempVendorCDR_20' ) end [2025-04-05 15:59:19] Production.INFO: ProcessCDR(1,14841256,1,1,2) [2025-04-05 15:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841256', 'tblTempUsageDetail_20' ) start [2025-04-05 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841256', 'tblTempUsageDetail_20' ) end [2025-04-05 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 15:59:22] Production.INFO: ==17596== Releasing lock... [2025-04-05 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 15:59:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:00:06 [end_date_ymd] => 2025-04-05 16:00:06 [RateCDR] => 1 ) [2025-04-05 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:00:06' and `end` < '2025-04-05 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:00:19] Production.INFO: count ==1614 [2025-04-05 16:00:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:00:06 - End Time 2025-04-05 16:00:06 [2025-04-05 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841262', 'tblTempUsageDetail_20' ) start [2025-04-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841262', 'tblTempUsageDetail_20' ) end [2025-04-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841262', 'tblTempVendorCDR_20' ) start [2025-04-05 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841262', 'tblTempVendorCDR_20' ) end [2025-04-05 16:00:19] Production.INFO: ProcessCDR(1,14841262,1,1,2) [2025-04-05 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841262', 'tblTempUsageDetail_20' ) start [2025-04-05 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841262', 'tblTempUsageDetail_20' ) end [2025-04-05 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:00:23] Production.INFO: ==17674== Releasing lock... [2025-04-05 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:00:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:01:05 [end_date_ymd] => 2025-04-05 16:01:05 [RateCDR] => 1 ) [2025-04-05 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:01:05' and `end` < '2025-04-05 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:01:18] Production.INFO: count ==1568 [2025-04-05 16:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:01:05 - End Time 2025-04-05 16:01:05 [2025-04-05 16:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841267', 'tblTempUsageDetail_20' ) start [2025-04-05 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841267', 'tblTempUsageDetail_20' ) end [2025-04-05 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841267', 'tblTempVendorCDR_20' ) start [2025-04-05 16:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841267', 'tblTempVendorCDR_20' ) end [2025-04-05 16:01:19] Production.INFO: ProcessCDR(1,14841267,1,1,2) [2025-04-05 16:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841267', 'tblTempUsageDetail_20' ) start [2025-04-05 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841267', 'tblTempUsageDetail_20' ) end [2025-04-05 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:01:22] Production.INFO: ==17778== Releasing lock... [2025-04-05 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:01:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:02:05 [end_date_ymd] => 2025-04-05 16:02:05 [RateCDR] => 1 ) [2025-04-05 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:02:05' and `end` < '2025-04-05 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:02:18] Production.INFO: count ==1540 [2025-04-05 16:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:02:05 - End Time 2025-04-05 16:02:05 [2025-04-05 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841272', 'tblTempUsageDetail_20' ) start [2025-04-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841272', 'tblTempUsageDetail_20' ) end [2025-04-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841272', 'tblTempVendorCDR_20' ) start [2025-04-05 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841272', 'tblTempVendorCDR_20' ) end [2025-04-05 16:02:19] Production.INFO: ProcessCDR(1,14841272,1,1,2) [2025-04-05 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841272', 'tblTempUsageDetail_20' ) start [2025-04-05 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841272', 'tblTempUsageDetail_20' ) end [2025-04-05 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:02:22] Production.INFO: ==17858== Releasing lock... [2025-04-05 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:02:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:03:05 [end_date_ymd] => 2025-04-05 16:03:05 [RateCDR] => 1 ) [2025-04-05 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:03:05' and `end` < '2025-04-05 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:03:18] Production.INFO: count ==1522 [2025-04-05 16:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:03:05 - End Time 2025-04-05 16:03:05 [2025-04-05 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841277', 'tblTempUsageDetail_20' ) start [2025-04-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841277', 'tblTempUsageDetail_20' ) end [2025-04-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841277', 'tblTempVendorCDR_20' ) start [2025-04-05 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841277', 'tblTempVendorCDR_20' ) end [2025-04-05 16:03:18] Production.INFO: ProcessCDR(1,14841277,1,1,2) [2025-04-05 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841277', 'tblTempUsageDetail_20' ) start [2025-04-05 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841277', 'tblTempUsageDetail_20' ) end [2025-04-05 16:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:03:22] Production.INFO: ==17957== Releasing lock... [2025-04-05 16:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:04:05 [end_date_ymd] => 2025-04-05 16:04:05 [RateCDR] => 1 ) [2025-04-05 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:04:05' and `end` < '2025-04-05 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:04:18] Production.INFO: count ==1532 [2025-04-05 16:04:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:04:05 - End Time 2025-04-05 16:04:05 [2025-04-05 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841282', 'tblTempUsageDetail_20' ) start [2025-04-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841282', 'tblTempUsageDetail_20' ) end [2025-04-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841282', 'tblTempVendorCDR_20' ) start [2025-04-05 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841282', 'tblTempVendorCDR_20' ) end [2025-04-05 16:04:18] Production.INFO: ProcessCDR(1,14841282,1,1,2) [2025-04-05 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841282', 'tblTempUsageDetail_20' ) start [2025-04-05 16:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841282', 'tblTempUsageDetail_20' ) end [2025-04-05 16:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:04:23] Production.INFO: ==18059== Releasing lock... [2025-04-05 16:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:04:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:05:05 [end_date_ymd] => 2025-04-05 16:05:05 [RateCDR] => 1 ) [2025-04-05 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:05:05' and `end` < '2025-04-05 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:05:18] Production.INFO: count ==1539 [2025-04-05 16:05:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:05:05 - End Time 2025-04-05 16:05:05 [2025-04-05 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841287', 'tblTempUsageDetail_20' ) start [2025-04-05 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841287', 'tblTempUsageDetail_20' ) end [2025-04-05 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841287', 'tblTempVendorCDR_20' ) start [2025-04-05 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841287', 'tblTempVendorCDR_20' ) end [2025-04-05 16:05:18] Production.INFO: ProcessCDR(1,14841287,1,1,2) [2025-04-05 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841287', 'tblTempUsageDetail_20' ) start [2025-04-05 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841287', 'tblTempUsageDetail_20' ) end [2025-04-05 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:05:23] Production.INFO: ==18164== Releasing lock... [2025-04-05 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:05:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:06:06 [end_date_ymd] => 2025-04-05 16:06:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:06:06' and `end` < '2025-04-05 16: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-04-05 16:06:19] Production.INFO: count ==1528 [2025-04-05 16:06:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:06:06 - End Time 2025-04-05 16:06:06 [2025-04-05 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841292', 'tblTempUsageDetail_20' ) start [2025-04-05 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841292', 'tblTempUsageDetail_20' ) end [2025-04-05 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841292', 'tblTempVendorCDR_20' ) start [2025-04-05 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841292', 'tblTempVendorCDR_20' ) end [2025-04-05 16:06:20] Production.INFO: ProcessCDR(1,14841292,1,1,2) [2025-04-05 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841292', 'tblTempUsageDetail_20' ) start [2025-04-05 16:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841292', 'tblTempUsageDetail_20' ) end [2025-04-05 16:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:06:24] Production.INFO: ==18260== Releasing lock... [2025-04-05 16:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:06:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:07:06 [end_date_ymd] => 2025-04-05 16:07:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:07:06' and `end` < '2025-04-05 16: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-04-05 16:07:19] Production.INFO: count ==1527 [2025-04-05 16:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:07:06 - End Time 2025-04-05 16:07:06 [2025-04-05 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841297', 'tblTempUsageDetail_20' ) start [2025-04-05 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841297', 'tblTempUsageDetail_20' ) end [2025-04-05 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841297', 'tblTempVendorCDR_20' ) start [2025-04-05 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841297', 'tblTempVendorCDR_20' ) end [2025-04-05 16:07:19] Production.INFO: ProcessCDR(1,14841297,1,1,2) [2025-04-05 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841297', 'tblTempUsageDetail_20' ) start [2025-04-05 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841297', 'tblTempUsageDetail_20' ) end [2025-04-05 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:07:24] Production.INFO: ==18342== Releasing lock... [2025-04-05 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:07:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:08:05 [end_date_ymd] => 2025-04-05 16:08:05 [RateCDR] => 1 ) [2025-04-05 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:08:05' and `end` < '2025-04-05 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:08:18] Production.INFO: count ==1531 [2025-04-05 16:08:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:08:05 - End Time 2025-04-05 16:08:05 [2025-04-05 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841302', 'tblTempUsageDetail_20' ) start [2025-04-05 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841302', 'tblTempUsageDetail_20' ) end [2025-04-05 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841302', 'tblTempVendorCDR_20' ) start [2025-04-05 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841302', 'tblTempVendorCDR_20' ) end [2025-04-05 16:08:19] Production.INFO: ProcessCDR(1,14841302,1,1,2) [2025-04-05 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841302', 'tblTempUsageDetail_20' ) start [2025-04-05 16:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841302', 'tblTempUsageDetail_20' ) end [2025-04-05 16:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:08:24] Production.INFO: ==18418== Releasing lock... [2025-04-05 16:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:08:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:09:06 [end_date_ymd] => 2025-04-05 16:09:06 [RateCDR] => 1 ) [2025-04-05 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:09:06' and `end` < '2025-04-05 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:09:19] Production.INFO: count ==1522 [2025-04-05 16:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:09:06 - End Time 2025-04-05 16:09:06 [2025-04-05 16:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841307', 'tblTempUsageDetail_20' ) start [2025-04-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841307', 'tblTempUsageDetail_20' ) end [2025-04-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841307', 'tblTempVendorCDR_20' ) start [2025-04-05 16:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841307', 'tblTempVendorCDR_20' ) end [2025-04-05 16:09:19] Production.INFO: ProcessCDR(1,14841307,1,1,2) [2025-04-05 16:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841307', 'tblTempUsageDetail_20' ) start [2025-04-05 16:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841307', 'tblTempUsageDetail_20' ) end [2025-04-05 16:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:09:24] Production.INFO: ==18495== Releasing lock... [2025-04-05 16:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:09:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:10:06 [end_date_ymd] => 2025-04-05 16:10:06 [RateCDR] => 1 ) [2025-04-05 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:10:06' and `end` < '2025-04-05 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:10:19] Production.INFO: count ==1527 [2025-04-05 16:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:10:06 - End Time 2025-04-05 16:10:06 [2025-04-05 16:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841313', 'tblTempUsageDetail_20' ) start [2025-04-05 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841313', 'tblTempUsageDetail_20' ) end [2025-04-05 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841313', 'tblTempVendorCDR_20' ) start [2025-04-05 16:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841313', 'tblTempVendorCDR_20' ) end [2025-04-05 16:10:20] Production.INFO: ProcessCDR(1,14841313,1,1,2) [2025-04-05 16:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841313', 'tblTempUsageDetail_20' ) start [2025-04-05 16:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841313', 'tblTempUsageDetail_20' ) end [2025-04-05 16:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:10:25] Production.INFO: ==18578== Releasing lock... [2025-04-05 16:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:10:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:11:05 [end_date_ymd] => 2025-04-05 16:11:05 [RateCDR] => 1 ) [2025-04-05 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:11:05' and `end` < '2025-04-05 16: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-04-05 16:11:18] Production.INFO: count ==1545 [2025-04-05 16:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:11:05 - End Time 2025-04-05 16:11:05 [2025-04-05 16:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841318', 'tblTempUsageDetail_20' ) start [2025-04-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841318', 'tblTempUsageDetail_20' ) end [2025-04-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841318', 'tblTempVendorCDR_20' ) start [2025-04-05 16:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841318', 'tblTempVendorCDR_20' ) end [2025-04-05 16:11:19] Production.INFO: ProcessCDR(1,14841318,1,1,2) [2025-04-05 16:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841318', 'tblTempUsageDetail_20' ) start [2025-04-05 16:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841318', 'tblTempUsageDetail_20' ) end [2025-04-05 16:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:11:24] Production.INFO: ==18660== Releasing lock... [2025-04-05 16:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:11:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:12:06 [end_date_ymd] => 2025-04-05 16:12:06 [RateCDR] => 1 ) [2025-04-05 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:12:06' and `end` < '2025-04-05 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:12:19] Production.INFO: count ==1552 [2025-04-05 16:12:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:12:06 - End Time 2025-04-05 16:12:06 [2025-04-05 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841323', 'tblTempUsageDetail_20' ) start [2025-04-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841323', 'tblTempUsageDetail_20' ) end [2025-04-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841323', 'tblTempVendorCDR_20' ) start [2025-04-05 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841323', 'tblTempVendorCDR_20' ) end [2025-04-05 16:12:20] Production.INFO: ProcessCDR(1,14841323,1,1,2) [2025-04-05 16:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841323', 'tblTempUsageDetail_20' ) start [2025-04-05 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841323', 'tblTempUsageDetail_20' ) end [2025-04-05 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:12:25] Production.INFO: ==18781== Releasing lock... [2025-04-05 16:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:12:25] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:13:05 [end_date_ymd] => 2025-04-05 16:13:05 [RateCDR] => 1 ) [2025-04-05 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:13:05' and `end` < '2025-04-05 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:13:18] Production.INFO: count ==1559 [2025-04-05 16:13:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:13:05 - End Time 2025-04-05 16:13:05 [2025-04-05 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841328', 'tblTempUsageDetail_20' ) start [2025-04-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841328', 'tblTempUsageDetail_20' ) end [2025-04-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841328', 'tblTempVendorCDR_20' ) start [2025-04-05 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841328', 'tblTempVendorCDR_20' ) end [2025-04-05 16:13:18] Production.INFO: ProcessCDR(1,14841328,1,1,2) [2025-04-05 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841328', 'tblTempUsageDetail_20' ) start [2025-04-05 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841328', 'tblTempUsageDetail_20' ) end [2025-04-05 16:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:13:23] Production.INFO: ==18860== Releasing lock... [2025-04-05 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:13:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:14:06 [end_date_ymd] => 2025-04-05 16:14:06 [RateCDR] => 1 ) [2025-04-05 16:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:14:06' and `end` < '2025-04-05 16:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:14:19] Production.INFO: count ==1558 [2025-04-05 16:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:14:06 - End Time 2025-04-05 16:14:06 [2025-04-05 16:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841333', 'tblTempUsageDetail_20' ) start [2025-04-05 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841333', 'tblTempUsageDetail_20' ) end [2025-04-05 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841333', 'tblTempVendorCDR_20' ) start [2025-04-05 16:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841333', 'tblTempVendorCDR_20' ) end [2025-04-05 16:14:19] Production.INFO: ProcessCDR(1,14841333,1,1,2) [2025-04-05 16:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841333', 'tblTempUsageDetail_20' ) start [2025-04-05 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841333', 'tblTempUsageDetail_20' ) end [2025-04-05 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:14:24] Production.INFO: ==18939== Releasing lock... [2025-04-05 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:14:24] Production.INFO: 40 MB #Memory Used# [2025-04-05 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:15:05 [end_date_ymd] => 2025-04-05 16:15:05 [RateCDR] => 1 ) [2025-04-05 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:15:05' and `end` < '2025-04-05 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:15:18] Production.INFO: count ==1559 [2025-04-05 16:15:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:15:05 - End Time 2025-04-05 16:15:05 [2025-04-05 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841338', 'tblTempUsageDetail_20' ) start [2025-04-05 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841338', 'tblTempUsageDetail_20' ) end [2025-04-05 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841338', 'tblTempVendorCDR_20' ) start [2025-04-05 16:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841338', 'tblTempVendorCDR_20' ) end [2025-04-05 16:15:19] Production.INFO: ProcessCDR(1,14841338,1,1,2) [2025-04-05 16:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841338', 'tblTempUsageDetail_20' ) start [2025-04-05 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841338', 'tblTempUsageDetail_20' ) end [2025-04-05 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:15:23] Production.INFO: ==19022== Releasing lock... [2025-04-05 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:15:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:16:05 [end_date_ymd] => 2025-04-05 16:16:05 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:16:05' and `end` < '2025-04-05 16: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-04-05 16:16:18] Production.INFO: count ==1563 [2025-04-05 16:16:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:16:05 - End Time 2025-04-05 16:16:05 [2025-04-05 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841343', 'tblTempUsageDetail_20' ) start [2025-04-05 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841343', 'tblTempUsageDetail_20' ) end [2025-04-05 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841343', 'tblTempVendorCDR_20' ) start [2025-04-05 16:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841343', 'tblTempVendorCDR_20' ) end [2025-04-05 16:16:19] Production.INFO: ProcessCDR(1,14841343,1,1,2) [2025-04-05 16:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841343', 'tblTempUsageDetail_20' ) start [2025-04-05 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841343', 'tblTempUsageDetail_20' ) end [2025-04-05 16:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:16:23] Production.INFO: ==19117== Releasing lock... [2025-04-05 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:16:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:17:05 [end_date_ymd] => 2025-04-05 16:17:05 [RateCDR] => 1 ) [2025-04-05 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:17:05' and `end` < '2025-04-05 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:17:18] Production.INFO: count ==1565 [2025-04-05 16:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:17:05 - End Time 2025-04-05 16:17:05 [2025-04-05 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841348', 'tblTempUsageDetail_20' ) start [2025-04-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841348', 'tblTempUsageDetail_20' ) end [2025-04-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841348', 'tblTempVendorCDR_20' ) start [2025-04-05 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841348', 'tblTempVendorCDR_20' ) end [2025-04-05 16:17:18] Production.INFO: ProcessCDR(1,14841348,1,1,2) [2025-04-05 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841348', 'tblTempUsageDetail_20' ) start [2025-04-05 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841348', 'tblTempUsageDetail_20' ) end [2025-04-05 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:17:23] Production.INFO: ==19199== Releasing lock... [2025-04-05 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:17:23] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:18:06 [end_date_ymd] => 2025-04-05 16:18:06 [RateCDR] => 1 ) [2025-04-05 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:18:06' and `end` < '2025-04-05 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:18:18] Production.INFO: count ==1571 [2025-04-05 16:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:18:06 - End Time 2025-04-05 16:18:06 [2025-04-05 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841353', 'tblTempUsageDetail_20' ) start [2025-04-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841353', 'tblTempUsageDetail_20' ) end [2025-04-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841353', 'tblTempVendorCDR_20' ) start [2025-04-05 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841353', 'tblTempVendorCDR_20' ) end [2025-04-05 16:18:19] Production.INFO: ProcessCDR(1,14841353,1,1,2) [2025-04-05 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841353', 'tblTempUsageDetail_20' ) start [2025-04-05 16:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841353', 'tblTempUsageDetail_20' ) end [2025-04-05 16:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:18:24] Production.INFO: ==19281== Releasing lock... [2025-04-05 16:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:18:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-05 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:19:04 [end_date_ymd] => 2025-04-05 16:19:04 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:19:04' and `end` < '2025-04-05 16: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-04-05 16:19:17] Production.INFO: count ==1570 [2025-04-05 16:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:19:04 - End Time 2025-04-05 16:19:04 [2025-04-05 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841358', 'tblTempUsageDetail_20' ) start [2025-04-05 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841358', 'tblTempUsageDetail_20' ) end [2025-04-05 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841358', 'tblTempVendorCDR_20' ) start [2025-04-05 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841358', 'tblTempVendorCDR_20' ) end [2025-04-05 16:19:18] Production.INFO: ProcessCDR(1,14841358,1,1,2) [2025-04-05 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841358', 'tblTempUsageDetail_20' ) start [2025-04-05 16:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841358', 'tblTempUsageDetail_20' ) end [2025-04-05 16:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:19:23] Production.INFO: ==19360== Releasing lock... [2025-04-05 16:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:19:23] Production.INFO: 40 MB #Memory Used# [2025-04-05 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:20:06 [end_date_ymd] => 2025-04-05 16:20:06 [RateCDR] => 1 ) [2025-04-05 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:20:06' and `end` < '2025-04-05 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:20:19] Production.INFO: count ==1578 [2025-04-05 16:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:20:06 - End Time 2025-04-05 16:20:06 [2025-04-05 16:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841364', 'tblTempUsageDetail_20' ) start [2025-04-05 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841364', 'tblTempUsageDetail_20' ) end [2025-04-05 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841364', 'tblTempVendorCDR_20' ) start [2025-04-05 16:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841364', 'tblTempVendorCDR_20' ) end [2025-04-05 16:20:20] Production.INFO: ProcessCDR(1,14841364,1,1,2) [2025-04-05 16:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841364', 'tblTempUsageDetail_20' ) start [2025-04-05 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841364', 'tblTempUsageDetail_20' ) end [2025-04-05 16:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:20:25] Production.INFO: ==19448== Releasing lock... [2025-04-05 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:20:25] Production.INFO: 40 MB #Memory Used# [2025-04-05 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:21:05 [end_date_ymd] => 2025-04-05 16:21:05 [RateCDR] => 1 ) [2025-04-05 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:21:05' and `end` < '2025-04-05 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:21:18] Production.INFO: count ==1583 [2025-04-05 16:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:21:05 - End Time 2025-04-05 16:21:05 [2025-04-05 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841369', 'tblTempUsageDetail_20' ) start [2025-04-05 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841369', 'tblTempUsageDetail_20' ) end [2025-04-05 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841369', 'tblTempVendorCDR_20' ) start [2025-04-05 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841369', 'tblTempVendorCDR_20' ) end [2025-04-05 16:21:19] Production.INFO: ProcessCDR(1,14841369,1,1,2) [2025-04-05 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841369', 'tblTempUsageDetail_20' ) start [2025-04-05 16:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841369', 'tblTempUsageDetail_20' ) end [2025-04-05 16:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:21:24] Production.INFO: ==19535== Releasing lock... [2025-04-05 16:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:21:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:22:05 [end_date_ymd] => 2025-04-05 16:22:05 [RateCDR] => 1 ) [2025-04-05 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:22:05' and `end` < '2025-04-05 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:22:18] Production.INFO: count ==1604 [2025-04-05 16:22:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:22:05 - End Time 2025-04-05 16:22:05 [2025-04-05 16:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841374', 'tblTempUsageDetail_20' ) start [2025-04-05 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841374', 'tblTempUsageDetail_20' ) end [2025-04-05 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841374', 'tblTempVendorCDR_20' ) start [2025-04-05 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841374', 'tblTempVendorCDR_20' ) end [2025-04-05 16:22:19] Production.INFO: ProcessCDR(1,14841374,1,1,2) [2025-04-05 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841374', 'tblTempUsageDetail_20' ) start [2025-04-05 16:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841374', 'tblTempUsageDetail_20' ) end [2025-04-05 16:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:22:24] Production.INFO: ==19616== Releasing lock... [2025-04-05 16:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:22:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-05 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:23:05 [end_date_ymd] => 2025-04-05 16:23:05 [RateCDR] => 1 ) [2025-04-05 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:23:05' and `end` < '2025-04-05 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:23:19] Production.INFO: count ==1613 [2025-04-05 16:23:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:23:05 - End Time 2025-04-05 16:23:05 [2025-04-05 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841379', 'tblTempUsageDetail_20' ) start [2025-04-05 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841379', 'tblTempUsageDetail_20' ) end [2025-04-05 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841379', 'tblTempVendorCDR_20' ) start [2025-04-05 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841379', 'tblTempVendorCDR_20' ) end [2025-04-05 16:23:19] Production.INFO: ProcessCDR(1,14841379,1,1,2) [2025-04-05 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841379', 'tblTempUsageDetail_20' ) start [2025-04-05 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841379', 'tblTempUsageDetail_20' ) end [2025-04-05 16:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:23:24] Production.INFO: ==19698== Releasing lock... [2025-04-05 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:23:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:24:05 [end_date_ymd] => 2025-04-05 16:24:05 [RateCDR] => 1 ) [2025-04-05 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:24:05' and `end` < '2025-04-05 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:24:18] Production.INFO: count ==1613 [2025-04-05 16:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:24:05 - End Time 2025-04-05 16:24:05 [2025-04-05 16:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841384', 'tblTempUsageDetail_20' ) start [2025-04-05 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841384', 'tblTempUsageDetail_20' ) end [2025-04-05 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841384', 'tblTempVendorCDR_20' ) start [2025-04-05 16:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841384', 'tblTempVendorCDR_20' ) end [2025-04-05 16:24:19] Production.INFO: ProcessCDR(1,14841384,1,1,2) [2025-04-05 16:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841384', 'tblTempUsageDetail_20' ) start [2025-04-05 16:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841384', 'tblTempUsageDetail_20' ) end [2025-04-05 16:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:24:23] Production.INFO: ==19776== Releasing lock... [2025-04-05 16:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:24:23] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:25:05 [end_date_ymd] => 2025-04-05 16:25:05 [RateCDR] => 1 ) [2025-04-05 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:25:05' and `end` < '2025-04-05 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:25:18] Production.INFO: count ==1624 [2025-04-05 16:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:25:05 - End Time 2025-04-05 16:25:05 [2025-04-05 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841389', 'tblTempUsageDetail_20' ) start [2025-04-05 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841389', 'tblTempUsageDetail_20' ) end [2025-04-05 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841389', 'tblTempVendorCDR_20' ) start [2025-04-05 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841389', 'tblTempVendorCDR_20' ) end [2025-04-05 16:25:19] Production.INFO: ProcessCDR(1,14841389,1,1,2) [2025-04-05 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841389', 'tblTempUsageDetail_20' ) start [2025-04-05 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841389', 'tblTempUsageDetail_20' ) end [2025-04-05 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:25:24] Production.INFO: ==19854== Releasing lock... [2025-04-05 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:25:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:26:05 [end_date_ymd] => 2025-04-05 16:26:05 [RateCDR] => 1 ) [2025-04-05 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:26:05' and `end` < '2025-04-05 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:26:18] Production.INFO: count ==1631 [2025-04-05 16:26:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:26:05 - End Time 2025-04-05 16:26:05 [2025-04-05 16:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841394', 'tblTempUsageDetail_20' ) start [2025-04-05 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841394', 'tblTempUsageDetail_20' ) end [2025-04-05 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841394', 'tblTempVendorCDR_20' ) start [2025-04-05 16:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841394', 'tblTempVendorCDR_20' ) end [2025-04-05 16:26:19] Production.INFO: ProcessCDR(1,14841394,1,1,2) [2025-04-05 16:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841394', 'tblTempUsageDetail_20' ) start [2025-04-05 16:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841394', 'tblTempUsageDetail_20' ) end [2025-04-05 16:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:26:24] Production.INFO: ==19937== Releasing lock... [2025-04-05 16:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:26:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:27:06 [end_date_ymd] => 2025-04-05 16:27:06 [RateCDR] => 1 ) [2025-04-05 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:27:06' and `end` < '2025-04-05 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:27:19] Production.INFO: count ==1639 [2025-04-05 16:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:27:06 - End Time 2025-04-05 16:27:06 [2025-04-05 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841399', 'tblTempUsageDetail_20' ) start [2025-04-05 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841399', 'tblTempUsageDetail_20' ) end [2025-04-05 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841399', 'tblTempVendorCDR_20' ) start [2025-04-05 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841399', 'tblTempVendorCDR_20' ) end [2025-04-05 16:27:19] Production.INFO: ProcessCDR(1,14841399,1,1,2) [2025-04-05 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841399', 'tblTempUsageDetail_20' ) start [2025-04-05 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841399', 'tblTempUsageDetail_20' ) end [2025-04-05 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:27:24] Production.INFO: ==20054== Releasing lock... [2025-04-05 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:27:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-05 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:28:05 [end_date_ymd] => 2025-04-05 16:28:05 [RateCDR] => 1 ) [2025-04-05 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:28:05' and `end` < '2025-04-05 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:28:18] Production.INFO: count ==1645 [2025-04-05 16:28:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:28:05 - End Time 2025-04-05 16:28:05 [2025-04-05 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841404', 'tblTempUsageDetail_20' ) start [2025-04-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841404', 'tblTempUsageDetail_20' ) end [2025-04-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841404', 'tblTempVendorCDR_20' ) start [2025-04-05 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841404', 'tblTempVendorCDR_20' ) end [2025-04-05 16:28:18] Production.INFO: ProcessCDR(1,14841404,1,1,2) [2025-04-05 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841404', 'tblTempUsageDetail_20' ) start [2025-04-05 16:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841404', 'tblTempUsageDetail_20' ) end [2025-04-05 16:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:28:23] Production.INFO: ==20143== Releasing lock... [2025-04-05 16:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-05 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:29:05 [end_date_ymd] => 2025-04-05 16:29:05 [RateCDR] => 1 ) [2025-04-05 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:29:05' and `end` < '2025-04-05 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:29:18] Production.INFO: count ==1644 [2025-04-05 16:29:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:29:05 - End Time 2025-04-05 16:29:05 [2025-04-05 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841409', 'tblTempUsageDetail_20' ) start [2025-04-05 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841409', 'tblTempUsageDetail_20' ) end [2025-04-05 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841409', 'tblTempVendorCDR_20' ) start [2025-04-05 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841409', 'tblTempVendorCDR_20' ) end [2025-04-05 16:29:18] Production.INFO: ProcessCDR(1,14841409,1,1,2) [2025-04-05 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841409', 'tblTempUsageDetail_20' ) start [2025-04-05 16:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841409', 'tblTempUsageDetail_20' ) end [2025-04-05 16:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:29:24] Production.INFO: ==20221== Releasing lock... [2025-04-05 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:29:24] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:30:06 [end_date_ymd] => 2025-04-05 16:30:06 [RateCDR] => 1 ) [2025-04-05 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:30:06' and `end` < '2025-04-05 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:30:19] Production.INFO: count ==1645 [2025-04-05 16:30:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:30:06 - End Time 2025-04-05 16:30:06 [2025-04-05 16:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841415', 'tblTempUsageDetail_20' ) start [2025-04-05 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841415', 'tblTempUsageDetail_20' ) end [2025-04-05 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841415', 'tblTempVendorCDR_20' ) start [2025-04-05 16:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841415', 'tblTempVendorCDR_20' ) end [2025-04-05 16:30:20] Production.INFO: ProcessCDR(1,14841415,1,1,2) [2025-04-05 16:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841415', 'tblTempUsageDetail_20' ) start [2025-04-05 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841415', 'tblTempUsageDetail_20' ) end [2025-04-05 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:30:25] Production.INFO: ==20298== Releasing lock... [2025-04-05 16:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:30:25] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:31:05 [end_date_ymd] => 2025-04-05 16:31:05 [RateCDR] => 1 ) [2025-04-05 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:31:05' and `end` < '2025-04-05 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:31:18] Production.INFO: count ==1673 [2025-04-05 16:31:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:31:05 - End Time 2025-04-05 16:31:05 [2025-04-05 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841420', 'tblTempUsageDetail_20' ) start [2025-04-05 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841420', 'tblTempUsageDetail_20' ) end [2025-04-05 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841420', 'tblTempVendorCDR_20' ) start [2025-04-05 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841420', 'tblTempVendorCDR_20' ) end [2025-04-05 16:31:19] Production.INFO: ProcessCDR(1,14841420,1,1,2) [2025-04-05 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841420', 'tblTempUsageDetail_20' ) start [2025-04-05 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841420', 'tblTempUsageDetail_20' ) end [2025-04-05 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:31:23] Production.INFO: ==20386== Releasing lock... [2025-04-05 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:31:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:32:05 [end_date_ymd] => 2025-04-05 16:32:05 [RateCDR] => 1 ) [2025-04-05 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:32:05' and `end` < '2025-04-05 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:32:18] Production.INFO: count ==1675 [2025-04-05 16:32:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:32:05 - End Time 2025-04-05 16:32:05 [2025-04-05 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841425', 'tblTempUsageDetail_20' ) start [2025-04-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841425', 'tblTempUsageDetail_20' ) end [2025-04-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841425', 'tblTempVendorCDR_20' ) start [2025-04-05 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841425', 'tblTempVendorCDR_20' ) end [2025-04-05 16:32:18] Production.INFO: ProcessCDR(1,14841425,1,1,2) [2025-04-05 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841425', 'tblTempUsageDetail_20' ) start [2025-04-05 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841425', 'tblTempUsageDetail_20' ) end [2025-04-05 16:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:32:23] Production.INFO: ==20462== Releasing lock... [2025-04-05 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:32:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-05 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:33:05 [end_date_ymd] => 2025-04-05 16:33:05 [RateCDR] => 1 ) [2025-04-05 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:33:05' and `end` < '2025-04-05 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:33:18] Production.INFO: count ==1678 [2025-04-05 16:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:33:05 - End Time 2025-04-05 16:33:05 [2025-04-05 16:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841430', 'tblTempUsageDetail_20' ) start [2025-04-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841430', 'tblTempUsageDetail_20' ) end [2025-04-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841430', 'tblTempVendorCDR_20' ) start [2025-04-05 16:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841430', 'tblTempVendorCDR_20' ) end [2025-04-05 16:33:19] Production.INFO: ProcessCDR(1,14841430,1,1,2) [2025-04-05 16:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841430', 'tblTempUsageDetail_20' ) start [2025-04-05 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841430', 'tblTempUsageDetail_20' ) end [2025-04-05 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:33:22] Production.INFO: ==20542== Releasing lock... [2025-04-05 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-05 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:34:06 [end_date_ymd] => 2025-04-05 16:34:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:34:06' and `end` < '2025-04-05 16: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-04-05 16:34:19] Production.INFO: count ==1678 [2025-04-05 16:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:34:06 - End Time 2025-04-05 16:34:06 [2025-04-05 16:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841435', 'tblTempUsageDetail_20' ) start [2025-04-05 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841435', 'tblTempUsageDetail_20' ) end [2025-04-05 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841435', 'tblTempVendorCDR_20' ) start [2025-04-05 16:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841435', 'tblTempVendorCDR_20' ) end [2025-04-05 16:34:19] Production.INFO: ProcessCDR(1,14841435,1,1,2) [2025-04-05 16:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841435', 'tblTempUsageDetail_20' ) start [2025-04-05 16:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841435', 'tblTempUsageDetail_20' ) end [2025-04-05 16:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:34:24] Production.INFO: ==20623== Releasing lock... [2025-04-05 16:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:34:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-05 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:35:05 [end_date_ymd] => 2025-04-05 16:35:05 [RateCDR] => 1 ) [2025-04-05 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:35:05' and `end` < '2025-04-05 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:35:18] Production.INFO: count ==1684 [2025-04-05 16:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:35:05 - End Time 2025-04-05 16:35:05 [2025-04-05 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841440', 'tblTempUsageDetail_20' ) start [2025-04-05 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841440', 'tblTempUsageDetail_20' ) end [2025-04-05 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841440', 'tblTempVendorCDR_20' ) start [2025-04-05 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841440', 'tblTempVendorCDR_20' ) end [2025-04-05 16:35:19] Production.INFO: ProcessCDR(1,14841440,1,1,2) [2025-04-05 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841440', 'tblTempUsageDetail_20' ) start [2025-04-05 16:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841440', 'tblTempUsageDetail_20' ) end [2025-04-05 16:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:35:24] Production.INFO: ==20702== Releasing lock... [2025-04-05 16:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:35:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:36:05 [end_date_ymd] => 2025-04-05 16:36:05 [RateCDR] => 1 ) [2025-04-05 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:36:05' and `end` < '2025-04-05 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:36:18] Production.INFO: count ==1709 [2025-04-05 16:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:36:05 - End Time 2025-04-05 16:36:05 [2025-04-05 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841445', 'tblTempUsageDetail_20' ) start [2025-04-05 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841445', 'tblTempUsageDetail_20' ) end [2025-04-05 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841445', 'tblTempVendorCDR_20' ) start [2025-04-05 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841445', 'tblTempVendorCDR_20' ) end [2025-04-05 16:36:19] Production.INFO: ProcessCDR(1,14841445,1,1,2) [2025-04-05 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841445', 'tblTempUsageDetail_20' ) start [2025-04-05 16:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841445', 'tblTempUsageDetail_20' ) end [2025-04-05 16:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:36:24] Production.INFO: ==20777== Releasing lock... [2025-04-05 16:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:36:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:37:05 [end_date_ymd] => 2025-04-05 16:37:05 [RateCDR] => 1 ) [2025-04-05 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:37:05' and `end` < '2025-04-05 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:37:18] Production.INFO: count ==1709 [2025-04-05 16:37:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:37:05 - End Time 2025-04-05 16:37:05 [2025-04-05 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841450', 'tblTempUsageDetail_20' ) start [2025-04-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841450', 'tblTempUsageDetail_20' ) end [2025-04-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841450', 'tblTempVendorCDR_20' ) start [2025-04-05 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841450', 'tblTempVendorCDR_20' ) end [2025-04-05 16:37:18] Production.INFO: ProcessCDR(1,14841450,1,1,2) [2025-04-05 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841450', 'tblTempUsageDetail_20' ) start [2025-04-05 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841450', 'tblTempUsageDetail_20' ) end [2025-04-05 16:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:37:22] Production.INFO: ==20860== Releasing lock... [2025-04-05 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:37:22] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:38:05 [end_date_ymd] => 2025-04-05 16:38:05 [RateCDR] => 1 ) [2025-04-05 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:38:05' and `end` < '2025-04-05 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:38:18] Production.INFO: count ==1708 [2025-04-05 16:38:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:38:05 - End Time 2025-04-05 16:38:05 [2025-04-05 16:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841455', 'tblTempUsageDetail_20' ) start [2025-04-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841455', 'tblTempUsageDetail_20' ) end [2025-04-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841455', 'tblTempVendorCDR_20' ) start [2025-04-05 16:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841455', 'tblTempVendorCDR_20' ) end [2025-04-05 16:38:19] Production.INFO: ProcessCDR(1,14841455,1,1,2) [2025-04-05 16:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841455', 'tblTempUsageDetail_20' ) start [2025-04-05 16:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841455', 'tblTempUsageDetail_20' ) end [2025-04-05 16:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:38:23] Production.INFO: ==20940== Releasing lock... [2025-04-05 16:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:38:23] Production.INFO: 40.75 MB #Memory Used# [2025-04-05 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:39:05 [end_date_ymd] => 2025-04-05 16:39:05 [RateCDR] => 1 ) [2025-04-05 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:39:05' and `end` < '2025-04-05 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:39:18] Production.INFO: count ==1709 [2025-04-05 16:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:39:05 - End Time 2025-04-05 16:39:05 [2025-04-05 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841460', 'tblTempUsageDetail_20' ) start [2025-04-05 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841460', 'tblTempUsageDetail_20' ) end [2025-04-05 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841460', 'tblTempVendorCDR_20' ) start [2025-04-05 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841460', 'tblTempVendorCDR_20' ) end [2025-04-05 16:39:19] Production.INFO: ProcessCDR(1,14841460,1,1,2) [2025-04-05 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841460', 'tblTempUsageDetail_20' ) start [2025-04-05 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841460', 'tblTempUsageDetail_20' ) end [2025-04-05 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:39:22] Production.INFO: ==21020== Releasing lock... [2025-04-05 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:39:22] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:40:06 [end_date_ymd] => 2025-04-05 16:40:06 [RateCDR] => 1 ) [2025-04-05 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:40:06' and `end` < '2025-04-05 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:40:19] Production.INFO: count ==1720 [2025-04-05 16:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 13:40:06 - End Time 2025-04-05 16:40:06 [2025-04-05 16:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841465', 'tblTempUsageDetail_20' ) start [2025-04-05 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841465', 'tblTempUsageDetail_20' ) end [2025-04-05 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841465', 'tblTempVendorCDR_20' ) start [2025-04-05 16:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841465', 'tblTempVendorCDR_20' ) end [2025-04-05 16:40:20] Production.INFO: ProcessCDR(1,14841465,1,1,2) [2025-04-05 16:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841465', 'tblTempUsageDetail_20' ) start [2025-04-05 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841465', 'tblTempUsageDetail_20' ) end [2025-04-05 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:40:25] Production.INFO: ==21107== Releasing lock... [2025-04-05 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:40:25] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:41:06 [end_date_ymd] => 2025-04-05 16:41:06 [RateCDR] => 1 ) [2025-04-05 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:41:06' and `end` < '2025-04-05 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:41:19] Production.INFO: count ==1727 [2025-04-05 16:41:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:41:06 - End Time 2025-04-05 16:41:06 [2025-04-05 16:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841471', 'tblTempUsageDetail_20' ) start [2025-04-05 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841471', 'tblTempUsageDetail_20' ) end [2025-04-05 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841471', 'tblTempVendorCDR_20' ) start [2025-04-05 16:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841471', 'tblTempVendorCDR_20' ) end [2025-04-05 16:41:19] Production.INFO: ProcessCDR(1,14841471,1,1,2) [2025-04-05 16:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841471', 'tblTempUsageDetail_20' ) start [2025-04-05 16:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841471', 'tblTempUsageDetail_20' ) end [2025-04-05 16:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:41:25] Production.INFO: ==21192== Releasing lock... [2025-04-05 16:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:41:25] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:42:05 [end_date_ymd] => 2025-04-05 16:42:05 [RateCDR] => 1 ) [2025-04-05 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:42:05' and `end` < '2025-04-05 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:42:18] Production.INFO: count ==1740 [2025-04-05 16:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:42:05 - End Time 2025-04-05 16:42:05 [2025-04-05 16:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841476', 'tblTempUsageDetail_20' ) start [2025-04-05 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841476', 'tblTempUsageDetail_20' ) end [2025-04-05 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841476', 'tblTempVendorCDR_20' ) start [2025-04-05 16:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841476', 'tblTempVendorCDR_20' ) end [2025-04-05 16:42:19] Production.INFO: ProcessCDR(1,14841476,1,1,2) [2025-04-05 16:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841476', 'tblTempUsageDetail_20' ) start [2025-04-05 16:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841476', 'tblTempUsageDetail_20' ) end [2025-04-05 16:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:42:24] Production.INFO: ==21273== Releasing lock... [2025-04-05 16:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:42:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:43:05 [end_date_ymd] => 2025-04-05 16:43:05 [RateCDR] => 1 ) [2025-04-05 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:43:05' and `end` < '2025-04-05 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:43:18] Production.INFO: count ==1736 [2025-04-05 16:43:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:43:05 - End Time 2025-04-05 16:43:05 [2025-04-05 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841481', 'tblTempUsageDetail_20' ) start [2025-04-05 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841481', 'tblTempUsageDetail_20' ) end [2025-04-05 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841481', 'tblTempVendorCDR_20' ) start [2025-04-05 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841481', 'tblTempVendorCDR_20' ) end [2025-04-05 16:43:19] Production.INFO: ProcessCDR(1,14841481,1,1,2) [2025-04-05 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841481', 'tblTempUsageDetail_20' ) start [2025-04-05 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841481', 'tblTempUsageDetail_20' ) end [2025-04-05 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:43:24] Production.INFO: ==21393== Releasing lock... [2025-04-05 16:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:43:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:44:05 [end_date_ymd] => 2025-04-05 16:44:05 [RateCDR] => 1 ) [2025-04-05 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:44:05' and `end` < '2025-04-05 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:44:18] Production.INFO: count ==1735 [2025-04-05 16:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:44:05 - End Time 2025-04-05 16:44:05 [2025-04-05 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841486', 'tblTempUsageDetail_20' ) start [2025-04-05 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841486', 'tblTempUsageDetail_20' ) end [2025-04-05 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841486', 'tblTempVendorCDR_20' ) start [2025-04-05 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841486', 'tblTempVendorCDR_20' ) end [2025-04-05 16:44:19] Production.INFO: ProcessCDR(1,14841486,1,1,2) [2025-04-05 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841486', 'tblTempUsageDetail_20' ) start [2025-04-05 16:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841486', 'tblTempUsageDetail_20' ) end [2025-04-05 16:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:44:24] Production.INFO: ==21472== Releasing lock... [2025-04-05 16:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:45:05 [end_date_ymd] => 2025-04-05 16:45:05 [RateCDR] => 1 ) [2025-04-05 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:45:05' and `end` < '2025-04-05 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:45:18] Production.INFO: count ==1734 [2025-04-05 16:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:45:05 - End Time 2025-04-05 16:45:05 [2025-04-05 16:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841491', 'tblTempUsageDetail_20' ) start [2025-04-05 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841491', 'tblTempUsageDetail_20' ) end [2025-04-05 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841491', 'tblTempVendorCDR_20' ) start [2025-04-05 16:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841491', 'tblTempVendorCDR_20' ) end [2025-04-05 16:45:19] Production.INFO: ProcessCDR(1,14841491,1,1,2) [2025-04-05 16:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841491', 'tblTempUsageDetail_20' ) start [2025-04-05 16:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841491', 'tblTempUsageDetail_20' ) end [2025-04-05 16:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:45:24] Production.INFO: ==21551== Releasing lock... [2025-04-05 16:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:45:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:46:05 [end_date_ymd] => 2025-04-05 16:46:05 [RateCDR] => 1 ) [2025-04-05 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:46:05' and `end` < '2025-04-05 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:46:18] Production.INFO: count ==1734 [2025-04-05 16:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:46:05 - End Time 2025-04-05 16:46:05 [2025-04-05 16:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841496', 'tblTempUsageDetail_20' ) start [2025-04-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841496', 'tblTempUsageDetail_20' ) end [2025-04-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841496', 'tblTempVendorCDR_20' ) start [2025-04-05 16:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841496', 'tblTempVendorCDR_20' ) end [2025-04-05 16:46:19] Production.INFO: ProcessCDR(1,14841496,1,1,2) [2025-04-05 16:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841496', 'tblTempUsageDetail_20' ) start [2025-04-05 16:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841496', 'tblTempUsageDetail_20' ) end [2025-04-05 16:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:46:24] Production.INFO: ==21639== Releasing lock... [2025-04-05 16:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:46:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:47:05 [end_date_ymd] => 2025-04-05 16:47:05 [RateCDR] => 1 ) [2025-04-05 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:47:05' and `end` < '2025-04-05 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:47:18] Production.INFO: count ==1748 [2025-04-05 16:47:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:47:05 - End Time 2025-04-05 16:47:05 [2025-04-05 16:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841501', 'tblTempUsageDetail_20' ) start [2025-04-05 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841501', 'tblTempUsageDetail_20' ) end [2025-04-05 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841501', 'tblTempVendorCDR_20' ) start [2025-04-05 16:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841501', 'tblTempVendorCDR_20' ) end [2025-04-05 16:47:19] Production.INFO: ProcessCDR(1,14841501,1,1,2) [2025-04-05 16:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841501', 'tblTempUsageDetail_20' ) start [2025-04-05 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841501', 'tblTempUsageDetail_20' ) end [2025-04-05 16:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:47:24] Production.INFO: ==21717== Releasing lock... [2025-04-05 16:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:48:05 [end_date_ymd] => 2025-04-05 16:48:05 [RateCDR] => 1 ) [2025-04-05 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:48:05' and `end` < '2025-04-05 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:48:18] Production.INFO: count ==1748 [2025-04-05 16:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:48:05 - End Time 2025-04-05 16:48:05 [2025-04-05 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841506', 'tblTempUsageDetail_20' ) start [2025-04-05 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841506', 'tblTempUsageDetail_20' ) end [2025-04-05 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841506', 'tblTempVendorCDR_20' ) start [2025-04-05 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841506', 'tblTempVendorCDR_20' ) end [2025-04-05 16:48:19] Production.INFO: ProcessCDR(1,14841506,1,1,2) [2025-04-05 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841506', 'tblTempUsageDetail_20' ) start [2025-04-05 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841506', 'tblTempUsageDetail_20' ) end [2025-04-05 16:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:48:22] Production.INFO: ==21796== Releasing lock... [2025-04-05 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:48:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:49:05 [end_date_ymd] => 2025-04-05 16:49:05 [RateCDR] => 1 ) [2025-04-05 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:49:05' and `end` < '2025-04-05 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:49:18] Production.INFO: count ==1747 [2025-04-05 16:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:49:05 - End Time 2025-04-05 16:49:05 [2025-04-05 16:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841511', 'tblTempUsageDetail_20' ) start [2025-04-05 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841511', 'tblTempUsageDetail_20' ) end [2025-04-05 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841511', 'tblTempVendorCDR_20' ) start [2025-04-05 16:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841511', 'tblTempVendorCDR_20' ) end [2025-04-05 16:49:19] Production.INFO: ProcessCDR(1,14841511,1,1,2) [2025-04-05 16:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841511', 'tblTempUsageDetail_20' ) start [2025-04-05 16:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841511', 'tblTempUsageDetail_20' ) end [2025-04-05 16:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:49:24] Production.INFO: ==21876== Releasing lock... [2025-04-05 16:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:50:05 [end_date_ymd] => 2025-04-05 16:50:05 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:50:05' and `end` < '2025-04-05 16: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-04-05 16:50:18] Production.INFO: count ==1750 [2025-04-05 16:50:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:50:05 - End Time 2025-04-05 16:50:05 [2025-04-05 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841517', 'tblTempUsageDetail_20' ) start [2025-04-05 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841517', 'tblTempUsageDetail_20' ) end [2025-04-05 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841517', 'tblTempVendorCDR_20' ) start [2025-04-05 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841517', 'tblTempVendorCDR_20' ) end [2025-04-05 16:50:19] Production.INFO: ProcessCDR(1,14841517,1,1,2) [2025-04-05 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841517', 'tblTempUsageDetail_20' ) start [2025-04-05 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841517', 'tblTempUsageDetail_20' ) end [2025-04-05 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:50:22] Production.INFO: ==21966== Releasing lock... [2025-04-05 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:50:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:51:05 [end_date_ymd] => 2025-04-05 16:51:05 [RateCDR] => 1 ) [2025-04-05 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:51:05' and `end` < '2025-04-05 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:51:18] Production.INFO: count ==1765 [2025-04-05 16:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:51:05 - End Time 2025-04-05 16:51:05 [2025-04-05 16:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841522', 'tblTempUsageDetail_20' ) start [2025-04-05 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841522', 'tblTempUsageDetail_20' ) end [2025-04-05 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841522', 'tblTempVendorCDR_20' ) start [2025-04-05 16:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841522', 'tblTempVendorCDR_20' ) end [2025-04-05 16:51:19] Production.INFO: ProcessCDR(1,14841522,1,1,2) [2025-04-05 16:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841522', 'tblTempUsageDetail_20' ) start [2025-04-05 16:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841522', 'tblTempUsageDetail_20' ) end [2025-04-05 16:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:51:24] Production.INFO: ==22046== Releasing lock... [2025-04-05 16:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:51:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:52:06 [end_date_ymd] => 2025-04-05 16:52:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:52:06' and `end` < '2025-04-05 16: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-04-05 16:52:19] Production.INFO: count ==1760 [2025-04-05 16:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:52:06 - End Time 2025-04-05 16:52:06 [2025-04-05 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841527', 'tblTempUsageDetail_20' ) start [2025-04-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841527', 'tblTempUsageDetail_20' ) end [2025-04-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841527', 'tblTempVendorCDR_20' ) start [2025-04-05 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841527', 'tblTempVendorCDR_20' ) end [2025-04-05 16:52:19] Production.INFO: ProcessCDR(1,14841527,1,1,2) [2025-04-05 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841527', 'tblTempUsageDetail_20' ) start [2025-04-05 16:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841527', 'tblTempUsageDetail_20' ) end [2025-04-05 16:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:52:23] Production.INFO: ==22122== Releasing lock... [2025-04-05 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:52:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:53:05 [end_date_ymd] => 2025-04-05 16:53:05 [RateCDR] => 1 ) [2025-04-05 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:53:05' and `end` < '2025-04-05 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:53:18] Production.INFO: count ==1751 [2025-04-05 16:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:53:05 - End Time 2025-04-05 16:53:05 [2025-04-05 16:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841532', 'tblTempUsageDetail_20' ) start [2025-04-05 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841532', 'tblTempUsageDetail_20' ) end [2025-04-05 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841532', 'tblTempVendorCDR_20' ) start [2025-04-05 16:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841532', 'tblTempVendorCDR_20' ) end [2025-04-05 16:53:19] Production.INFO: ProcessCDR(1,14841532,1,1,2) [2025-04-05 16:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841532', 'tblTempUsageDetail_20' ) start [2025-04-05 16:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841532', 'tblTempUsageDetail_20' ) end [2025-04-05 16:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:53:24] Production.INFO: ==22203== Releasing lock... [2025-04-05 16:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:53:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:54:05 [end_date_ymd] => 2025-04-05 16:54:05 [RateCDR] => 1 ) [2025-04-05 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:54:05' and `end` < '2025-04-05 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:54:18] Production.INFO: count ==1737 [2025-04-05 16:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:54:05 - End Time 2025-04-05 16:54:05 [2025-04-05 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841537', 'tblTempUsageDetail_20' ) start [2025-04-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841537', 'tblTempUsageDetail_20' ) end [2025-04-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841537', 'tblTempVendorCDR_20' ) start [2025-04-05 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841537', 'tblTempVendorCDR_20' ) end [2025-04-05 16:54:18] Production.INFO: ProcessCDR(1,14841537,1,1,2) [2025-04-05 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841537', 'tblTempUsageDetail_20' ) start [2025-04-05 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841537', 'tblTempUsageDetail_20' ) end [2025-04-05 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:54:23] Production.INFO: ==22289== Releasing lock... [2025-04-05 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:54:23] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:55:05 [end_date_ymd] => 2025-04-05 16:55:05 [RateCDR] => 1 ) [2025-04-05 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:55:05' and `end` < '2025-04-05 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:55:18] Production.INFO: count ==1738 [2025-04-05 16:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:55:05 - End Time 2025-04-05 16:55:05 [2025-04-05 16:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841542', 'tblTempUsageDetail_20' ) start [2025-04-05 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841542', 'tblTempUsageDetail_20' ) end [2025-04-05 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841542', 'tblTempVendorCDR_20' ) start [2025-04-05 16:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841542', 'tblTempVendorCDR_20' ) end [2025-04-05 16:55:19] Production.INFO: ProcessCDR(1,14841542,1,1,2) [2025-04-05 16:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841542', 'tblTempUsageDetail_20' ) start [2025-04-05 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841542', 'tblTempUsageDetail_20' ) end [2025-04-05 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:55:24] Production.INFO: ==22363== Releasing lock... [2025-04-05 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:55:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:56:06 [end_date_ymd] => 2025-04-05 16:56:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:56:06' and `end` < '2025-04-05 16: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-04-05 16:56:19] Production.INFO: count ==1738 [2025-04-05 16:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:56:06 - End Time 2025-04-05 16:56:06 [2025-04-05 16:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841547', 'tblTempUsageDetail_20' ) start [2025-04-05 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841547', 'tblTempUsageDetail_20' ) end [2025-04-05 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841547', 'tblTempVendorCDR_20' ) start [2025-04-05 16:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841547', 'tblTempVendorCDR_20' ) end [2025-04-05 16:56:19] Production.INFO: ProcessCDR(1,14841547,1,1,2) [2025-04-05 16:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841547', 'tblTempUsageDetail_20' ) start [2025-04-05 16:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841547', 'tblTempUsageDetail_20' ) end [2025-04-05 16:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:56:24] Production.INFO: ==22445== Releasing lock... [2025-04-05 16:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:56:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:57:05 [end_date_ymd] => 2025-04-05 16:57:05 [RateCDR] => 1 ) [2025-04-05 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:57:05' and `end` < '2025-04-05 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:57:18] Production.INFO: count ==1741 [2025-04-05 16:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:57:05 - End Time 2025-04-05 16:57:05 [2025-04-05 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841552', 'tblTempUsageDetail_20' ) start [2025-04-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841552', 'tblTempUsageDetail_20' ) end [2025-04-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841552', 'tblTempVendorCDR_20' ) start [2025-04-05 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841552', 'tblTempVendorCDR_20' ) end [2025-04-05 16:57:19] Production.INFO: ProcessCDR(1,14841552,1,1,2) [2025-04-05 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841552', 'tblTempUsageDetail_20' ) start [2025-04-05 16:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841552', 'tblTempUsageDetail_20' ) end [2025-04-05 16:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:57:24] Production.INFO: ==22524== Releasing lock... [2025-04-05 16:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:58:06 [end_date_ymd] => 2025-04-05 16:58:06 [RateCDR] => 1 ) [2025-04-05 16: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-04-05 13:58:06' and `end` < '2025-04-05 16: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-04-05 16:58:19] Production.INFO: count ==1739 [2025-04-05 16:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 13:58:06 - End Time 2025-04-05 16:58:06 [2025-04-05 16:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841557', 'tblTempUsageDetail_20' ) start [2025-04-05 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841557', 'tblTempUsageDetail_20' ) end [2025-04-05 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841557', 'tblTempVendorCDR_20' ) start [2025-04-05 16:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841557', 'tblTempVendorCDR_20' ) end [2025-04-05 16:58:19] Production.INFO: ProcessCDR(1,14841557,1,1,2) [2025-04-05 16:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841557', 'tblTempUsageDetail_20' ) start [2025-04-05 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841557', 'tblTempUsageDetail_20' ) end [2025-04-05 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:58:24] Production.INFO: ==22645== Releasing lock... [2025-04-05 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:58:24] Production.INFO: 41 MB #Memory Used# [2025-04-05 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 13:59:05 [end_date_ymd] => 2025-04-05 16:59:05 [RateCDR] => 1 ) [2025-04-05 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 13:59:05' and `end` < '2025-04-05 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 16:59:18] Production.INFO: count ==1728 [2025-04-05 16:59:18] Production.ERROR: pbx CDR StartTime 2025-04-05 13:59:05 - End Time 2025-04-05 16:59:05 [2025-04-05 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841562', 'tblTempUsageDetail_20' ) start [2025-04-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841562', 'tblTempUsageDetail_20' ) end [2025-04-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841562', 'tblTempVendorCDR_20' ) start [2025-04-05 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841562', 'tblTempVendorCDR_20' ) end [2025-04-05 16:59:18] Production.INFO: ProcessCDR(1,14841562,1,1,2) [2025-04-05 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841562', 'tblTempUsageDetail_20' ) start [2025-04-05 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841562', 'tblTempUsageDetail_20' ) end [2025-04-05 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 16:59:23] Production.INFO: ==22728== Releasing lock... [2025-04-05 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 16:59:23] Production.INFO: 41 MB #Memory Used# [2025-04-05 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:00:06 [end_date_ymd] => 2025-04-05 17:00:06 [RateCDR] => 1 ) [2025-04-05 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:00:06' and `end` < '2025-04-05 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:00:19] Production.INFO: count ==1731 [2025-04-05 17:00:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:00:06 - End Time 2025-04-05 17:00:06 [2025-04-05 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841568', 'tblTempUsageDetail_20' ) start [2025-04-05 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841568', 'tblTempUsageDetail_20' ) end [2025-04-05 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841568', 'tblTempVendorCDR_20' ) start [2025-04-05 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841568', 'tblTempVendorCDR_20' ) end [2025-04-05 17:00:20] Production.INFO: ProcessCDR(1,14841568,1,1,2) [2025-04-05 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841568', 'tblTempUsageDetail_20' ) start [2025-04-05 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841568', 'tblTempUsageDetail_20' ) end [2025-04-05 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:00:25] Production.INFO: ==22808== Releasing lock... [2025-04-05 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:00:25] Production.INFO: 41 MB #Memory Used# [2025-04-05 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:01:05 [end_date_ymd] => 2025-04-05 17:01:05 [RateCDR] => 1 ) [2025-04-05 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:01:05' and `end` < '2025-04-05 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:01:18] Production.INFO: count ==1817 [2025-04-05 17:01:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:01:05 - End Time 2025-04-05 17:01:05 [2025-04-05 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841573', 'tblTempUsageDetail_20' ) start [2025-04-05 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841573', 'tblTempUsageDetail_20' ) end [2025-04-05 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841573', 'tblTempVendorCDR_20' ) start [2025-04-05 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841573', 'tblTempVendorCDR_20' ) end [2025-04-05 17:01:18] Production.INFO: ProcessCDR(1,14841573,1,1,2) [2025-04-05 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841573', 'tblTempUsageDetail_20' ) start [2025-04-05 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841573', 'tblTempUsageDetail_20' ) end [2025-04-05 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:01:24] Production.INFO: ==22900== Releasing lock... [2025-04-05 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:01:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:02:06 [end_date_ymd] => 2025-04-05 17:02:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:02:06' and `end` < '2025-04-05 17: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-04-05 17:02:19] Production.INFO: count ==1815 [2025-04-05 17:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:02:06 - End Time 2025-04-05 17:02:06 [2025-04-05 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841578', 'tblTempUsageDetail_20' ) start [2025-04-05 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841578', 'tblTempUsageDetail_20' ) end [2025-04-05 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841578', 'tblTempVendorCDR_20' ) start [2025-04-05 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841578', 'tblTempVendorCDR_20' ) end [2025-04-05 17:02:20] Production.INFO: ProcessCDR(1,14841578,1,1,2) [2025-04-05 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841578', 'tblTempUsageDetail_20' ) start [2025-04-05 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841578', 'tblTempUsageDetail_20' ) end [2025-04-05 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:02:25] Production.INFO: ==22979== Releasing lock... [2025-04-05 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:02:25] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:03:05 [end_date_ymd] => 2025-04-05 17:03:05 [RateCDR] => 1 ) [2025-04-05 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:03:05' and `end` < '2025-04-05 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:03:18] Production.INFO: count ==1822 [2025-04-05 17:03:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:03:05 - End Time 2025-04-05 17:03:05 [2025-04-05 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841583', 'tblTempUsageDetail_20' ) start [2025-04-05 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841583', 'tblTempUsageDetail_20' ) end [2025-04-05 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841583', 'tblTempVendorCDR_20' ) start [2025-04-05 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841583', 'tblTempVendorCDR_20' ) end [2025-04-05 17:03:18] Production.INFO: ProcessCDR(1,14841583,1,1,2) [2025-04-05 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841583', 'tblTempUsageDetail_20' ) start [2025-04-05 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841583', 'tblTempUsageDetail_20' ) end [2025-04-05 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:03:23] Production.INFO: ==23058== Releasing lock... [2025-04-05 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:03:23] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:04:05 [end_date_ymd] => 2025-04-05 17:04:05 [RateCDR] => 1 ) [2025-04-05 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:04:05' and `end` < '2025-04-05 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:04:18] Production.INFO: count ==1817 [2025-04-05 17:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:04:05 - End Time 2025-04-05 17:04:05 [2025-04-05 17:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841588', 'tblTempUsageDetail_20' ) start [2025-04-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841588', 'tblTempUsageDetail_20' ) end [2025-04-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841588', 'tblTempVendorCDR_20' ) start [2025-04-05 17:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841588', 'tblTempVendorCDR_20' ) end [2025-04-05 17:04:19] Production.INFO: ProcessCDR(1,14841588,1,1,2) [2025-04-05 17:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841588', 'tblTempUsageDetail_20' ) start [2025-04-05 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841588', 'tblTempUsageDetail_20' ) end [2025-04-05 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:04:24] Production.INFO: ==23133== Releasing lock... [2025-04-05 17:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:04:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:05:05 [end_date_ymd] => 2025-04-05 17:05:05 [RateCDR] => 1 ) [2025-04-05 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:05:05' and `end` < '2025-04-05 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:05:18] Production.INFO: count ==1812 [2025-04-05 17:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:05:05 - End Time 2025-04-05 17:05:05 [2025-04-05 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841593', 'tblTempUsageDetail_20' ) start [2025-04-05 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841593', 'tblTempUsageDetail_20' ) end [2025-04-05 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841593', 'tblTempVendorCDR_20' ) start [2025-04-05 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841593', 'tblTempVendorCDR_20' ) end [2025-04-05 17:05:19] Production.INFO: ProcessCDR(1,14841593,1,1,2) [2025-04-05 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841593', 'tblTempUsageDetail_20' ) start [2025-04-05 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841593', 'tblTempUsageDetail_20' ) end [2025-04-05 17:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:05:24] Production.INFO: ==23205== Releasing lock... [2025-04-05 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:05:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:06:05 [end_date_ymd] => 2025-04-05 17:06:05 [RateCDR] => 1 ) [2025-04-05 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:06:05' and `end` < '2025-04-05 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:06:18] Production.INFO: count ==1810 [2025-04-05 17:06:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:06:05 - End Time 2025-04-05 17:06:05 [2025-04-05 17:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841598', 'tblTempUsageDetail_20' ) start [2025-04-05 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841598', 'tblTempUsageDetail_20' ) end [2025-04-05 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841598', 'tblTempVendorCDR_20' ) start [2025-04-05 17:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841598', 'tblTempVendorCDR_20' ) end [2025-04-05 17:06:19] Production.INFO: ProcessCDR(1,14841598,1,1,2) [2025-04-05 17:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841598', 'tblTempUsageDetail_20' ) start [2025-04-05 17:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841598', 'tblTempUsageDetail_20' ) end [2025-04-05 17:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:06:24] Production.INFO: ==23276== Releasing lock... [2025-04-05 17:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:06:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:07:06 [end_date_ymd] => 2025-04-05 17:07:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:07:06' and `end` < '2025-04-05 17: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-04-05 17:07:19] Production.INFO: count ==1815 [2025-04-05 17:07:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:07:06 - End Time 2025-04-05 17:07:06 [2025-04-05 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841603', 'tblTempUsageDetail_20' ) start [2025-04-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841603', 'tblTempUsageDetail_20' ) end [2025-04-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841603', 'tblTempVendorCDR_20' ) start [2025-04-05 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841603', 'tblTempVendorCDR_20' ) end [2025-04-05 17:07:20] Production.INFO: ProcessCDR(1,14841603,1,1,2) [2025-04-05 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841603', 'tblTempUsageDetail_20' ) start [2025-04-05 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841603', 'tblTempUsageDetail_20' ) end [2025-04-05 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:07:25] Production.INFO: ==23356== Releasing lock... [2025-04-05 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:07:25] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:08:05 [end_date_ymd] => 2025-04-05 17:08:05 [RateCDR] => 1 ) [2025-04-05 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:08:05' and `end` < '2025-04-05 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:08:18] Production.INFO: count ==1816 [2025-04-05 17:08:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:08:05 - End Time 2025-04-05 17:08:05 [2025-04-05 17:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841608', 'tblTempUsageDetail_20' ) start [2025-04-05 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841608', 'tblTempUsageDetail_20' ) end [2025-04-05 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841608', 'tblTempVendorCDR_20' ) start [2025-04-05 17:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841608', 'tblTempVendorCDR_20' ) end [2025-04-05 17:08:19] Production.INFO: ProcessCDR(1,14841608,1,1,2) [2025-04-05 17:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841608', 'tblTempUsageDetail_20' ) start [2025-04-05 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841608', 'tblTempUsageDetail_20' ) end [2025-04-05 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:08:24] Production.INFO: ==23441== Releasing lock... [2025-04-05 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:08:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:09:06 [end_date_ymd] => 2025-04-05 17:09:06 [RateCDR] => 1 ) [2025-04-05 17:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:09:06' and `end` < '2025-04-05 17:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:09:19] Production.INFO: count ==1815 [2025-04-05 17:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:09:06 - End Time 2025-04-05 17:09:06 [2025-04-05 17:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841613', 'tblTempUsageDetail_20' ) start [2025-04-05 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841613', 'tblTempUsageDetail_20' ) end [2025-04-05 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841613', 'tblTempVendorCDR_20' ) start [2025-04-05 17:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841613', 'tblTempVendorCDR_20' ) end [2025-04-05 17:09:19] Production.INFO: ProcessCDR(1,14841613,1,1,2) [2025-04-05 17:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841613', 'tblTempUsageDetail_20' ) start [2025-04-05 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841613', 'tblTempUsageDetail_20' ) end [2025-04-05 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:09:23] Production.INFO: ==23514== Releasing lock... [2025-04-05 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:09:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:10:06 [end_date_ymd] => 2025-04-05 17:10:06 [RateCDR] => 1 ) [2025-04-05 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:10:06' and `end` < '2025-04-05 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:10:19] Production.INFO: count ==1811 [2025-04-05 17:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:10:06 - End Time 2025-04-05 17:10:06 [2025-04-05 17:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841618', 'tblTempUsageDetail_20' ) start [2025-04-05 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841618', 'tblTempUsageDetail_20' ) end [2025-04-05 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841618', 'tblTempVendorCDR_20' ) start [2025-04-05 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841618', 'tblTempVendorCDR_20' ) end [2025-04-05 17:10:20] Production.INFO: ProcessCDR(1,14841618,1,1,2) [2025-04-05 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841618', 'tblTempUsageDetail_20' ) start [2025-04-05 17:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841618', 'tblTempUsageDetail_20' ) end [2025-04-05 17:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:10:25] Production.INFO: ==23593== Releasing lock... [2025-04-05 17:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:10:25] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:11:05 [end_date_ymd] => 2025-04-05 17:11:05 [RateCDR] => 1 ) [2025-04-05 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:11:05' and `end` < '2025-04-05 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:11:18] Production.INFO: count ==1819 [2025-04-05 17:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:11:05 - End Time 2025-04-05 17:11:05 [2025-04-05 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841624', 'tblTempUsageDetail_20' ) start [2025-04-05 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841624', 'tblTempUsageDetail_20' ) end [2025-04-05 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841624', 'tblTempVendorCDR_20' ) start [2025-04-05 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841624', 'tblTempVendorCDR_20' ) end [2025-04-05 17:11:19] Production.INFO: ProcessCDR(1,14841624,1,1,2) [2025-04-05 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841624', 'tblTempUsageDetail_20' ) start [2025-04-05 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841624', 'tblTempUsageDetail_20' ) end [2025-04-05 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:11:24] Production.INFO: ==23670== Releasing lock... [2025-04-05 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:11:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:12:05 [end_date_ymd] => 2025-04-05 17:12:05 [RateCDR] => 1 ) [2025-04-05 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:12:05' and `end` < '2025-04-05 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:12:18] Production.INFO: count ==1798 [2025-04-05 17:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:12:05 - End Time 2025-04-05 17:12:05 [2025-04-05 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841629', 'tblTempUsageDetail_20' ) start [2025-04-05 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841629', 'tblTempUsageDetail_20' ) end [2025-04-05 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841629', 'tblTempVendorCDR_20' ) start [2025-04-05 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841629', 'tblTempVendorCDR_20' ) end [2025-04-05 17:12:19] Production.INFO: ProcessCDR(1,14841629,1,1,2) [2025-04-05 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841629', 'tblTempUsageDetail_20' ) start [2025-04-05 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841629', 'tblTempUsageDetail_20' ) end [2025-04-05 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:12:24] Production.INFO: ==23744== Releasing lock... [2025-04-05 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:12:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:13:05 [end_date_ymd] => 2025-04-05 17:13:05 [RateCDR] => 1 ) [2025-04-05 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:13:05' and `end` < '2025-04-05 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:13:19] Production.INFO: count ==1778 [2025-04-05 17:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:13:05 - End Time 2025-04-05 17:13:05 [2025-04-05 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841634', 'tblTempUsageDetail_20' ) start [2025-04-05 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841634', 'tblTempUsageDetail_20' ) end [2025-04-05 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841634', 'tblTempVendorCDR_20' ) start [2025-04-05 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841634', 'tblTempVendorCDR_20' ) end [2025-04-05 17:13:19] Production.INFO: ProcessCDR(1,14841634,1,1,2) [2025-04-05 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841634', 'tblTempUsageDetail_20' ) start [2025-04-05 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841634', 'tblTempUsageDetail_20' ) end [2025-04-05 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:13:24] Production.INFO: ==23822== Releasing lock... [2025-04-05 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:13:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:14:05 [end_date_ymd] => 2025-04-05 17:14:05 [RateCDR] => 1 ) [2025-04-05 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:14:05' and `end` < '2025-04-05 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:14:19] Production.INFO: count ==1772 [2025-04-05 17:14:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:14:05 - End Time 2025-04-05 17:14:05 [2025-04-05 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841639', 'tblTempUsageDetail_20' ) start [2025-04-05 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841639', 'tblTempUsageDetail_20' ) end [2025-04-05 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841639', 'tblTempVendorCDR_20' ) start [2025-04-05 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841639', 'tblTempVendorCDR_20' ) end [2025-04-05 17:14:20] Production.INFO: ProcessCDR(1,14841639,1,1,2) [2025-04-05 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841639', 'tblTempUsageDetail_20' ) start [2025-04-05 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841639', 'tblTempUsageDetail_20' ) end [2025-04-05 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:14:25] Production.INFO: ==23935== Releasing lock... [2025-04-05 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:14:25] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:15:06 [end_date_ymd] => 2025-04-05 17:15:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:15:06' and `end` < '2025-04-05 17: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-04-05 17:15:19] Production.INFO: count ==1769 [2025-04-05 17:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:15:06 - End Time 2025-04-05 17:15:06 [2025-04-05 17:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841644', 'tblTempUsageDetail_20' ) start [2025-04-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841644', 'tblTempUsageDetail_20' ) end [2025-04-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841644', 'tblTempVendorCDR_20' ) start [2025-04-05 17:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841644', 'tblTempVendorCDR_20' ) end [2025-04-05 17:15:19] Production.INFO: ProcessCDR(1,14841644,1,1,2) [2025-04-05 17:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841644', 'tblTempUsageDetail_20' ) start [2025-04-05 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841644', 'tblTempUsageDetail_20' ) end [2025-04-05 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:15:24] Production.INFO: ==24006== Releasing lock... [2025-04-05 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:15:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:16:05 [end_date_ymd] => 2025-04-05 17:16:05 [RateCDR] => 1 ) [2025-04-05 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:16:05' and `end` < '2025-04-05 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:16:18] Production.INFO: count ==1774 [2025-04-05 17:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:16:05 - End Time 2025-04-05 17:16:05 [2025-04-05 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841649', 'tblTempUsageDetail_20' ) start [2025-04-05 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841649', 'tblTempUsageDetail_20' ) end [2025-04-05 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841649', 'tblTempVendorCDR_20' ) start [2025-04-05 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841649', 'tblTempVendorCDR_20' ) end [2025-04-05 17:16:19] Production.INFO: ProcessCDR(1,14841649,1,1,2) [2025-04-05 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841649', 'tblTempUsageDetail_20' ) start [2025-04-05 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841649', 'tblTempUsageDetail_20' ) end [2025-04-05 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:16:24] Production.INFO: ==24077== Releasing lock... [2025-04-05 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:16:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:17:06 [end_date_ymd] => 2025-04-05 17:17:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:17:06' and `end` < '2025-04-05 17: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-04-05 17:17:19] Production.INFO: count ==1772 [2025-04-05 17:17:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:17:06 - End Time 2025-04-05 17:17:06 [2025-04-05 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841654', 'tblTempUsageDetail_20' ) start [2025-04-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841654', 'tblTempUsageDetail_20' ) end [2025-04-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841654', 'tblTempVendorCDR_20' ) start [2025-04-05 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841654', 'tblTempVendorCDR_20' ) end [2025-04-05 17:17:19] Production.INFO: ProcessCDR(1,14841654,1,1,2) [2025-04-05 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841654', 'tblTempUsageDetail_20' ) start [2025-04-05 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841654', 'tblTempUsageDetail_20' ) end [2025-04-05 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:17:23] Production.INFO: ==24152== Releasing lock... [2025-04-05 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:17:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-05 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:18:06 [end_date_ymd] => 2025-04-05 17:18:06 [RateCDR] => 1 ) [2025-04-05 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:18:06' and `end` < '2025-04-05 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:18:19] Production.INFO: count ==1782 [2025-04-05 17:18:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:18:06 - End Time 2025-04-05 17:18:06 [2025-04-05 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841659', 'tblTempUsageDetail_20' ) start [2025-04-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841659', 'tblTempUsageDetail_20' ) end [2025-04-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841659', 'tblTempVendorCDR_20' ) start [2025-04-05 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841659', 'tblTempVendorCDR_20' ) end [2025-04-05 17:18:21] Production.INFO: ProcessCDR(1,14841659,1,1,2) [2025-04-05 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841659', 'tblTempUsageDetail_20' ) start [2025-04-05 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841659', 'tblTempUsageDetail_20' ) end [2025-04-05 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:18:24] Production.INFO: ==24238== Releasing lock... [2025-04-05 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:18:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:19:05 [end_date_ymd] => 2025-04-05 17:19:05 [RateCDR] => 1 ) [2025-04-05 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:19:05' and `end` < '2025-04-05 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:19:18] Production.INFO: count ==1780 [2025-04-05 17:19:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:19:05 - End Time 2025-04-05 17:19:05 [2025-04-05 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841664', 'tblTempUsageDetail_20' ) start [2025-04-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841664', 'tblTempUsageDetail_20' ) end [2025-04-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841664', 'tblTempVendorCDR_20' ) start [2025-04-05 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841664', 'tblTempVendorCDR_20' ) end [2025-04-05 17:19:19] Production.INFO: ProcessCDR(1,14841664,1,1,2) [2025-04-05 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841664', 'tblTempUsageDetail_20' ) start [2025-04-05 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841664', 'tblTempUsageDetail_20' ) end [2025-04-05 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:19:22] Production.INFO: ==24317== Releasing lock... [2025-04-05 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:19:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:20:06 [end_date_ymd] => 2025-04-05 17:20:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:20:06' and `end` < '2025-04-05 17: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-04-05 17:20:20] Production.INFO: count ==1785 [2025-04-05 17:20:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:20:06 - End Time 2025-04-05 17:20:06 [2025-04-05 17:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841670', 'tblTempUsageDetail_20' ) start [2025-04-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841670', 'tblTempUsageDetail_20' ) end [2025-04-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841670', 'tblTempVendorCDR_20' ) start [2025-04-05 17:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841670', 'tblTempVendorCDR_20' ) end [2025-04-05 17:20:20] Production.INFO: ProcessCDR(1,14841670,1,1,2) [2025-04-05 17:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841670', 'tblTempUsageDetail_20' ) start [2025-04-05 17:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841670', 'tblTempUsageDetail_20' ) end [2025-04-05 17:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:20:25] Production.INFO: ==24390== Releasing lock... [2025-04-05 17:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:20:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:21:05 [end_date_ymd] => 2025-04-05 17:21:05 [RateCDR] => 1 ) [2025-04-05 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:21:05' and `end` < '2025-04-05 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:21:18] Production.INFO: count ==1825 [2025-04-05 17:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:21:05 - End Time 2025-04-05 17:21:05 [2025-04-05 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841675', 'tblTempUsageDetail_20' ) start [2025-04-05 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841675', 'tblTempUsageDetail_20' ) end [2025-04-05 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841675', 'tblTempVendorCDR_20' ) start [2025-04-05 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841675', 'tblTempVendorCDR_20' ) end [2025-04-05 17:21:19] Production.INFO: ProcessCDR(1,14841675,1,1,2) [2025-04-05 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841675', 'tblTempUsageDetail_20' ) start [2025-04-05 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841675', 'tblTempUsageDetail_20' ) end [2025-04-05 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:21:24] Production.INFO: ==24466== Releasing lock... [2025-04-05 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:21:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:22:06 [end_date_ymd] => 2025-04-05 17:22:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:22:06' and `end` < '2025-04-05 17: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-04-05 17:22:19] Production.INFO: count ==1830 [2025-04-05 17:22:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:22:06 - End Time 2025-04-05 17:22:06 [2025-04-05 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841680', 'tblTempUsageDetail_20' ) start [2025-04-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841680', 'tblTempUsageDetail_20' ) end [2025-04-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841680', 'tblTempVendorCDR_20' ) start [2025-04-05 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841680', 'tblTempVendorCDR_20' ) end [2025-04-05 17:22:20] Production.INFO: ProcessCDR(1,14841680,1,1,2) [2025-04-05 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841680', 'tblTempUsageDetail_20' ) start [2025-04-05 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841680', 'tblTempUsageDetail_20' ) end [2025-04-05 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:22:25] Production.INFO: ==24550== Releasing lock... [2025-04-05 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:22:25] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:23:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:23:07 [end_date_ymd] => 2025-04-05 17:23:07 [RateCDR] => 1 ) [2025-04-05 17:23: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-04-05 14:23:07' and `end` < '2025-04-05 17:23: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-04-05 17:23:20] Production.INFO: count ==1833 [2025-04-05 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-05 14:23:07 - End Time 2025-04-05 17:23:07 [2025-04-05 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841685', 'tblTempUsageDetail_20' ) start [2025-04-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841685', 'tblTempUsageDetail_20' ) end [2025-04-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841685', 'tblTempVendorCDR_20' ) start [2025-04-05 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841685', 'tblTempVendorCDR_20' ) end [2025-04-05 17:23:21] Production.INFO: ProcessCDR(1,14841685,1,1,2) [2025-04-05 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841685', 'tblTempUsageDetail_20' ) start [2025-04-05 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841685', 'tblTempUsageDetail_20' ) end [2025-04-05 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:23:24] Production.INFO: ==24621== Releasing lock... [2025-04-05 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:23:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:24:05 [end_date_ymd] => 2025-04-05 17:24:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:24:05' and `end` < '2025-04-05 17: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-04-05 17:24:18] Production.INFO: count ==1828 [2025-04-05 17:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:24:05 - End Time 2025-04-05 17:24:05 [2025-04-05 17:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841690', 'tblTempUsageDetail_20' ) start [2025-04-05 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841690', 'tblTempUsageDetail_20' ) end [2025-04-05 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841690', 'tblTempVendorCDR_20' ) start [2025-04-05 17:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841690', 'tblTempVendorCDR_20' ) end [2025-04-05 17:24:19] Production.INFO: ProcessCDR(1,14841690,1,1,2) [2025-04-05 17:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841690', 'tblTempUsageDetail_20' ) start [2025-04-05 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841690', 'tblTempUsageDetail_20' ) end [2025-04-05 17:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:24:22] Production.INFO: ==24706== Releasing lock... [2025-04-05 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:24:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:25:05 [end_date_ymd] => 2025-04-05 17:25:05 [RateCDR] => 1 ) [2025-04-05 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:25:05' and `end` < '2025-04-05 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:25:19] Production.INFO: count ==1820 [2025-04-05 17:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:25:05 - End Time 2025-04-05 17:25:05 [2025-04-05 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841695', 'tblTempUsageDetail_20' ) start [2025-04-05 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841695', 'tblTempUsageDetail_20' ) end [2025-04-05 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841695', 'tblTempVendorCDR_20' ) start [2025-04-05 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841695', 'tblTempVendorCDR_20' ) end [2025-04-05 17:25:19] Production.INFO: ProcessCDR(1,14841695,1,1,2) [2025-04-05 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841695', 'tblTempUsageDetail_20' ) start [2025-04-05 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841695', 'tblTempUsageDetail_20' ) end [2025-04-05 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:25:25] Production.INFO: ==24778== Releasing lock... [2025-04-05 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:25:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:26:05 [end_date_ymd] => 2025-04-05 17:26:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:26:05' and `end` < '2025-04-05 17: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-04-05 17:26:18] Production.INFO: count ==1826 [2025-04-05 17:26:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:26:05 - End Time 2025-04-05 17:26:05 [2025-04-05 17:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841700', 'tblTempUsageDetail_20' ) start [2025-04-05 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841700', 'tblTempUsageDetail_20' ) end [2025-04-05 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841700', 'tblTempVendorCDR_20' ) start [2025-04-05 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841700', 'tblTempVendorCDR_20' ) end [2025-04-05 17:26:19] Production.INFO: ProcessCDR(1,14841700,1,1,2) [2025-04-05 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841700', 'tblTempUsageDetail_20' ) start [2025-04-05 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841700', 'tblTempUsageDetail_20' ) end [2025-04-05 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:26:24] Production.INFO: ==24850== Releasing lock... [2025-04-05 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:26:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:27:05 [end_date_ymd] => 2025-04-05 17:27:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:27:05' and `end` < '2025-04-05 17: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-04-05 17:27:18] Production.INFO: count ==1835 [2025-04-05 17:27:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:27:05 - End Time 2025-04-05 17:27:05 [2025-04-05 17:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841705', 'tblTempUsageDetail_20' ) start [2025-04-05 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841705', 'tblTempUsageDetail_20' ) end [2025-04-05 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841705', 'tblTempVendorCDR_20' ) start [2025-04-05 17:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841705', 'tblTempVendorCDR_20' ) end [2025-04-05 17:27:19] Production.INFO: ProcessCDR(1,14841705,1,1,2) [2025-04-05 17:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841705', 'tblTempUsageDetail_20' ) start [2025-04-05 17:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841705', 'tblTempUsageDetail_20' ) end [2025-04-05 17:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:27:24] Production.INFO: ==24921== Releasing lock... [2025-04-05 17:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:27:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:28:05 [end_date_ymd] => 2025-04-05 17:28:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:28:05' and `end` < '2025-04-05 17: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-04-05 17:28:18] Production.INFO: count ==1820 [2025-04-05 17:28:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:28:05 - End Time 2025-04-05 17:28:05 [2025-04-05 17:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841710', 'tblTempUsageDetail_20' ) start [2025-04-05 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841710', 'tblTempUsageDetail_20' ) end [2025-04-05 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841710', 'tblTempVendorCDR_20' ) start [2025-04-05 17:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841710', 'tblTempVendorCDR_20' ) end [2025-04-05 17:28:19] Production.INFO: ProcessCDR(1,14841710,1,1,2) [2025-04-05 17:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841710', 'tblTempUsageDetail_20' ) start [2025-04-05 17:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841710', 'tblTempUsageDetail_20' ) end [2025-04-05 17:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:28:22] Production.INFO: ==24993== Releasing lock... [2025-04-05 17:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:28:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:29:05 [end_date_ymd] => 2025-04-05 17:29:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:29:05' and `end` < '2025-04-05 17: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-04-05 17:29:18] Production.INFO: count ==1819 [2025-04-05 17:29:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:29:05 - End Time 2025-04-05 17:29:05 [2025-04-05 17:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841715', 'tblTempUsageDetail_20' ) start [2025-04-05 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841715', 'tblTempUsageDetail_20' ) end [2025-04-05 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841715', 'tblTempVendorCDR_20' ) start [2025-04-05 17:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841715', 'tblTempVendorCDR_20' ) end [2025-04-05 17:29:19] Production.INFO: ProcessCDR(1,14841715,1,1,2) [2025-04-05 17:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841715', 'tblTempUsageDetail_20' ) start [2025-04-05 17:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841715', 'tblTempUsageDetail_20' ) end [2025-04-05 17:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:29:22] Production.INFO: ==25108== Releasing lock... [2025-04-05 17:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:30:06 [end_date_ymd] => 2025-04-05 17:30:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:30:06' and `end` < '2025-04-05 17: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-04-05 17:30:19] Production.INFO: count ==1819 [2025-04-05 17:30:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:30:06 - End Time 2025-04-05 17:30:06 [2025-04-05 17:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841721', 'tblTempUsageDetail_20' ) start [2025-04-05 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841721', 'tblTempUsageDetail_20' ) end [2025-04-05 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841721', 'tblTempVendorCDR_20' ) start [2025-04-05 17:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841721', 'tblTempVendorCDR_20' ) end [2025-04-05 17:30:20] Production.INFO: ProcessCDR(1,14841721,1,1,2) [2025-04-05 17:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841721', 'tblTempUsageDetail_20' ) start [2025-04-05 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841721', 'tblTempUsageDetail_20' ) end [2025-04-05 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:30:25] Production.INFO: ==25184== Releasing lock... [2025-04-05 17:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:30:25] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:31:05 [end_date_ymd] => 2025-04-05 17:31:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:31:05' and `end` < '2025-04-05 17: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-04-05 17:31:18] Production.INFO: count ==1835 [2025-04-05 17:31:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:31:05 - End Time 2025-04-05 17:31:05 [2025-04-05 17:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841726', 'tblTempUsageDetail_20' ) start [2025-04-05 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841726', 'tblTempUsageDetail_20' ) end [2025-04-05 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841726', 'tblTempVendorCDR_20' ) start [2025-04-05 17:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841726', 'tblTempVendorCDR_20' ) end [2025-04-05 17:31:19] Production.INFO: ProcessCDR(1,14841726,1,1,2) [2025-04-05 17:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841726', 'tblTempUsageDetail_20' ) start [2025-04-05 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841726', 'tblTempUsageDetail_20' ) end [2025-04-05 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:31:23] Production.INFO: ==25265== Releasing lock... [2025-04-05 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:31:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:32:05 [end_date_ymd] => 2025-04-05 17:32:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:32:05' and `end` < '2025-04-05 17: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-04-05 17:32:18] Production.INFO: count ==1831 [2025-04-05 17:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:32:05 - End Time 2025-04-05 17:32:05 [2025-04-05 17:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841731', 'tblTempUsageDetail_20' ) start [2025-04-05 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841731', 'tblTempUsageDetail_20' ) end [2025-04-05 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841731', 'tblTempVendorCDR_20' ) start [2025-04-05 17:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841731', 'tblTempVendorCDR_20' ) end [2025-04-05 17:32:19] Production.INFO: ProcessCDR(1,14841731,1,1,2) [2025-04-05 17:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841731', 'tblTempUsageDetail_20' ) start [2025-04-05 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841731', 'tblTempUsageDetail_20' ) end [2025-04-05 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:32:24] Production.INFO: ==25338== Releasing lock... [2025-04-05 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:32:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:33:05 [end_date_ymd] => 2025-04-05 17:33:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:33:05' and `end` < '2025-04-05 17: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-04-05 17:33:18] Production.INFO: count ==1827 [2025-04-05 17:33:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:33:05 - End Time 2025-04-05 17:33:05 [2025-04-05 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841736', 'tblTempUsageDetail_20' ) start [2025-04-05 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841736', 'tblTempUsageDetail_20' ) end [2025-04-05 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841736', 'tblTempVendorCDR_20' ) start [2025-04-05 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841736', 'tblTempVendorCDR_20' ) end [2025-04-05 17:33:18] Production.INFO: ProcessCDR(1,14841736,1,1,2) [2025-04-05 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841736', 'tblTempUsageDetail_20' ) start [2025-04-05 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841736', 'tblTempUsageDetail_20' ) end [2025-04-05 17:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:33:22] Production.INFO: ==25408== Releasing lock... [2025-04-05 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:33:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:34:06 [end_date_ymd] => 2025-04-05 17:34:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:34:06' and `end` < '2025-04-05 17: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-04-05 17:34:19] Production.INFO: count ==1822 [2025-04-05 17:34:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:34:06 - End Time 2025-04-05 17:34:06 [2025-04-05 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841741', 'tblTempUsageDetail_20' ) start [2025-04-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841741', 'tblTempUsageDetail_20' ) end [2025-04-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841741', 'tblTempVendorCDR_20' ) start [2025-04-05 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841741', 'tblTempVendorCDR_20' ) end [2025-04-05 17:34:20] Production.INFO: ProcessCDR(1,14841741,1,1,2) [2025-04-05 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841741', 'tblTempUsageDetail_20' ) start [2025-04-05 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841741', 'tblTempUsageDetail_20' ) end [2025-04-05 17:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:34:23] Production.INFO: ==25487== Releasing lock... [2025-04-05 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:34:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-05 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:35:05 [end_date_ymd] => 2025-04-05 17:35:05 [RateCDR] => 1 ) [2025-04-05 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:35:05' and `end` < '2025-04-05 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:35:18] Production.INFO: count ==1820 [2025-04-05 17:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:35:05 - End Time 2025-04-05 17:35:05 [2025-04-05 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841746', 'tblTempUsageDetail_20' ) start [2025-04-05 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841746', 'tblTempUsageDetail_20' ) end [2025-04-05 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841746', 'tblTempVendorCDR_20' ) start [2025-04-05 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841746', 'tblTempVendorCDR_20' ) end [2025-04-05 17:35:19] Production.INFO: ProcessCDR(1,14841746,1,1,2) [2025-04-05 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841746', 'tblTempUsageDetail_20' ) start [2025-04-05 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841746', 'tblTempUsageDetail_20' ) end [2025-04-05 17:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:35:22] Production.INFO: ==25561== Releasing lock... [2025-04-05 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:36:06 [end_date_ymd] => 2025-04-05 17:36:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:36:06' and `end` < '2025-04-05 17: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-04-05 17:36:19] Production.INFO: count ==1820 [2025-04-05 17:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:36:06 - End Time 2025-04-05 17:36:06 [2025-04-05 17:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841751', 'tblTempUsageDetail_20' ) start [2025-04-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841751', 'tblTempUsageDetail_20' ) end [2025-04-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841751', 'tblTempVendorCDR_20' ) start [2025-04-05 17:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841751', 'tblTempVendorCDR_20' ) end [2025-04-05 17:36:19] Production.INFO: ProcessCDR(1,14841751,1,1,2) [2025-04-05 17:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841751', 'tblTempUsageDetail_20' ) start [2025-04-05 17:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841751', 'tblTempUsageDetail_20' ) end [2025-04-05 17:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:36:23] Production.INFO: ==25632== Releasing lock... [2025-04-05 17:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:36:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:37:05 [end_date_ymd] => 2025-04-05 17:37:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:37:05' and `end` < '2025-04-05 17: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-04-05 17:37:18] Production.INFO: count ==1822 [2025-04-05 17:37:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:37:05 - End Time 2025-04-05 17:37:05 [2025-04-05 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841756', 'tblTempUsageDetail_20' ) start [2025-04-05 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841756', 'tblTempUsageDetail_20' ) end [2025-04-05 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841756', 'tblTempVendorCDR_20' ) start [2025-04-05 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841756', 'tblTempVendorCDR_20' ) end [2025-04-05 17:37:19] Production.INFO: ProcessCDR(1,14841756,1,1,2) [2025-04-05 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841756', 'tblTempUsageDetail_20' ) start [2025-04-05 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841756', 'tblTempUsageDetail_20' ) end [2025-04-05 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:37:23] Production.INFO: ==25715== Releasing lock... [2025-04-05 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:37:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:38:06 [end_date_ymd] => 2025-04-05 17:38:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:38:06' and `end` < '2025-04-05 17: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-04-05 17:38:19] Production.INFO: count ==1822 [2025-04-05 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:38:06 - End Time 2025-04-05 17:38:06 [2025-04-05 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841761', 'tblTempUsageDetail_20' ) start [2025-04-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841761', 'tblTempUsageDetail_20' ) end [2025-04-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841761', 'tblTempVendorCDR_20' ) start [2025-04-05 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841761', 'tblTempVendorCDR_20' ) end [2025-04-05 17:38:20] Production.INFO: ProcessCDR(1,14841761,1,1,2) [2025-04-05 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841761', 'tblTempUsageDetail_20' ) start [2025-04-05 17:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841761', 'tblTempUsageDetail_20' ) end [2025-04-05 17:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:38:23] Production.INFO: ==25799== Releasing lock... [2025-04-05 17:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:38:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:39:05 [end_date_ymd] => 2025-04-05 17:39:05 [RateCDR] => 1 ) [2025-04-05 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:39:05' and `end` < '2025-04-05 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:39:18] Production.INFO: count ==1823 [2025-04-05 17:39:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:39:05 - End Time 2025-04-05 17:39:05 [2025-04-05 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841766', 'tblTempUsageDetail_20' ) start [2025-04-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841766', 'tblTempUsageDetail_20' ) end [2025-04-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841766', 'tblTempVendorCDR_20' ) start [2025-04-05 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841766', 'tblTempVendorCDR_20' ) end [2025-04-05 17:39:18] Production.INFO: ProcessCDR(1,14841766,1,1,2) [2025-04-05 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841766', 'tblTempUsageDetail_20' ) start [2025-04-05 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841766', 'tblTempUsageDetail_20' ) end [2025-04-05 17:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:39:22] Production.INFO: ==25878== Releasing lock... [2025-04-05 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:40:07 [end_date_ymd] => 2025-04-05 17:40:07 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:40:07' and `end` < '2025-04-05 17: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-04-05 17:40:20] Production.INFO: count ==1819 [2025-04-05 17:40:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:40:07 - End Time 2025-04-05 17:40:07 [2025-04-05 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841772', 'tblTempUsageDetail_20' ) start [2025-04-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841772', 'tblTempUsageDetail_20' ) end [2025-04-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841772', 'tblTempVendorCDR_20' ) start [2025-04-05 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841772', 'tblTempVendorCDR_20' ) end [2025-04-05 17:40:20] Production.INFO: ProcessCDR(1,14841772,1,1,2) [2025-04-05 17:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841772', 'tblTempUsageDetail_20' ) start [2025-04-05 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841772', 'tblTempUsageDetail_20' ) end [2025-04-05 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:40:24] Production.INFO: ==25964== Releasing lock... [2025-04-05 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:40:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:41:05 [end_date_ymd] => 2025-04-05 17:41:05 [RateCDR] => 1 ) [2025-04-05 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:41:05' and `end` < '2025-04-05 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:41:18] Production.INFO: count ==1843 [2025-04-05 17:41:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:41:05 - End Time 2025-04-05 17:41:05 [2025-04-05 17:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841777', 'tblTempUsageDetail_20' ) start [2025-04-05 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841777', 'tblTempUsageDetail_20' ) end [2025-04-05 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841777', 'tblTempVendorCDR_20' ) start [2025-04-05 17:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841777', 'tblTempVendorCDR_20' ) end [2025-04-05 17:41:19] Production.INFO: ProcessCDR(1,14841777,1,1,2) [2025-04-05 17:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841777', 'tblTempUsageDetail_20' ) start [2025-04-05 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841777', 'tblTempUsageDetail_20' ) end [2025-04-05 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:41:22] Production.INFO: ==26040== Releasing lock... [2025-04-05 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:41:22] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:42:05 [end_date_ymd] => 2025-04-05 17:42:05 [RateCDR] => 1 ) [2025-04-05 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:42:05' and `end` < '2025-04-05 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:42:18] Production.INFO: count ==1854 [2025-04-05 17:42:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:42:05 - End Time 2025-04-05 17:42:05 [2025-04-05 17:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841782', 'tblTempUsageDetail_20' ) start [2025-04-05 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841782', 'tblTempUsageDetail_20' ) end [2025-04-05 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841782', 'tblTempVendorCDR_20' ) start [2025-04-05 17:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841782', 'tblTempVendorCDR_20' ) end [2025-04-05 17:42:19] Production.INFO: ProcessCDR(1,14841782,1,1,2) [2025-04-05 17:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841782', 'tblTempUsageDetail_20' ) start [2025-04-05 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841782', 'tblTempUsageDetail_20' ) end [2025-04-05 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:42:23] Production.INFO: ==26117== Releasing lock... [2025-04-05 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:42:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:43:05 [end_date_ymd] => 2025-04-05 17:43:05 [RateCDR] => 1 ) [2025-04-05 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:43:05' and `end` < '2025-04-05 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:43:18] Production.INFO: count ==1861 [2025-04-05 17:43:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:43:05 - End Time 2025-04-05 17:43:05 [2025-04-05 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841787', 'tblTempUsageDetail_20' ) start [2025-04-05 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841787', 'tblTempUsageDetail_20' ) end [2025-04-05 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841787', 'tblTempVendorCDR_20' ) start [2025-04-05 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841787', 'tblTempVendorCDR_20' ) end [2025-04-05 17:43:18] Production.INFO: ProcessCDR(1,14841787,1,1,2) [2025-04-05 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841787', 'tblTempUsageDetail_20' ) start [2025-04-05 17:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841787', 'tblTempUsageDetail_20' ) end [2025-04-05 17:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:43:22] Production.INFO: ==26192== Releasing lock... [2025-04-05 17:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:43:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:44:05 [end_date_ymd] => 2025-04-05 17:44:05 [RateCDR] => 1 ) [2025-04-05 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:44:05' and `end` < '2025-04-05 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:44:18] Production.INFO: count ==1874 [2025-04-05 17:44:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:44:05 - End Time 2025-04-05 17:44:05 [2025-04-05 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841792', 'tblTempUsageDetail_20' ) start [2025-04-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841792', 'tblTempUsageDetail_20' ) end [2025-04-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841792', 'tblTempVendorCDR_20' ) start [2025-04-05 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841792', 'tblTempVendorCDR_20' ) end [2025-04-05 17:44:19] Production.INFO: ProcessCDR(1,14841792,1,1,2) [2025-04-05 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841792', 'tblTempUsageDetail_20' ) start [2025-04-05 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841792', 'tblTempUsageDetail_20' ) end [2025-04-05 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:44:24] Production.INFO: ==26298== Releasing lock... [2025-04-05 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:44:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:45:05 [end_date_ymd] => 2025-04-05 17:45:05 [RateCDR] => 1 ) [2025-04-05 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:45:05' and `end` < '2025-04-05 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:45:18] Production.INFO: count ==1874 [2025-04-05 17:45:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:45:05 - End Time 2025-04-05 17:45:05 [2025-04-05 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841797', 'tblTempUsageDetail_20' ) start [2025-04-05 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841797', 'tblTempUsageDetail_20' ) end [2025-04-05 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841797', 'tblTempVendorCDR_20' ) start [2025-04-05 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841797', 'tblTempVendorCDR_20' ) end [2025-04-05 17:45:19] Production.INFO: ProcessCDR(1,14841797,1,1,2) [2025-04-05 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841797', 'tblTempUsageDetail_20' ) start [2025-04-05 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841797', 'tblTempUsageDetail_20' ) end [2025-04-05 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:45:22] Production.INFO: ==26417== Releasing lock... [2025-04-05 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:45:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:46:05 [end_date_ymd] => 2025-04-05 17:46:05 [RateCDR] => 1 ) [2025-04-05 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:46:05' and `end` < '2025-04-05 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:46:18] Production.INFO: count ==1883 [2025-04-05 17:46:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:46:05 - End Time 2025-04-05 17:46:05 [2025-04-05 17:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841802', 'tblTempUsageDetail_20' ) start [2025-04-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841802', 'tblTempUsageDetail_20' ) end [2025-04-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841802', 'tblTempVendorCDR_20' ) start [2025-04-05 17:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841802', 'tblTempVendorCDR_20' ) end [2025-04-05 17:46:19] Production.INFO: ProcessCDR(1,14841802,1,1,2) [2025-04-05 17:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841802', 'tblTempUsageDetail_20' ) start [2025-04-05 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841802', 'tblTempUsageDetail_20' ) end [2025-04-05 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:46:24] Production.INFO: ==26490== Releasing lock... [2025-04-05 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:46:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:47:05 [end_date_ymd] => 2025-04-05 17:47:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:47:05' and `end` < '2025-04-05 17: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-04-05 17:47:18] Production.INFO: count ==1889 [2025-04-05 17:47:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:47:05 - End Time 2025-04-05 17:47:05 [2025-04-05 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841807', 'tblTempUsageDetail_20' ) start [2025-04-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841807', 'tblTempUsageDetail_20' ) end [2025-04-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841807', 'tblTempVendorCDR_20' ) start [2025-04-05 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841807', 'tblTempVendorCDR_20' ) end [2025-04-05 17:47:18] Production.INFO: ProcessCDR(1,14841807,1,1,2) [2025-04-05 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841807', 'tblTempUsageDetail_20' ) start [2025-04-05 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841807', 'tblTempUsageDetail_20' ) end [2025-04-05 17:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:47:22] Production.INFO: ==26565== Releasing lock... [2025-04-05 17:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:47:22] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:48:05 [end_date_ymd] => 2025-04-05 17:48:05 [RateCDR] => 1 ) [2025-04-05 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:48:05' and `end` < '2025-04-05 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:48:18] Production.INFO: count ==1890 [2025-04-05 17:48:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:48:05 - End Time 2025-04-05 17:48:05 [2025-04-05 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841812', 'tblTempUsageDetail_20' ) start [2025-04-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841812', 'tblTempUsageDetail_20' ) end [2025-04-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841812', 'tblTempVendorCDR_20' ) start [2025-04-05 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841812', 'tblTempVendorCDR_20' ) end [2025-04-05 17:48:19] Production.INFO: ProcessCDR(1,14841812,1,1,2) [2025-04-05 17:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841812', 'tblTempUsageDetail_20' ) start [2025-04-05 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841812', 'tblTempUsageDetail_20' ) end [2025-04-05 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:48:23] Production.INFO: ==26638== Releasing lock... [2025-04-05 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:48:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:49:06 [end_date_ymd] => 2025-04-05 17:49:06 [RateCDR] => 1 ) [2025-04-05 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:49:06' and `end` < '2025-04-05 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:49:19] Production.INFO: count ==1897 [2025-04-05 17:49:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:49:06 - End Time 2025-04-05 17:49:06 [2025-04-05 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841817', 'tblTempUsageDetail_20' ) start [2025-04-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841817', 'tblTempUsageDetail_20' ) end [2025-04-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841817', 'tblTempVendorCDR_20' ) start [2025-04-05 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841817', 'tblTempVendorCDR_20' ) end [2025-04-05 17:49:19] Production.INFO: ProcessCDR(1,14841817,1,1,2) [2025-04-05 17:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841817', 'tblTempUsageDetail_20' ) start [2025-04-05 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841817', 'tblTempUsageDetail_20' ) end [2025-04-05 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:49:23] Production.INFO: ==26713== Releasing lock... [2025-04-05 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:49:23] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:50:06 [end_date_ymd] => 2025-04-05 17:50:06 [RateCDR] => 1 ) [2025-04-05 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:50:06' and `end` < '2025-04-05 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:50:19] Production.INFO: count ==1911 [2025-04-05 17:50:20] Production.ERROR: pbx CDR StartTime 2025-04-05 14:50:06 - End Time 2025-04-05 17:50:06 [2025-04-05 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841823', 'tblTempUsageDetail_20' ) start [2025-04-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841823', 'tblTempUsageDetail_20' ) end [2025-04-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841823', 'tblTempVendorCDR_20' ) start [2025-04-05 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841823', 'tblTempVendorCDR_20' ) end [2025-04-05 17:50:20] Production.INFO: ProcessCDR(1,14841823,1,1,2) [2025-04-05 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841823', 'tblTempUsageDetail_20' ) start [2025-04-05 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841823', 'tblTempUsageDetail_20' ) end [2025-04-05 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:50:24] Production.INFO: ==26793== Releasing lock... [2025-04-05 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:50:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:51:05 [end_date_ymd] => 2025-04-05 17:51:05 [RateCDR] => 1 ) [2025-04-05 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:51:05' and `end` < '2025-04-05 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:51:18] Production.INFO: count ==1958 [2025-04-05 17:51:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:51:05 - End Time 2025-04-05 17:51:05 [2025-04-05 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841828', 'tblTempUsageDetail_20' ) start [2025-04-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841828', 'tblTempUsageDetail_20' ) end [2025-04-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841828', 'tblTempVendorCDR_20' ) start [2025-04-05 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841828', 'tblTempVendorCDR_20' ) end [2025-04-05 17:51:19] Production.INFO: ProcessCDR(1,14841828,1,1,2) [2025-04-05 17:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841828', 'tblTempUsageDetail_20' ) start [2025-04-05 17:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841828', 'tblTempUsageDetail_20' ) end [2025-04-05 17:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:51:22] Production.INFO: ==26873== Releasing lock... [2025-04-05 17:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:52:05 [end_date_ymd] => 2025-04-05 17:52:05 [RateCDR] => 1 ) [2025-04-05 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:52:05' and `end` < '2025-04-05 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:52:18] Production.INFO: count ==1953 [2025-04-05 17:52:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:52:05 - End Time 2025-04-05 17:52:05 [2025-04-05 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841833', 'tblTempUsageDetail_20' ) start [2025-04-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841833', 'tblTempUsageDetail_20' ) end [2025-04-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841833', 'tblTempVendorCDR_20' ) start [2025-04-05 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841833', 'tblTempVendorCDR_20' ) end [2025-04-05 17:52:19] Production.INFO: ProcessCDR(1,14841833,1,1,2) [2025-04-05 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841833', 'tblTempUsageDetail_20' ) start [2025-04-05 17:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841833', 'tblTempUsageDetail_20' ) end [2025-04-05 17:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:52:22] Production.INFO: ==26961== Releasing lock... [2025-04-05 17:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:52:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:53:05 [end_date_ymd] => 2025-04-05 17:53:05 [RateCDR] => 1 ) [2025-04-05 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:53:05' and `end` < '2025-04-05 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:53:18] Production.INFO: count ==1957 [2025-04-05 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:53:05 - End Time 2025-04-05 17:53:05 [2025-04-05 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841838', 'tblTempUsageDetail_20' ) start [2025-04-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841838', 'tblTempUsageDetail_20' ) end [2025-04-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841838', 'tblTempVendorCDR_20' ) start [2025-04-05 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841838', 'tblTempVendorCDR_20' ) end [2025-04-05 17:53:19] Production.INFO: ProcessCDR(1,14841838,1,1,2) [2025-04-05 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841838', 'tblTempUsageDetail_20' ) start [2025-04-05 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841838', 'tblTempUsageDetail_20' ) end [2025-04-05 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:53:22] Production.INFO: ==27044== Releasing lock... [2025-04-05 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:53:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:54:05 [end_date_ymd] => 2025-04-05 17:54:05 [RateCDR] => 1 ) [2025-04-05 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:54:05' and `end` < '2025-04-05 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:54:18] Production.INFO: count ==1961 [2025-04-05 17:54:18] Production.ERROR: pbx CDR StartTime 2025-04-05 14:54:05 - End Time 2025-04-05 17:54:05 [2025-04-05 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841843', 'tblTempUsageDetail_20' ) start [2025-04-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841843', 'tblTempUsageDetail_20' ) end [2025-04-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841843', 'tblTempVendorCDR_20' ) start [2025-04-05 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841843', 'tblTempVendorCDR_20' ) end [2025-04-05 17:54:18] Production.INFO: ProcessCDR(1,14841843,1,1,2) [2025-04-05 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841843', 'tblTempUsageDetail_20' ) start [2025-04-05 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841843', 'tblTempUsageDetail_20' ) end [2025-04-05 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:54:22] Production.INFO: ==27122== Releasing lock... [2025-04-05 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:54:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:55:05 [end_date_ymd] => 2025-04-05 17:55:05 [RateCDR] => 1 ) [2025-04-05 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:55:05' and `end` < '2025-04-05 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:55:18] Production.INFO: count ==1963 [2025-04-05 17:55:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:55:05 - End Time 2025-04-05 17:55:05 [2025-04-05 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841848', 'tblTempUsageDetail_20' ) start [2025-04-05 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841848', 'tblTempUsageDetail_20' ) end [2025-04-05 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841848', 'tblTempVendorCDR_20' ) start [2025-04-05 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841848', 'tblTempVendorCDR_20' ) end [2025-04-05 17:55:19] Production.INFO: ProcessCDR(1,14841848,1,1,2) [2025-04-05 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841848', 'tblTempUsageDetail_20' ) start [2025-04-05 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841848', 'tblTempUsageDetail_20' ) end [2025-04-05 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:55:23] Production.INFO: ==27206== Releasing lock... [2025-04-05 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:55:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:56:05 [end_date_ymd] => 2025-04-05 17:56:05 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:56:05' and `end` < '2025-04-05 17: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-04-05 17:56:18] Production.INFO: count ==1962 [2025-04-05 17:56:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:56:05 - End Time 2025-04-05 17:56:05 [2025-04-05 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841853', 'tblTempUsageDetail_20' ) start [2025-04-05 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841853', 'tblTempUsageDetail_20' ) end [2025-04-05 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841853', 'tblTempVendorCDR_20' ) start [2025-04-05 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841853', 'tblTempVendorCDR_20' ) end [2025-04-05 17:56:19] Production.INFO: ProcessCDR(1,14841853,1,1,2) [2025-04-05 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841853', 'tblTempUsageDetail_20' ) start [2025-04-05 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841853', 'tblTempUsageDetail_20' ) end [2025-04-05 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:56:24] Production.INFO: ==27285== Releasing lock... [2025-04-05 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:56:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:57:05 [end_date_ymd] => 2025-04-05 17:57:05 [RateCDR] => 1 ) [2025-04-05 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:57:05' and `end` < '2025-04-05 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:57:18] Production.INFO: count ==1960 [2025-04-05 17:57:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:57:05 - End Time 2025-04-05 17:57:05 [2025-04-05 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841858', 'tblTempUsageDetail_20' ) start [2025-04-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841858', 'tblTempUsageDetail_20' ) end [2025-04-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841858', 'tblTempVendorCDR_20' ) start [2025-04-05 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841858', 'tblTempVendorCDR_20' ) end [2025-04-05 17:57:19] Production.INFO: ProcessCDR(1,14841858,1,1,2) [2025-04-05 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841858', 'tblTempUsageDetail_20' ) start [2025-04-05 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841858', 'tblTempUsageDetail_20' ) end [2025-04-05 17:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:57:23] Production.INFO: ==27373== Releasing lock... [2025-04-05 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:57:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:58:06 [end_date_ymd] => 2025-04-05 17:58:06 [RateCDR] => 1 ) [2025-04-05 17: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-04-05 14:58:06' and `end` < '2025-04-05 17: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-04-05 17:58:19] Production.INFO: count ==1950 [2025-04-05 17:58:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:58:06 - End Time 2025-04-05 17:58:06 [2025-04-05 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841863', 'tblTempUsageDetail_20' ) start [2025-04-05 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841863', 'tblTempUsageDetail_20' ) end [2025-04-05 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841863', 'tblTempVendorCDR_20' ) start [2025-04-05 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841863', 'tblTempVendorCDR_20' ) end [2025-04-05 17:58:19] Production.INFO: ProcessCDR(1,14841863,1,1,2) [2025-04-05 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841863', 'tblTempUsageDetail_20' ) start [2025-04-05 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841863', 'tblTempUsageDetail_20' ) end [2025-04-05 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:58:25] Production.INFO: ==27456== Releasing lock... [2025-04-05 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:58:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 14:59:05 [end_date_ymd] => 2025-04-05 17:59:05 [RateCDR] => 1 ) [2025-04-05 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 14:59:05' and `end` < '2025-04-05 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 17:59:18] Production.INFO: count ==1958 [2025-04-05 17:59:19] Production.ERROR: pbx CDR StartTime 2025-04-05 14:59:05 - End Time 2025-04-05 17:59:05 [2025-04-05 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841868', 'tblTempUsageDetail_20' ) start [2025-04-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841868', 'tblTempUsageDetail_20' ) end [2025-04-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841868', 'tblTempVendorCDR_20' ) start [2025-04-05 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841868', 'tblTempVendorCDR_20' ) end [2025-04-05 17:59:19] Production.INFO: ProcessCDR(1,14841868,1,1,2) [2025-04-05 17:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841868', 'tblTempUsageDetail_20' ) start [2025-04-05 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841868', 'tblTempUsageDetail_20' ) end [2025-04-05 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 17:59:24] Production.INFO: ==27537== Releasing lock... [2025-04-05 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 17:59:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:00:07 [end_date_ymd] => 2025-04-05 18:00:07 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:00:07' and `end` < '2025-04-05 18: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-04-05 18:00:20] Production.INFO: count ==1957 [2025-04-05 18:00:20] Production.ERROR: pbx CDR StartTime 2025-04-05 15:00:07 - End Time 2025-04-05 18:00:07 [2025-04-05 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841874', 'tblTempUsageDetail_20' ) start [2025-04-05 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841874', 'tblTempUsageDetail_20' ) end [2025-04-05 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841874', 'tblTempVendorCDR_20' ) start [2025-04-05 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841874', 'tblTempVendorCDR_20' ) end [2025-04-05 18:00:20] Production.INFO: ProcessCDR(1,14841874,1,1,2) [2025-04-05 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841874', 'tblTempUsageDetail_20' ) start [2025-04-05 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841874', 'tblTempUsageDetail_20' ) end [2025-04-05 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:00:24] Production.INFO: ==27659== Releasing lock... [2025-04-05 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:00:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:01:05 [end_date_ymd] => 2025-04-05 18:01:05 [RateCDR] => 1 ) [2025-04-05 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:01:05' and `end` < '2025-04-05 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:01:18] Production.INFO: count ==1955 [2025-04-05 18:01:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:01:05 - End Time 2025-04-05 18:01:05 [2025-04-05 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841879', 'tblTempUsageDetail_20' ) start [2025-04-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841879', 'tblTempUsageDetail_20' ) end [2025-04-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841879', 'tblTempVendorCDR_20' ) start [2025-04-05 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841879', 'tblTempVendorCDR_20' ) end [2025-04-05 18:01:19] Production.INFO: ProcessCDR(1,14841879,1,1,2) [2025-04-05 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841879', 'tblTempUsageDetail_20' ) start [2025-04-05 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841879', 'tblTempUsageDetail_20' ) end [2025-04-05 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:01:22] Production.INFO: ==27749== Releasing lock... [2025-04-05 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:01:22] Production.INFO: 43 MB #Memory Used# [2025-04-05 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:02:06 [end_date_ymd] => 2025-04-05 18:02:06 [RateCDR] => 1 ) [2025-04-05 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:02:06' and `end` < '2025-04-05 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:02:19] Production.INFO: count ==1952 [2025-04-05 18:02:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:02:06 - End Time 2025-04-05 18:02:06 [2025-04-05 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841884', 'tblTempUsageDetail_20' ) start [2025-04-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841884', 'tblTempUsageDetail_20' ) end [2025-04-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841884', 'tblTempVendorCDR_20' ) start [2025-04-05 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841884', 'tblTempVendorCDR_20' ) end [2025-04-05 18:02:19] Production.INFO: ProcessCDR(1,14841884,1,1,2) [2025-04-05 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841884', 'tblTempUsageDetail_20' ) start [2025-04-05 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841884', 'tblTempUsageDetail_20' ) end [2025-04-05 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:02:23] Production.INFO: ==27826== Releasing lock... [2025-04-05 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:02:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:03:06 [end_date_ymd] => 2025-04-05 18:03:06 [RateCDR] => 1 ) [2025-04-05 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:03:06' and `end` < '2025-04-05 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:03:19] Production.INFO: count ==1952 [2025-04-05 18:03:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:03:06 - End Time 2025-04-05 18:03:06 [2025-04-05 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841889', 'tblTempUsageDetail_20' ) start [2025-04-05 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841889', 'tblTempUsageDetail_20' ) end [2025-04-05 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841889', 'tblTempVendorCDR_20' ) start [2025-04-05 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841889', 'tblTempVendorCDR_20' ) end [2025-04-05 18:03:19] Production.INFO: ProcessCDR(1,14841889,1,1,2) [2025-04-05 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841889', 'tblTempUsageDetail_20' ) start [2025-04-05 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841889', 'tblTempUsageDetail_20' ) end [2025-04-05 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:03:23] Production.INFO: ==27910== Releasing lock... [2025-04-05 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:03:23] Production.INFO: 43 MB #Memory Used# [2025-04-05 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:04:06 [end_date_ymd] => 2025-04-05 18:04:06 [RateCDR] => 1 ) [2025-04-05 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:04:06' and `end` < '2025-04-05 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:04:19] Production.INFO: count ==1937 [2025-04-05 18:04:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:04:06 - End Time 2025-04-05 18:04:06 [2025-04-05 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841894', 'tblTempUsageDetail_20' ) start [2025-04-05 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841894', 'tblTempUsageDetail_20' ) end [2025-04-05 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841894', 'tblTempVendorCDR_20' ) start [2025-04-05 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841894', 'tblTempVendorCDR_20' ) end [2025-04-05 18:04:19] Production.INFO: ProcessCDR(1,14841894,1,1,2) [2025-04-05 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841894', 'tblTempUsageDetail_20' ) start [2025-04-05 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841894', 'tblTempUsageDetail_20' ) end [2025-04-05 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:04:25] Production.INFO: ==27988== Releasing lock... [2025-04-05 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:04:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:05:05 [end_date_ymd] => 2025-04-05 18:05:05 [RateCDR] => 1 ) [2025-04-05 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:05:05' and `end` < '2025-04-05 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:05:18] Production.INFO: count ==1941 [2025-04-05 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:05:05 - End Time 2025-04-05 18:05:05 [2025-04-05 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841899', 'tblTempUsageDetail_20' ) start [2025-04-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841899', 'tblTempUsageDetail_20' ) end [2025-04-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841899', 'tblTempVendorCDR_20' ) start [2025-04-05 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841899', 'tblTempVendorCDR_20' ) end [2025-04-05 18:05:19] Production.INFO: ProcessCDR(1,14841899,1,1,2) [2025-04-05 18:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841899', 'tblTempUsageDetail_20' ) start [2025-04-05 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841899', 'tblTempUsageDetail_20' ) end [2025-04-05 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:05:24] Production.INFO: ==28069== Releasing lock... [2025-04-05 18:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:05:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:06:06 [end_date_ymd] => 2025-04-05 18:06:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:06:06' and `end` < '2025-04-05 18: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-04-05 18:06:19] Production.INFO: count ==1937 [2025-04-05 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-05 15:06:06 - End Time 2025-04-05 18:06:06 [2025-04-05 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841904', 'tblTempUsageDetail_20' ) start [2025-04-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841904', 'tblTempUsageDetail_20' ) end [2025-04-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841904', 'tblTempVendorCDR_20' ) start [2025-04-05 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841904', 'tblTempVendorCDR_20' ) end [2025-04-05 18:06:20] Production.INFO: ProcessCDR(1,14841904,1,1,2) [2025-04-05 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841904', 'tblTempUsageDetail_20' ) start [2025-04-05 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841904', 'tblTempUsageDetail_20' ) end [2025-04-05 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:06:24] Production.INFO: ==28147== Releasing lock... [2025-04-05 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:06:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:07:05 [end_date_ymd] => 2025-04-05 18:07:05 [RateCDR] => 1 ) [2025-04-05 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:07:05' and `end` < '2025-04-05 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:07:18] Production.INFO: count ==1935 [2025-04-05 18:07:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:07:05 - End Time 2025-04-05 18:07:05 [2025-04-05 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841909', 'tblTempUsageDetail_20' ) start [2025-04-05 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841909', 'tblTempUsageDetail_20' ) end [2025-04-05 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841909', 'tblTempVendorCDR_20' ) start [2025-04-05 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841909', 'tblTempVendorCDR_20' ) end [2025-04-05 18:07:19] Production.INFO: ProcessCDR(1,14841909,1,1,2) [2025-04-05 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841909', 'tblTempUsageDetail_20' ) start [2025-04-05 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841909', 'tblTempUsageDetail_20' ) end [2025-04-05 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:07:24] Production.INFO: ==28226== Releasing lock... [2025-04-05 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:07:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:08:05 [end_date_ymd] => 2025-04-05 18:08:05 [RateCDR] => 1 ) [2025-04-05 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:08:05' and `end` < '2025-04-05 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:08:18] Production.INFO: count ==1932 [2025-04-05 18:08:18] Production.ERROR: pbx CDR StartTime 2025-04-05 15:08:05 - End Time 2025-04-05 18:08:05 [2025-04-05 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841914', 'tblTempUsageDetail_20' ) start [2025-04-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841914', 'tblTempUsageDetail_20' ) end [2025-04-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841914', 'tblTempVendorCDR_20' ) start [2025-04-05 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841914', 'tblTempVendorCDR_20' ) end [2025-04-05 18:08:18] Production.INFO: ProcessCDR(1,14841914,1,1,2) [2025-04-05 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841914', 'tblTempUsageDetail_20' ) start [2025-04-05 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841914', 'tblTempUsageDetail_20' ) end [2025-04-05 18:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:08:21] Production.INFO: ==28305== Releasing lock... [2025-04-05 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:08:21] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:09:06 [end_date_ymd] => 2025-04-05 18:09:06 [RateCDR] => 1 ) [2025-04-05 18:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:09:06' and `end` < '2025-04-05 18:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:09:19] Production.INFO: count ==1934 [2025-04-05 18:09:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:09:06 - End Time 2025-04-05 18:09:06 [2025-04-05 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841919', 'tblTempUsageDetail_20' ) start [2025-04-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841919', 'tblTempUsageDetail_20' ) end [2025-04-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841919', 'tblTempVendorCDR_20' ) start [2025-04-05 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841919', 'tblTempVendorCDR_20' ) end [2025-04-05 18:09:19] Production.INFO: ProcessCDR(1,14841919,1,1,2) [2025-04-05 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841919', 'tblTempUsageDetail_20' ) start [2025-04-05 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841919', 'tblTempUsageDetail_20' ) end [2025-04-05 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:09:24] Production.INFO: ==28384== Releasing lock... [2025-04-05 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:09:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:10:06 [end_date_ymd] => 2025-04-05 18:10:06 [RateCDR] => 1 ) [2025-04-05 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:10:06' and `end` < '2025-04-05 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:10:19] Production.INFO: count ==1927 [2025-04-05 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-05 15:10:06 - End Time 2025-04-05 18:10:06 [2025-04-05 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841924', 'tblTempUsageDetail_20' ) start [2025-04-05 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841924', 'tblTempUsageDetail_20' ) end [2025-04-05 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841924', 'tblTempVendorCDR_20' ) start [2025-04-05 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841924', 'tblTempVendorCDR_20' ) end [2025-04-05 18:10:20] Production.INFO: ProcessCDR(1,14841924,1,1,2) [2025-04-05 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841924', 'tblTempUsageDetail_20' ) start [2025-04-05 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841924', 'tblTempUsageDetail_20' ) end [2025-04-05 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:10:24] Production.INFO: ==28463== Releasing lock... [2025-04-05 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:10:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:11:05 [end_date_ymd] => 2025-04-05 18:11:05 [RateCDR] => 1 ) [2025-04-05 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:11:05' and `end` < '2025-04-05 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:11:18] Production.INFO: count ==1951 [2025-04-05 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:11:05 - End Time 2025-04-05 18:11:05 [2025-04-05 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841930', 'tblTempUsageDetail_20' ) start [2025-04-05 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841930', 'tblTempUsageDetail_20' ) end [2025-04-05 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841930', 'tblTempVendorCDR_20' ) start [2025-04-05 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841930', 'tblTempVendorCDR_20' ) end [2025-04-05 18:11:19] Production.INFO: ProcessCDR(1,14841930,1,1,2) [2025-04-05 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841930', 'tblTempUsageDetail_20' ) start [2025-04-05 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841930', 'tblTempUsageDetail_20' ) end [2025-04-05 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:11:23] Production.INFO: ==28546== Releasing lock... [2025-04-05 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:11:23] Production.INFO: 43 MB #Memory Used# [2025-04-05 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:12:05 [end_date_ymd] => 2025-04-05 18:12:05 [RateCDR] => 1 ) [2025-04-05 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:12:05' and `end` < '2025-04-05 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:12:18] Production.INFO: count ==1966 [2025-04-05 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:12:05 - End Time 2025-04-05 18:12:05 [2025-04-05 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841935', 'tblTempUsageDetail_20' ) start [2025-04-05 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841935', 'tblTempUsageDetail_20' ) end [2025-04-05 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841935', 'tblTempVendorCDR_20' ) start [2025-04-05 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841935', 'tblTempVendorCDR_20' ) end [2025-04-05 18:12:19] Production.INFO: ProcessCDR(1,14841935,1,1,2) [2025-04-05 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841935', 'tblTempUsageDetail_20' ) start [2025-04-05 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841935', 'tblTempUsageDetail_20' ) end [2025-04-05 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:12:24] Production.INFO: ==28626== Releasing lock... [2025-04-05 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:12:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:13:05 [end_date_ymd] => 2025-04-05 18:13:05 [RateCDR] => 1 ) [2025-04-05 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:13:05' and `end` < '2025-04-05 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:13:18] Production.INFO: count ==1957 [2025-04-05 18:13:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:13:05 - End Time 2025-04-05 18:13:05 [2025-04-05 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841940', 'tblTempUsageDetail_20' ) start [2025-04-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841940', 'tblTempUsageDetail_20' ) end [2025-04-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841940', 'tblTempVendorCDR_20' ) start [2025-04-05 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841940', 'tblTempVendorCDR_20' ) end [2025-04-05 18:13:19] Production.INFO: ProcessCDR(1,14841940,1,1,2) [2025-04-05 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841940', 'tblTempUsageDetail_20' ) start [2025-04-05 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841940', 'tblTempUsageDetail_20' ) end [2025-04-05 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:13:24] Production.INFO: ==28713== Releasing lock... [2025-04-05 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:13:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:14:06 [end_date_ymd] => 2025-04-05 18:14:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:14:06' and `end` < '2025-04-05 18: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-04-05 18:14:18] Production.INFO: count ==1947 [2025-04-05 18:14:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:14:06 - End Time 2025-04-05 18:14:06 [2025-04-05 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841945', 'tblTempUsageDetail_20' ) start [2025-04-05 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841945', 'tblTempUsageDetail_20' ) end [2025-04-05 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841945', 'tblTempVendorCDR_20' ) start [2025-04-05 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841945', 'tblTempVendorCDR_20' ) end [2025-04-05 18:14:19] Production.INFO: ProcessCDR(1,14841945,1,1,2) [2025-04-05 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841945', 'tblTempUsageDetail_20' ) start [2025-04-05 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841945', 'tblTempUsageDetail_20' ) end [2025-04-05 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:14:24] Production.INFO: ==28791== Releasing lock... [2025-04-05 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:14:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:15:05 [end_date_ymd] => 2025-04-05 18:15:05 [RateCDR] => 1 ) [2025-04-05 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:15:05' and `end` < '2025-04-05 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:15:18] Production.INFO: count ==1944 [2025-04-05 18:15:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:15:05 - End Time 2025-04-05 18:15:05 [2025-04-05 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841950', 'tblTempUsageDetail_20' ) start [2025-04-05 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841950', 'tblTempUsageDetail_20' ) end [2025-04-05 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841950', 'tblTempVendorCDR_20' ) start [2025-04-05 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841950', 'tblTempVendorCDR_20' ) end [2025-04-05 18:15:19] Production.INFO: ProcessCDR(1,14841950,1,1,2) [2025-04-05 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841950', 'tblTempUsageDetail_20' ) start [2025-04-05 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841950', 'tblTempUsageDetail_20' ) end [2025-04-05 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:15:23] Production.INFO: ==28868== Releasing lock... [2025-04-05 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:15:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:16:06 [end_date_ymd] => 2025-04-05 18:16:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:16:06' and `end` < '2025-04-05 18: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-04-05 18:16:19] Production.INFO: count ==1946 [2025-04-05 18:16:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:16:06 - End Time 2025-04-05 18:16:06 [2025-04-05 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841955', 'tblTempUsageDetail_20' ) start [2025-04-05 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841955', 'tblTempUsageDetail_20' ) end [2025-04-05 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841955', 'tblTempVendorCDR_20' ) start [2025-04-05 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841955', 'tblTempVendorCDR_20' ) end [2025-04-05 18:16:19] Production.INFO: ProcessCDR(1,14841955,1,1,2) [2025-04-05 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841955', 'tblTempUsageDetail_20' ) start [2025-04-05 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841955', 'tblTempUsageDetail_20' ) end [2025-04-05 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:16:23] Production.INFO: ==28981== Releasing lock... [2025-04-05 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:16:23] Production.INFO: 43 MB #Memory Used# [2025-04-05 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:17:05 [end_date_ymd] => 2025-04-05 18:17:05 [RateCDR] => 1 ) [2025-04-05 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:17:05' and `end` < '2025-04-05 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:17:18] Production.INFO: count ==1950 [2025-04-05 18:17:18] Production.ERROR: pbx CDR StartTime 2025-04-05 15:17:05 - End Time 2025-04-05 18:17:05 [2025-04-05 18:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841960', 'tblTempUsageDetail_20' ) start [2025-04-05 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841960', 'tblTempUsageDetail_20' ) end [2025-04-05 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841960', 'tblTempVendorCDR_20' ) start [2025-04-05 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841960', 'tblTempVendorCDR_20' ) end [2025-04-05 18:17:18] Production.INFO: ProcessCDR(1,14841960,1,1,2) [2025-04-05 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841960', 'tblTempUsageDetail_20' ) start [2025-04-05 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841960', 'tblTempUsageDetail_20' ) end [2025-04-05 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:17:22] Production.INFO: ==29059== Releasing lock... [2025-04-05 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:17:22] Production.INFO: 43 MB #Memory Used# [2025-04-05 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:18:06 [end_date_ymd] => 2025-04-05 18:18:06 [RateCDR] => 1 ) [2025-04-05 18:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:18:06' and `end` < '2025-04-05 18:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:18:19] Production.INFO: count ==1945 [2025-04-05 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:18:06 - End Time 2025-04-05 18:18:06 [2025-04-05 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841965', 'tblTempUsageDetail_20' ) start [2025-04-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841965', 'tblTempUsageDetail_20' ) end [2025-04-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841965', 'tblTempVendorCDR_20' ) start [2025-04-05 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841965', 'tblTempVendorCDR_20' ) end [2025-04-05 18:18:19] Production.INFO: ProcessCDR(1,14841965,1,1,2) [2025-04-05 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841965', 'tblTempUsageDetail_20' ) start [2025-04-05 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841965', 'tblTempUsageDetail_20' ) end [2025-04-05 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:18:25] Production.INFO: ==29138== Releasing lock... [2025-04-05 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:18:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:19:05 [end_date_ymd] => 2025-04-05 18:19:05 [RateCDR] => 1 ) [2025-04-05 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:19:05' and `end` < '2025-04-05 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:19:18] Production.INFO: count ==1944 [2025-04-05 18:19:18] Production.ERROR: pbx CDR StartTime 2025-04-05 15:19:05 - End Time 2025-04-05 18:19:05 [2025-04-05 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841970', 'tblTempUsageDetail_20' ) start [2025-04-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841970', 'tblTempUsageDetail_20' ) end [2025-04-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841970', 'tblTempVendorCDR_20' ) start [2025-04-05 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841970', 'tblTempVendorCDR_20' ) end [2025-04-05 18:19:18] Production.INFO: ProcessCDR(1,14841970,1,1,2) [2025-04-05 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841970', 'tblTempUsageDetail_20' ) start [2025-04-05 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841970', 'tblTempUsageDetail_20' ) end [2025-04-05 18:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:19:22] Production.INFO: ==29215== Releasing lock... [2025-04-05 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:19:22] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:20:06 [end_date_ymd] => 2025-04-05 18:20:06 [RateCDR] => 1 ) [2025-04-05 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:20:06' and `end` < '2025-04-05 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:20:19] Production.INFO: count ==1941 [2025-04-05 18:20:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:20:06 - End Time 2025-04-05 18:20:06 [2025-04-05 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841975', 'tblTempUsageDetail_20' ) start [2025-04-05 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841975', 'tblTempUsageDetail_20' ) end [2025-04-05 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841975', 'tblTempVendorCDR_20' ) start [2025-04-05 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841975', 'tblTempVendorCDR_20' ) end [2025-04-05 18:20:20] Production.INFO: ProcessCDR(1,14841975,1,1,2) [2025-04-05 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841975', 'tblTempUsageDetail_20' ) start [2025-04-05 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841975', 'tblTempUsageDetail_20' ) end [2025-04-05 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:20:25] Production.INFO: ==29297== Releasing lock... [2025-04-05 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:20:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:21:06 [end_date_ymd] => 2025-04-05 18:21:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:21:06' and `end` < '2025-04-05 18: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-04-05 18:21:19] Production.INFO: count ==1949 [2025-04-05 18:21:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:21:06 - End Time 2025-04-05 18:21:06 [2025-04-05 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841981', 'tblTempUsageDetail_20' ) start [2025-04-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841981', 'tblTempUsageDetail_20' ) end [2025-04-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841981', 'tblTempVendorCDR_20' ) start [2025-04-05 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841981', 'tblTempVendorCDR_20' ) end [2025-04-05 18:21:19] Production.INFO: ProcessCDR(1,14841981,1,1,2) [2025-04-05 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841981', 'tblTempUsageDetail_20' ) start [2025-04-05 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841981', 'tblTempUsageDetail_20' ) end [2025-04-05 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:21:23] Production.INFO: ==29374== Releasing lock... [2025-04-05 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:21:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:22:06 [end_date_ymd] => 2025-04-05 18:22:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:22:06' and `end` < '2025-04-05 18: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-04-05 18:22:19] Production.INFO: count ==1948 [2025-04-05 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-05 15:22:06 - End Time 2025-04-05 18:22:06 [2025-04-05 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841986', 'tblTempUsageDetail_20' ) start [2025-04-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841986', 'tblTempUsageDetail_20' ) end [2025-04-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841986', 'tblTempVendorCDR_20' ) start [2025-04-05 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841986', 'tblTempVendorCDR_20' ) end [2025-04-05 18:22:20] Production.INFO: ProcessCDR(1,14841986,1,1,2) [2025-04-05 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841986', 'tblTempUsageDetail_20' ) start [2025-04-05 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841986', 'tblTempUsageDetail_20' ) end [2025-04-05 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:22:23] Production.INFO: ==29452== Releasing lock... [2025-04-05 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:22:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:23:05 [end_date_ymd] => 2025-04-05 18:23:05 [RateCDR] => 1 ) [2025-04-05 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:23:05' and `end` < '2025-04-05 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:23:18] Production.INFO: count ==1937 [2025-04-05 18:23:18] Production.ERROR: pbx CDR StartTime 2025-04-05 15:23:05 - End Time 2025-04-05 18:23:05 [2025-04-05 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841991', 'tblTempUsageDetail_20' ) start [2025-04-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841991', 'tblTempUsageDetail_20' ) end [2025-04-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841991', 'tblTempVendorCDR_20' ) start [2025-04-05 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841991', 'tblTempVendorCDR_20' ) end [2025-04-05 18:23:18] Production.INFO: ProcessCDR(1,14841991,1,1,2) [2025-04-05 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841991', 'tblTempUsageDetail_20' ) start [2025-04-05 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841991', 'tblTempUsageDetail_20' ) end [2025-04-05 18:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:23:22] Production.INFO: ==29536== Releasing lock... [2025-04-05 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:23:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:24:05 [end_date_ymd] => 2025-04-05 18:24:05 [RateCDR] => 1 ) [2025-04-05 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:24:05' and `end` < '2025-04-05 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:24:18] Production.INFO: count ==1924 [2025-04-05 18:24:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:24:05 - End Time 2025-04-05 18:24:05 [2025-04-05 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841996', 'tblTempUsageDetail_20' ) start [2025-04-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14841996', 'tblTempUsageDetail_20' ) end [2025-04-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841996', 'tblTempVendorCDR_20' ) start [2025-04-05 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14841996', 'tblTempVendorCDR_20' ) end [2025-04-05 18:24:19] Production.INFO: ProcessCDR(1,14841996,1,1,2) [2025-04-05 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14841996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14841996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14841996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14841996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841996', 'tblTempUsageDetail_20' ) start [2025-04-05 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14841996', 'tblTempUsageDetail_20' ) end [2025-04-05 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:24:24] Production.INFO: ==29616== Releasing lock... [2025-04-05 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:24:24] Production.INFO: 42.75 MB #Memory Used# [2025-04-05 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:25:05 [end_date_ymd] => 2025-04-05 18:25:05 [RateCDR] => 1 ) [2025-04-05 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:25:05' and `end` < '2025-04-05 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:25:18] Production.INFO: count ==1928 [2025-04-05 18:25:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:25:05 - End Time 2025-04-05 18:25:05 [2025-04-05 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842001', 'tblTempUsageDetail_20' ) start [2025-04-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842001', 'tblTempUsageDetail_20' ) end [2025-04-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842001', 'tblTempVendorCDR_20' ) start [2025-04-05 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842001', 'tblTempVendorCDR_20' ) end [2025-04-05 18:25:19] Production.INFO: ProcessCDR(1,14842001,1,1,2) [2025-04-05 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842001', 'tblTempUsageDetail_20' ) start [2025-04-05 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842001', 'tblTempUsageDetail_20' ) end [2025-04-05 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:25:24] Production.INFO: ==29694== Releasing lock... [2025-04-05 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:25:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:26:25] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:26:25 [end_date_ymd] => 2025-04-05 18:26:25 [RateCDR] => 1 ) [2025-04-05 18:26:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:26:25' and `end` < '2025-04-05 18:26:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:26:38] Production.INFO: count ==1929 [2025-04-05 18:26:51] Production.ERROR: pbx CDR StartTime 2025-04-05 15:26:25 - End Time 2025-04-05 18:26:25 [2025-04-05 18:26:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:26:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842006', 'tblTempUsageDetail_20' ) start [2025-04-05 18:26:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842006', 'tblTempUsageDetail_20' ) end [2025-04-05 18:26:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842006', 'tblTempVendorCDR_20' ) start [2025-04-05 18:27:09] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842006', 'tblTempVendorCDR_20' ) end [2025-04-05 18:27:09] Production.INFO: ProcessCDR(1,14842006,1,1,2) [2025-04-05 18:27:09] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:27:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:27:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842006', 'tblTempUsageDetail_20' ) start [2025-04-05 18:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842006', 'tblTempUsageDetail_20' ) end [2025-04-05 18:27:50] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:27:50] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:27:55] Production.INFO: ==29769== Releasing lock... [2025-04-05 18:27:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:27:55] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:28:15] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:28:15 [end_date_ymd] => 2025-04-05 18:28:15 [RateCDR] => 1 ) [2025-04-05 18:28:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:28:15' and `end` < '2025-04-05 18:28:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:28:28] Production.INFO: count ==1925 [2025-04-05 18:28:39] Production.ERROR: pbx CDR StartTime 2025-04-05 15:28:15 - End Time 2025-04-05 18:28:15 [2025-04-05 18:28:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842013', 'tblTempUsageDetail_20' ) start [2025-04-05 18:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842013', 'tblTempUsageDetail_20' ) end [2025-04-05 18:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842013', 'tblTempVendorCDR_20' ) start [2025-04-05 18:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842013', 'tblTempVendorCDR_20' ) end [2025-04-05 18:28:39] Production.INFO: ProcessCDR(1,14842013,1,1,2) [2025-04-05 18:28:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:28:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:28:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:28:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842013', 'tblTempUsageDetail_20' ) start [2025-04-05 18:28:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842013', 'tblTempUsageDetail_20' ) end [2025-04-05 18:28:51] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:28:51] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:28:51] Production.INFO: ==29919== Releasing lock... [2025-04-05 18:28:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:28:51] Production.INFO: 42.5 MB #Memory Used# [2025-04-05 18:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:29:18 [end_date_ymd] => 2025-04-05 18:29:18 [RateCDR] => 1 ) [2025-04-05 18:29:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:29:18' and `end` < '2025-04-05 18:29:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:29:31] Production.INFO: count ==1912 [2025-04-05 18:29:41] Production.ERROR: pbx CDR StartTime 2025-04-05 15:29:18 - End Time 2025-04-05 18:29:18 [2025-04-05 18:29:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:29:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842018', 'tblTempUsageDetail_20' ) start [2025-04-05 18:29:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842018', 'tblTempUsageDetail_20' ) end [2025-04-05 18:29:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842018', 'tblTempVendorCDR_20' ) start [2025-04-05 18:29:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842018', 'tblTempVendorCDR_20' ) end [2025-04-05 18:29:43] Production.INFO: ProcessCDR(1,14842018,1,1,2) [2025-04-05 18:29:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:29:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:29:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:29:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:29:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842018', 'tblTempUsageDetail_20' ) start [2025-04-05 18:29:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842018', 'tblTempUsageDetail_20' ) end [2025-04-05 18:29:59] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:29:59] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:30:01] Production.INFO: ==29998== Releasing lock... [2025-04-05 18:30:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:30:01] Production.INFO: 42.25 MB #Memory Used# [2025-04-05 18:30:16] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:30:16 [end_date_ymd] => 2025-04-05 18:30:16 [RateCDR] => 1 ) [2025-04-05 18:30:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:30:16' and `end` < '2025-04-05 18:30:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:30:29] Production.INFO: count ==1908 [2025-04-05 18:30:36] Production.ERROR: pbx CDR StartTime 2025-04-05 15:30:16 - End Time 2025-04-05 18:30:16 [2025-04-05 18:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842023', 'tblTempUsageDetail_20' ) start [2025-04-05 18:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842023', 'tblTempUsageDetail_20' ) end [2025-04-05 18:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842023', 'tblTempVendorCDR_20' ) start [2025-04-05 18:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842023', 'tblTempVendorCDR_20' ) end [2025-04-05 18:30:37] Production.INFO: ProcessCDR(1,14842023,1,1,2) [2025-04-05 18:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:30:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:30:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:30:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:30:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842023', 'tblTempUsageDetail_20' ) start [2025-04-05 18:30:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842023', 'tblTempUsageDetail_20' ) end [2025-04-05 18:30:49] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:30:49] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:30:49] Production.INFO: ==30073== Releasing lock... [2025-04-05 18:30:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:30:49] Production.INFO: 42 MB #Memory Used# [2025-04-05 18:31:16] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:31:16 [end_date_ymd] => 2025-04-05 18:31:16 [RateCDR] => 1 ) [2025-04-05 18:31:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:31:16' and `end` < '2025-04-05 18:31:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:31:29] Production.INFO: count ==1864 [2025-04-05 18:31:30] Production.ERROR: pbx CDR StartTime 2025-04-05 15:31:16 - End Time 2025-04-05 18:31:16 [2025-04-05 18:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842028', 'tblTempUsageDetail_20' ) start [2025-04-05 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842028', 'tblTempUsageDetail_20' ) end [2025-04-05 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842028', 'tblTempVendorCDR_20' ) start [2025-04-05 18:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842028', 'tblTempVendorCDR_20' ) end [2025-04-05 18:31:30] Production.INFO: ProcessCDR(1,14842028,1,1,2) [2025-04-05 18:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842028', 'tblTempUsageDetail_20' ) start [2025-04-05 18:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842028', 'tblTempUsageDetail_20' ) end [2025-04-05 18:31:34] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:31:35] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:31:35] Production.INFO: ==30196== Releasing lock... [2025-04-05 18:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:31:35] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:32:05 [end_date_ymd] => 2025-04-05 18:32:05 [RateCDR] => 1 ) [2025-04-05 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:32:05' and `end` < '2025-04-05 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:32:18] Production.INFO: count ==1868 [2025-04-05 18:32:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:32:05 - End Time 2025-04-05 18:32:05 [2025-04-05 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842033', 'tblTempUsageDetail_20' ) start [2025-04-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842033', 'tblTempUsageDetail_20' ) end [2025-04-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842033', 'tblTempVendorCDR_20' ) start [2025-04-05 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842033', 'tblTempVendorCDR_20' ) end [2025-04-05 18:32:19] Production.INFO: ProcessCDR(1,14842033,1,1,2) [2025-04-05 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842033', 'tblTempUsageDetail_20' ) start [2025-04-05 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842033', 'tblTempUsageDetail_20' ) end [2025-04-05 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:32:24] Production.INFO: ==30278== Releasing lock... [2025-04-05 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:32:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:33:06 [end_date_ymd] => 2025-04-05 18:33:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:33:06' and `end` < '2025-04-05 18: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-04-05 18:33:19] Production.INFO: count ==1870 [2025-04-05 18:33:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:33:06 - End Time 2025-04-05 18:33:06 [2025-04-05 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842038', 'tblTempUsageDetail_20' ) start [2025-04-05 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842038', 'tblTempUsageDetail_20' ) end [2025-04-05 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842038', 'tblTempVendorCDR_20' ) start [2025-04-05 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842038', 'tblTempVendorCDR_20' ) end [2025-04-05 18:33:19] Production.INFO: ProcessCDR(1,14842038,1,1,2) [2025-04-05 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842038', 'tblTempUsageDetail_20' ) start [2025-04-05 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842038', 'tblTempUsageDetail_20' ) end [2025-04-05 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:33:23] Production.INFO: ==30354== Releasing lock... [2025-04-05 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:33:23] Production.INFO: 42 MB #Memory Used# [2025-04-05 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:34:05 [end_date_ymd] => 2025-04-05 18:34:05 [RateCDR] => 1 ) [2025-04-05 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:34:05' and `end` < '2025-04-05 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:34:18] Production.INFO: count ==1867 [2025-04-05 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:34:05 - End Time 2025-04-05 18:34:05 [2025-04-05 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842043', 'tblTempUsageDetail_20' ) start [2025-04-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842043', 'tblTempUsageDetail_20' ) end [2025-04-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842043', 'tblTempVendorCDR_20' ) start [2025-04-05 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842043', 'tblTempVendorCDR_20' ) end [2025-04-05 18:34:19] Production.INFO: ProcessCDR(1,14842043,1,1,2) [2025-04-05 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842043', 'tblTempUsageDetail_20' ) start [2025-04-05 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842043', 'tblTempUsageDetail_20' ) end [2025-04-05 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:34:24] Production.INFO: ==30431== Releasing lock... [2025-04-05 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:34:24] Production.INFO: 42 MB #Memory Used# [2025-04-05 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:35:05 [end_date_ymd] => 2025-04-05 18:35:05 [RateCDR] => 1 ) [2025-04-05 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:35:05' and `end` < '2025-04-05 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:35:18] Production.INFO: count ==1861 [2025-04-05 18:35:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:35:05 - End Time 2025-04-05 18:35:05 [2025-04-05 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842048', 'tblTempUsageDetail_20' ) start [2025-04-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842048', 'tblTempUsageDetail_20' ) end [2025-04-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842048', 'tblTempVendorCDR_20' ) start [2025-04-05 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842048', 'tblTempVendorCDR_20' ) end [2025-04-05 18:35:19] Production.INFO: ProcessCDR(1,14842048,1,1,2) [2025-04-05 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842048', 'tblTempUsageDetail_20' ) start [2025-04-05 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842048', 'tblTempUsageDetail_20' ) end [2025-04-05 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:35:22] Production.INFO: ==30506== Releasing lock... [2025-04-05 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 18:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:36:06 [end_date_ymd] => 2025-04-05 18:36:06 [RateCDR] => 1 ) [2025-04-05 18: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-04-05 15:36:06' and `end` < '2025-04-05 18: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-04-05 18:36:19] Production.INFO: count ==1856 [2025-04-05 18:36:19] Production.ERROR: pbx CDR StartTime 2025-04-05 15:36:06 - End Time 2025-04-05 18:36:06 [2025-04-05 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842053', 'tblTempUsageDetail_20' ) start [2025-04-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14842053', 'tblTempUsageDetail_20' ) end [2025-04-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842053', 'tblTempVendorCDR_20' ) start [2025-04-05 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14842053', 'tblTempVendorCDR_20' ) end [2025-04-05 18:36:19] Production.INFO: ProcessCDR(1,14842053,1,1,2) [2025-04-05 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14842053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14842053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-05 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14842053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14842053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-05 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842053', 'tblTempUsageDetail_20' ) start [2025-04-05 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14842053', 'tblTempUsageDetail_20' ) end [2025-04-05 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-05 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-05 18:36:23] Production.INFO: ==30591== Releasing lock... [2025-04-05 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-05 18:36:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-05 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-05 15:37:05 [end_date_ymd] => 2025-04-05 18:37:05 [RateCDR] => 1 ) [2025-04-05 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-05 15:37:05' and `end` < '2025-04-05 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-05 18:37:18] Production.INFO: count ==1858